fix that sets proc-bind-var to proc_bind_false if affinity is not supported

llvm-svn: 227454
This commit is contained in:
Andrey Churbanov 2015-01-29 15:52:20 +00:00
parent 8816257949
commit 78bfb7c3a7

View File

@ -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 */