Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions openmp/runtime/src/kmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ extern omp_allocator_handle_t __kmp_def_allocator;
#endif

extern int __kmp_memkind_available;
extern bool __kmp_hwloc_available;

typedef omp_memspace_handle_t kmp_memspace_t; // placeholder

Expand All @@ -1119,6 +1120,9 @@ typedef struct kmp_allocator_t {
kmp_uint64 pool_size;
kmp_uint64 pool_used;
bool pinned;
#if KMP_USE_HWLOC
omp_alloctrait_value_t membind;
#endif
} kmp_allocator_t;

extern omp_allocator_handle_t __kmpc_init_allocator(int gtid,
Expand Down
1 change: 1 addition & 0 deletions openmp/runtime/src/kmp_affinity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ void KMPAffinity::pick_api() {
if (__kmp_affinity_top_method == affinity_top_method_hwloc &&
__kmp_affinity.type != affinity_disabled) {
affinity_dispatch = new KMPHwlocAffinity();
__kmp_hwloc_available = true;
} else
#endif
{
Expand Down
Loading