1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

remove rdtsc on __NVCC__ as may be device called

This commit is contained in:
paboyle 2018-01-24 13:16:18 +00:00
parent bd08dc4f45
commit acd4955a18

View File

@ -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;