fixed tau compilation
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 24 Nov 2008 17:46:29 +0000 (17:46 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 24 Nov 2008 17:46:29 +0000 (17:46 +0000)
src/arch/util/machine-smp.c

index d56d1291625c9a61c8c993f411033b5326200aff..4ad4e625c671468b49306a2c9ab2b57dd5ecaab3 100644 (file)
@@ -428,8 +428,11 @@ static void CmiStartThreads(char **argv)
   for (i=1; i<=tocreate; i++) {
     pthread_attr_init(&attr);
     pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
-         printf("calling tau_pthread_create");
+#if CMK_WITH_TAU
     ok = tau_pthread_create(&pid, &attr, call_startfn, (void *)i);
+#else
+    ok = pthread_create(&pid, &attr, call_startfn, (void *)i);
+#endif
     if (ok<0) PerrorExit("pthread_create"); 
     pthread_attr_destroy(&attr);
   }