[Openmp-commits] [openmp] [OpenMP] Fix preprocessor mismatches between include and usages of hwloc (PR #158349)
Peter Arzt via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 18 11:16:30 PDT 2025
pearzt wrote:
@jprotze True, it's not strictly necessary, but the motivation was to help preventing similar issues in the future, since it is easy to overlook that `hwloc.h` is not necessarily included when `KMP_USE_HWLOC` is enabled.
I have tested it with `#define KMP_AFFINITY_SUPPORTED 1` and the fix works for me, but it would still be nice to have confirmation on the platform where the build issue occurs.
Thanks for suggesting `KMP_INCLUDES_HWLOC` as a better name - PR is updated.
https://github.com/llvm/llvm-project/pull/158349
More information about the Openmp-commits
mailing list