From 41e570ddcede6303e37f583adaeeddfd84338652 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 17 Jun 2026 20:45:32 +0200 Subject: [PATCH] Annoying old CPU perfmon code should be removed or deprecated as not worth maintaining --- Grid/perfmon/PerfCount.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Grid/perfmon/PerfCount.h b/Grid/perfmon/PerfCount.h index 3dfa51eb..bad1181b 100644 --- a/Grid/perfmon/PerfCount.h +++ b/Grid/perfmon/PerfCount.h @@ -51,8 +51,8 @@ Author: paboyle #endif #ifdef __x86_64__ #ifdef GRID_CUDA -//accelerator_inline uint64_t __rdtsc(void) { return 0; } -//accelerator_inline uint64_t __rdpmc(int ) { return 0; } +accelerator_inline uint64_t __rdtsc(void) { return 0; } +accelerator_inline uint64_t __rdpmc(int ) { return 0; } #else #include #endif @@ -93,8 +93,7 @@ inline uint64_t cyclecount(void){ } #elif defined __x86_64__ inline uint64_t cyclecount(void){ - uint64_t ret = __rdtsc(); - return (uint64_t)ret; + return (uint64_t)0; } #else