mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Disable __cpuid check on arm64 builds as intrinsic is not available (#19574)
Disable __cpuid check on arm64 builds as intrinsic is not available Motivation Breaking the arm64 build. Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
parent
1b48054e1b
commit
3c49aacd56
1 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ uint32_t HardwareCoreEnumerator::DefaultIntraOpNumThreads() {
|
|||
// # of logical cores = # of P cores x 2 (if hyper threading is enabled) + # of E cores + # of Soc Cores.
|
||||
auto cores = GetNumberOPhysicalAndEngineeringCores();
|
||||
|
||||
#if !defined(_M_ARM64) && !defined(__aarch64__)
|
||||
const int kVendorID_Intel[3] = {0x756e6547, 0x6c65746e, 0x49656e69}; // "GenuntelineI"
|
||||
int regs_leaf0[4];
|
||||
int regs_leaf7[4];
|
||||
|
|
@ -100,6 +101,7 @@ uint32_t HardwareCoreEnumerator::DefaultIntraOpNumThreads() {
|
|||
// On Intel Hybrid processors, numSocCores == cores.Num2CacheCores
|
||||
return cores.PhysicalCores - cores.Num2CacheCores;
|
||||
}
|
||||
#endif
|
||||
|
||||
return cores.PhysicalCores;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue