From 78bfb7c3a772330fe735f8c70dd1d6c212bb6056 Mon Sep 17 00:00:00 2001 From: Andrey Churbanov Date: Thu, 29 Jan 2015 15:52:20 +0000 Subject: [PATCH] fix that sets proc-bind-var to proc_bind_false if affinity is not supported llvm-svn: 227454 --- openmp/runtime/src/kmp_settings.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmp/runtime/src/kmp_settings.c b/openmp/runtime/src/kmp_settings.c index d3968c2..bbc147d 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 */ -- 2.7.4