summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_affinity.cpp
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2019-06-03 14:21:59 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2019-06-03 14:21:59 +0000
commit3f786dab0eb136917dab32c6f414bc78650b2876 (patch)
tree8fd0d8eb7e6f48be60e233bf0aa723886d9a81c9 /openmp/runtime/src/kmp_affinity.cpp
parent9111f35f0233af8fb91467cf65100b7cda50f892 (diff)
downloadbcm5719-llvm-3f786dab0eb136917dab32c6f414bc78650b2876.tar.gz
bcm5719-llvm-3f786dab0eb136917dab32c6f414bc78650b2876.zip
Fixed build warning with -DLIBOMP_USE_HWLOC=1
Made type of depth of hwloc object to correapond with change from unsigned in hwloc 1,x to int in hwloc 2.x. This eliminates the warning on signed-unsigned comparison. Differential Revision: https://reviews.llvm.org/D62332 llvm-svn: 362401
Diffstat (limited to 'openmp/runtime/src/kmp_affinity.cpp')
-rw-r--r--openmp/runtime/src/kmp_affinity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp
index b8d585c6e25..d86de7e28fd 100644
--- a/openmp/runtime/src/kmp_affinity.cpp
+++ b/openmp/runtime/src/kmp_affinity.cpp
@@ -457,7 +457,8 @@ static int __kmp_hwloc_get_nobjs_under_obj(hwloc_obj_t obj,
}
static int __kmp_hwloc_count_children_by_depth(hwloc_topology_t t,
- hwloc_obj_t o, unsigned depth,
+ hwloc_obj_t o,
+ kmp_hwloc_depth_t depth,
hwloc_obj_t *f) {
if (o->depth == depth) {
if (*f == NULL)
OpenPOWER on IntegriCloud