diff --git a/lib/perfmon/PerfCount.h b/lib/perfmon/PerfCount.h index 8e27f23f..90ccb275 100644 --- a/lib/perfmon/PerfCount.h +++ b/lib/perfmon/PerfCount.h @@ -89,6 +89,9 @@ inline uint64_t cyclecount(void){ return tmp; } #elif defined __x86_64__ +#ifdef GRID_NVCC +accelerator_inline uint64_t __rdtsc(void) { return 0; } +#endif inline uint64_t cyclecount(void){ return __rdtsc(); // unsigned int dummy;