Map clock64() to __builtin_readcyclecounter() (#1473)

Fixes SWDEV-203215.
This commit is contained in:
satyanveshd
2019-09-30 10:40:31 +05:30
committed by Maneesh Gupta
parent 9816122a62
commit ff1b23b558
@@ -690,12 +690,7 @@ extern "C" uint64_t __clock_u64() __HC__;
__device__
inline __attribute((always_inline))
long long int __clock64() {
// ToDo: Unify HCC and HIP implementation.
#if __HCC__
return (long long int) __clock_u64();
#else
return (long long int) __builtin_amdgcn_s_memrealtime();
#endif
return (long long int) __builtin_readcyclecounter();
}
__device__