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 <francois.dugast@intel.com>
This commit is contained in:
Francois Dugast
2025-11-19 13:42:07 +00:00
committed by Compute-Runtime-Automation
parent 9dcb1b6252
commit 703309acda

View File

@@ -76,7 +76,11 @@ void umonitor(void *a) {
}
uint64_t rdtsc() {
#if defined(__ARM_ARCH)
return 0;
#else
return __rdtsc();
#endif
}
} // namespace CpuIntrinsics