*** empty log message ***
authorNilesh Choudhury <nchoudh2@uiuc.edu>
Thu, 8 Jun 2006 18:45:37 +0000 (18:45 +0000)
committerNilesh Choudhury <nchoudh2@uiuc.edu>
Thu, 8 Jun 2006 18:45:37 +0000 (18:45 +0000)
examples/charm++/onesided/onesided.C

index 622e0ff27f06a67b1e613db77ff5c1abbd531413..b2c11b1f3a807893a9eabf9a350640dbea3a5a4b 100644 (file)
@@ -34,22 +34,22 @@ commtest::commtest()
 
 void commtest::startRMA(int op) {
   operation = op;
-  //srcAddr = (char*)malloc(size*sizeof(char));
-  srcAddr = (char*)CmiDMAAlloc(size);
+  srcAddr = (char*)malloc(size*sizeof(char));
+  //srcAddr = (char*)CmiDMAAlloc(size);
   initializeMem(srcAddr,size,srcChar);
   //CkPrintf("[%d]Trying to register memory %p\n",idx,srcAddr);
-  //CmiRegisterMemory((void*)srcAddr,size);
+  CmiRegisterMemory((void*)srcAddr,size);
   thisProxy[dest].remoteRMA(size,operation);
 }
 
 void commtest::remoteRMA(int len,int op) {
   size = len;
   operation = 1 - op;
-  //destAddr = (char*)malloc(size*sizeof(char));
-  destAddr = (char*)CmiDMAAlloc(size);
+  destAddr = (char*)malloc(size*sizeof(char));
+  //destAddr = (char*)CmiDMAAlloc(size);
   initializeMem(destAddr,size,srcChar);
   //CkPrintf("[%d]Trying to register memory %p\n",idx,destAddr);
-  //CmiRegisterMemory((void*)destAddr,size);
+  CmiRegisterMemory((void*)destAddr,size);
   charMsg *cm = new charMsg();
   cm->addr = destAddr;
   thisProxy[dest].recvAddr(cm);