[OpenMP][libomp] Insert correct HWLOC version guards
authorGilles Gouaillardet <gilles.gouaillardet@gmail.com>
Thu, 19 Jan 2023 20:24:00 +0000 (14:24 -0600)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 19 Jan 2023 20:30:43 +0000 (14:30 -0600)
commit3a362a9f38b95978160377ee408dbc7d14af9aad
tree701f143a7b4980d78558c186100925b101b3208a
parent066b4fcb8df2fa5f5635bdf1c66825c01dbf93fd
[OpenMP][libomp] Insert correct HWLOC version guards

Put needed HWLOC version guards around relevant HWLOC API.
Tested OpenMP host runtime build with HWLOC 1.11.13, 2.0-2.9.

Differential Revision: https://reviews.llvm.org/D142152
Fix #54951
openmp/runtime/src/kmp_affinity.cpp