summaryrefslogtreecommitdiffstats
path: root/openmp/runtime
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-01-29 15:52:20 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-01-29 15:52:20 +0000
commit78bfb7c3a772330fe735f8c70dd1d6c212bb6056 (patch)
tree849200c06fcdcd216bc7e69451bc4b4922c799d1 /openmp/runtime
parent88162579495e4d6a4b6b96fd614cd9409d5beb1b (diff)
downloadbcm5719-llvm-78bfb7c3a772330fe735f8c70dd1d6c212bb6056.tar.gz
bcm5719-llvm-78bfb7c3a772330fe735f8c70dd1d6c212bb6056.zip
fix that sets proc-bind-var to proc_bind_false if affinity is not supported
llvm-svn: 227454
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/kmp_settings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_settings.c b/openmp/runtime/src/kmp_settings.c
index d3968c2b373..bbc147df620 100644
--- a/openmp/runtime/src/kmp_settings.c
+++ b/openmp/runtime/src/kmp_settings.c
@@ -5037,7 +5037,13 @@ __kmp_env_initialize( char const * string ) {
}
__kmp_nested_proc_bind.size = 1;
__kmp_nested_proc_bind.used = 1;
+# if KMP_AFFINITY_SUPPORTED
__kmp_nested_proc_bind.bind_types[0] = proc_bind_default;
+# else
+ // default proc bind is false if affinity not supported
+ __kmp_nested_proc_bind.bind_types[0] = proc_bind_false;
+# endif
+
}
#endif /* OMP_40_ENABLED */
OpenPOWER on IntegriCloud