Skip to content

Commit ef25db3

Browse files
committed
merge main into amd-staging
2 parents a4d7dc9 + 730e8a4 commit ef25db3

File tree

6 files changed

+338
-73
lines changed

6 files changed

+338
-73
lines changed

openmp/runtime/src/kmp.h

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

11131113
extern int __kmp_memkind_available;
1114+
extern bool __kmp_hwloc_available;
11141115

11151116
typedef struct kmp_memspace_t {
11161117
omp_memspace_handle_t memspace;
@@ -1127,6 +1128,9 @@ typedef struct kmp_allocator_t {
11271128
kmp_uint64 pool_size;
11281129
kmp_uint64 pool_used;
11291130
bool pinned;
1131+
#if KMP_USE_HWLOC
1132+
omp_alloctrait_value_t membind;
1133+
#endif
11301134
} kmp_allocator_t;
11311135

11321136
extern omp_memspace_handle_t

openmp/runtime/src/kmp_affinity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,7 @@ 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;
14471448
} else
14481449
#endif
14491450
{

0 commit comments

Comments
 (0)