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

Fixes SWDEV-203215.

[ROCm/hip commit: 4b413739a9]
このコミットが含まれているのは:
satyanveshd authored and Maneesh Gupta committed 2019-09-30 10:40:31 +05:30
1 親 b71fbba99b
コミット 25699d3b03
1ファイル変更
+1 -6
+1 -6
ファイルの表示
@@ -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__