[Openmp-commits] [openmp] [OpenMP] Fix preprocessor mismatches between include and usages of hwloc (PR #158349)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 18 02:12:16 PDT 2025
jprotze wrote:
I don't think it is necessary to replace all `#if KMP_USE_HWLOC` by the new macro, but I don't see how it would be harmful. All uses of `__kmp_hwloc_topology` should be sufficient to fix the compilation issue. For testing the changes on a non-darwin platform, it should be sufficient to just modify the `#define KMP_AFFINITY_SUPPORTED 1` in kmp_os.h to set the value to 0.
How about `KMP_INCLUDES_HWLOC` as name for the new define?
https://github.com/llvm/llvm-project/pull/158349
More information about the Openmp-commits
mailing list