Skip to content

Commit f2618cd

Browse files
committed
Revert "[OpenMP] Add memory allocation using hwloc (llvm#132843)"
This reverts commit 730e8a4.
1 parent ef25db3 commit f2618cd

File tree

6 files changed

+73
-338
lines changed

6 files changed

+73
-338
lines changed

openmp/runtime/src/kmp.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,6 @@ extern omp_allocator_handle_t __kmp_def_allocator;
11111111
#endif
11121112

11131113
extern int __kmp_memkind_available;
1114-
extern bool __kmp_hwloc_available;
11151114

11161115
typedef struct kmp_memspace_t {
11171116
omp_memspace_handle_t memspace;
@@ -1128,9 +1127,6 @@ typedef struct kmp_allocator_t {
11281127
kmp_uint64 pool_size;
11291128
kmp_uint64 pool_used;
11301129
bool pinned;
1131-
#if KMP_USE_HWLOC
1132-
omp_alloctrait_value_t membind;
1133-
#endif
11341130
} kmp_allocator_t;
11351131

11361132
extern omp_memspace_handle_t

openmp/runtime/src/kmp_affinity.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,6 @@ void KMPAffinity::pick_api() {
14441444
if (__kmp_affinity_top_method == affinity_top_method_hwloc &&
14451445
__kmp_affinity.type != affinity_disabled) {
14461446
affinity_dispatch = new KMPHwlocAffinity();
1447-
__kmp_hwloc_available = true;
14481447
} else
14491448
#endif
14501449
{

0 commit comments

Comments
 (0)