Skip to content

Commit 703309a

Browse files
ifduCompute-Runtime-Automation
authored andcommitted
fix: allow execution of clinfo on ARM64
While this code builds on ARM64, it cannot execute properly because __rdtsc() is only available on x86. clinfo returns no platform which gives the incorrect impression that KMD or UMD is not available. A better fix is still needed but at least clinfo runs. Signed-off-by: Francois Dugast <[email protected]>
1 parent 9dcb1b6 commit 703309a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared/source/utilities/cpuintrinsics.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ void umonitor(void *a) {
7676
}
7777

7878
uint64_t rdtsc() {
79+
#if defined(__ARM_ARCH)
80+
return 0;
81+
#else
7982
return __rdtsc();
83+
#endif
8084
}
8185

8286
} // namespace CpuIntrinsics

0 commit comments

Comments
 (0)