Skip to content

Commit 3c8cd44

Browse files
committed
No break time
1 parent 767d34a commit 3c8cd44

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

offload/DeviceRTL/src/Misc.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@ double getWTick() {
3939
}
4040

4141
double getWTime() {
42-
uint64_t NumTicks = 0;
43-
if constexpr (__has_builtin(__builtin_amdgcn_s_sendmsg_rtnl))
44-
NumTicks = __builtin_amdgcn_s_sendmsg_rtnl(0x83);
45-
else if constexpr (__has_builtin(__builtin_amdgcn_s_memrealtime))
46-
NumTicks = __builtin_amdgcn_s_memrealtime();
47-
else if constexpr (__has_builtin(__builtin_amdgcn_s_memtime))
48-
NumTicks = __builtin_amdgcn_s_memtime();
49-
50-
return static_cast<double>(NumTicks) * getWTick();
42+
return static_cast<double>(__builtin_readsteadycounter()) * getWTick();
5143
}
5244

5345
#pragma omp end declare variant

0 commit comments

Comments
 (0)