mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
9dcb1b6252
commit
703309acda
@@ -76,7 +76,11 @@ void umonitor(void *a) {
|
||||
}
|
||||
|
||||
uint64_t rdtsc() {
|
||||
#if defined(__ARM_ARCH)
|
||||
return 0;
|
||||
#else
|
||||
return __rdtsc();
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace CpuIntrinsics
|
||||
|
||||
Reference in New Issue
Block a user