mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
fix mac compilation error (#10268)
Fix Mac compilation error in new cpuinfo changes
This commit is contained in:
parent
c12cafa524
commit
33dd2f8f5e
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CPUIDINFO_ARCH_ARM) && defined(CPUINFO_SUPPORTED)
|
||||
#if defined(CPUIDINFO_ARCH_ARM) && defined(CPUINFO_SUPPORTED) && defined(__linux__)
|
||||
#include <sys/auxv.h>
|
||||
#include <asm/hwcap.h>
|
||||
// N.B. Support building with older versions of asm/hwcap.h that do not define
|
||||
|
|
@ -109,7 +109,7 @@ CPUIDInfo::CPUIDInfo() {
|
|||
#endif
|
||||
|
||||
#if defined(CPUIDINFO_ARCH_ARM)
|
||||
#ifdef CPUINFO_SUPPORTED
|
||||
#ifdef HWCAP_ASIMDDP
|
||||
|
||||
// only works on ARM linux or android, does not work on Windows
|
||||
if (pytorch_cpuinfo_init_) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue