Index: runtime/src/kmp_affinity.cpp =================================================================== --- runtime/src/kmp_affinity.cpp +++ runtime/src/kmp_affinity.cpp @@ -2028,7 +2028,11 @@ if ((p == NULL) || (KMP_SSCANF(p + 1, "%u\n", &val) != 1)) goto no_val; if (threadInfo[num_avail][osIdIndex] != UINT_MAX) +#if KMP_ARCH_AARCH64 + num_avail++; +#else goto dup_field; +#endif threadInfo[num_avail][osIdIndex] = val; #if KMP_OS_LINUX && USE_SYSFS_INFO char path[256]; Index: runtime/src/kmp_os.h =================================================================== --- runtime/src/kmp_os.h +++ runtime/src/kmp_os.h @@ -860,8 +860,12 @@ // Switches for OSS builds #ifndef USE_SYSFS_INFO +#if KMP_ARCH_AARCH64 +#define USE_SYSFS_INFO 1 +#else #define USE_SYSFS_INFO 0 #endif +#endif #ifndef USE_CMPXCHG_FIX #define USE_CMPXCHG_FIX 1 #endif