Map clock64() to __builtin_readcyclecounter() (#1473)
Fixes SWDEV-203215.
[ROCm/hip commit: 4b413739a9]
This commit is contained in:
zatwierdzone przez
Maneesh Gupta
rodzic
b71fbba99b
commit
25699d3b03
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user