define a C function BgPrintf() which can be called in MPI program written in C.
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 1 Nov 2003 05:48:12 +0000 (05:48 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 1 Nov 2003 05:48:12 +0000 (05:48 +0000)
src/ck-perf/trace-bluegene.C
src/ck-perf/trace-bluegene.h

index 1cbb991e9f8ffd27e3f227f84621d777f1442653..a3116ef7b86447a22ccd3540d0f793596fc41952 100644 (file)
@@ -208,5 +208,10 @@ void TraceBluegene::bgPrint(char* str){
 
 }
 
+extern "C" void BgPrintf(char *str)
+{
+  BgPrint(str);
+}
+
 /*@}*/
 
index 1bd8e678f178e575c1523b1a26a2490bd8540022..dd308c7c3b50caecc9c3e4265f3a2f1eb33838a3 100644 (file)
@@ -99,6 +99,7 @@ extern int traceBluegeneLinked;
          _TRACE_BG_ADD_BACKWARD_DEP(log);      \
         }
 #else
+# define BgPrint(x)  
 # define _TRACE_BG_TLINE_END(x)
 
 # define TRACE_BG_AMPI_SUSPEND()