calling ConverseCommonInit() after initialized couple pcqueues, which may be needed...
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 19 Oct 2010 06:46:03 +0000 (01:46 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 19 Oct 2010 06:46:03 +0000 (01:46 -0500)
src/arch/bluegenep/machine.c

index d02b227960d48d7d7d8051da6c5796092d1f154f..843b578a6c4356c0973f31529e41490237f3d5c0 100644 (file)
@@ -919,9 +919,6 @@ void ConverseRunPE(int everReturn) {
 
     CthInit(CmiMyArgv);
 
 
     CthInit(CmiMyArgv);
 
-    //printf ("Before Converse Common Init\n");
-    ConverseCommonInit(CmiMyArgv);
-
     /* initialize the network progress counter*/
     /* Network progress function is used to poll the network when for
        messages. This flushes receive buffers on some  implementations*/
     /* initialize the network progress counter*/
     /* Network progress function is used to poll the network when for
        messages. This flushes receive buffers on some  implementations*/
@@ -934,6 +931,9 @@ void ConverseRunPE(int everReturn) {
     CpvInitialize(PCQueue, smsg_list_q);
     CpvAccess(smsg_list_q) = PCQueueCreate();
 
     CpvInitialize(PCQueue, smsg_list_q);
     CpvAccess(smsg_list_q) = PCQueueCreate();
 
+    //printf ("Before Converse Common Init\n");
+    ConverseCommonInit(CmiMyArgv);
+
     CcdCallOnConditionKeep(CcdPROCESSOR_STILL_IDLE,(CcdVoidFn)CmiNotifyIdle,NULL);
 
     CmiBarrier();
     CcdCallOnConditionKeep(CcdPROCESSOR_STILL_IDLE,(CcdVoidFn)CmiNotifyIdle,NULL);
 
     CmiBarrier();