summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_affinity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/kmp_affinity.cpp')
-rw-r--r--openmp/runtime/src/kmp_affinity.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp
index 2d7f7a3e434..b58a3d6e461 100644
--- a/openmp/runtime/src/kmp_affinity.cpp
+++ b/openmp/runtime/src/kmp_affinity.cpp
@@ -682,10 +682,9 @@ static int __kmp_affinity_create_proc_group_map(AddrUnsPair **address2os,
*address2os = NULL;
*msg_id = kmp_i18n_null;
- // If we don't have multiple processor groups, return now.
+ // If we aren't affinity capable, then return now.
// The flat mapping will be used.
- if ((!KMP_AFFINITY_CAPABLE()) ||
- (__kmp_get_proc_group(__kmp_affin_fullMask) >= 0)) {
+ if (!KMP_AFFINITY_CAPABLE()) {
// FIXME set *msg_id
return -1;
}
OpenPOWER on IntegriCloud