fix the PAPI macro define compile error
[charm.git] / src / ck-tune / trace-autoPerf.C
index d4b651b55f5cdf05e4d78e96c4a96829e92ea6c0..59f6eb67cbf35de890fc0cc5ff5fdb55b5e1dd72 100644 (file)
@@ -175,11 +175,13 @@ void TraceAutoPerfBOC::globalPerfAnalyze(CkReductionMsg *msg )
     CkPrintf("Overhead(%):     \t(min:max:avg):(%.1f:\t  %.1f:\t  %.1f) time:%f \n", data->overheadMin*100, data->overheadMax*100, overheadPercentage*100, data->overheadTotalTime);
     CkPrintf("Grainsize(ms):\t(avg:max)\t: (%.3f:    %.3f) \n", data->utilTotalTime/data->numInvocations*1000, data->grainsizeMax*1000);
     CkPrintf("Invocations:  \t%lld\n", data->numInvocations);
+#if CMK_HAS_COUNTER_PAPI
     char eventName[PAPI_MAX_STR_LEN];
     for (int i=0;i<NUMPAPIEVENTS;i++) {
         PAPI_event_code_to_name(papiEvents[i], eventName);
         CkPrintf(" EVENT  %s   counter   %lld \n", eventName, data->papiValues[i]);
     }
+#endif
     //)
    
     // --- time step measurement