Skip to content

Commit c9d9557

Browse files
author
Burhan
committed
Fix: Add missing preprocessor guard for hwloc types on macOS
1 parent 99f61f3 commit c9d9557

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openmp/runtime/src/kmp_alloc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ void __kmp_fini_memkind() {
15451545
#endif
15461546
}
15471547

1548-
#if KMP_USE_HWLOC
1548+
#if KMP_USE_HWLOC && KMP_AFFINITY_SUPPORTED
15491549
static bool __kmp_is_hwloc_membind_supported(hwloc_membind_policy_t policy) {
15501550
#if HWLOC_API_VERSION >= 0x00020300
15511551
const hwloc_topology_support *support;
@@ -1563,6 +1563,7 @@ static bool __kmp_is_hwloc_membind_supported(hwloc_membind_policy_t policy) {
15631563
return false;
15641564
#endif
15651565
}
1566+
#endif
15661567

15671568
void *__kmp_hwloc_alloc_membind(hwloc_memattr_id_e attr, size_t size,
15681569
hwloc_membind_policy_t policy) {

0 commit comments

Comments
 (0)