fixed tau build
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 24 Nov 2008 17:47:46 +0000 (17:47 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 24 Nov 2008 17:47:46 +0000 (17:47 +0000)
src/arch/origin-pthreads/machine.c

index d715547737a7f42b2897a412196a26793e65914e..0b5976dab2cc0372f562f3c5ddd53fcfbd6359a7 100644 (file)
@@ -183,8 +183,11 @@ void ConverseInit(int argc, char **argv, CmiStartFn fn, int usched, int initret)
     usrparam->argv = CmiCopyArgs(argv);
     usrparam->mype = i;
 
-         printf("calling tau_pthread_create");
+#if CMK_WITH_TAU
     tau_pthread_create(&aThread[i],(pthread_attr_t *)0,threadInit,(void *)usrparam);
+#else
+    pthread_create(&aThread[i],(pthread_attr_t *)0,threadInit,(void *)usrparam);
+#endif
   }
   usrparam = (USER_PARAMETERS *) CmiAlloc(sizeof(USER_PARAMETERS));
   usrparam->argv = CmiCopyArgs(argv);