aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/kmp.h')
-rw-r--r--runtime/src/kmp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/src/kmp.h b/runtime/src/kmp.h
index 16ecaa5..0133108 100644
--- a/runtime/src/kmp.h
+++ b/runtime/src/kmp.h
@@ -96,6 +96,12 @@ class kmp_stats_list;
#ifndef HWLOC_OBJ_PACKAGE
#define HWLOC_OBJ_PACKAGE HWLOC_OBJ_SOCKET
#endif
+#if HWLOC_API_VERSION >= 0x00020000
+// hwloc 2.0 changed type of depth of object from unsigned to int
+typedef int kmp_hwloc_depth_t;
+#else
+typedef unsigned int kmp_hwloc_depth_t;
+#endif
#endif
#if KMP_ARCH_X86 || KMP_ARCH_X86_64