diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp --- a/openmp/runtime/src/kmp_affinity.cpp +++ b/openmp/runtime/src/kmp_affinity.cpp @@ -1104,10 +1104,12 @@ struct core_type_indexer { int operator()(const kmp_hw_thread_t &t) const { switch (t.attrs.get_core_type()) { +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 case KMP_HW_CORE_TYPE_ATOM: return 1; case KMP_HW_CORE_TYPE_CORE: return 2; +#endif case KMP_HW_CORE_TYPE_UNKNOWN: return 0; } diff --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp --- a/openmp/runtime/src/kmp_settings.cpp +++ b/openmp/runtime/src/kmp_settings.cpp @@ -4994,11 +4994,14 @@ if (attr_ptr) { attr.clear(); // save the attribute +#if KMP_ARCH_X86 || KMP_ARCH_X86_64 if (__kmp_str_match("intel_core", -1, attr_ptr + 1)) { attr.set_core_type(KMP_HW_CORE_TYPE_CORE); } else if (__kmp_str_match("intel_atom", -1, attr_ptr + 1)) { attr.set_core_type(KMP_HW_CORE_TYPE_ATOM); - } else if (__kmp_str_match("eff", 3, attr_ptr + 1)) { + } +#endif + if (__kmp_str_match("eff", 3, attr_ptr + 1)) { const char *number = attr_ptr + 1; // skip the eff[iciency] token while (isalpha(*number))