2
0

SWDEV-548892 - Stop using ockl steadyctr function (#1882)

Directly use the builtin
Este cometimento está contido em:
Matt Arsenault
2025-11-26 09:29:06 -05:00
cometido por GitHub
ascendente da9bb4efae
cometimento f089217e6a
@@ -40,8 +40,6 @@ extern "C" __device__ int printf(const char* fmt, ...);
template <typename... All> static inline __device__ void printf(const char* format, All... all) {}
#endif
extern "C" __device__ unsigned long long __ockl_steadyctr_u64();
/*
Integer Intrinsics
*/
@@ -628,7 +626,7 @@ __device__ inline __attribute((always_inline)) long long int __clock() { return
// Clock function to return wall clock count at a constant frequency that can be queried
// through hipDeviceAttributeWallClockRate attribute.
__device__ inline __attribute__((always_inline)) long long int wall_clock64() {
return (long long int)__ockl_steadyctr_u64();
return (long long int)__builtin_readsteadycounter();
}
__device__ inline __attribute__((always_inline)) long long int clock64() { return __clock64(); }