[Openmp-commits] [PATCH] D114901: [OpenMP][libomp] Add core attributes to KMP_HW_SUBSET

Kazushi Marukawa via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 13 10:45:07 PST 2021


kaz7 added a comment.

I've just noticed this is causing compile errors on not X86 machine.



================
Comment at: openmp/runtime/src/kmp_settings.cpp:4998-5000
+          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);
----------------
These lines causes undeclared KMP_HW_CORE_TYPE_ATOM and KMP_HW_CORE_TYPE_CORE errors.  Both are defined iff KMP_ARCH_X86 || KMP_ARCH_X86_64.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114901/new/

https://reviews.llvm.org/D114901



More information about the Openmp-commits mailing list