[Openmp-commits] [openmp] r227454 - fix that sets proc-bind-var to proc_bind_false if affinity is not supported

Andrey Churbanov Andrey.Churbanov at intel.com
Thu Jan 29 07:52:20 PST 2015


Author: achurbanov
Date: Thu Jan 29 09:52:20 2015
New Revision: 227454

URL: http://llvm.org/viewvc/llvm-project?rev=227454&view=rev
Log:
fix that sets proc-bind-var to proc_bind_false if affinity is not supported

Modified:
    openmp/trunk/runtime/src/kmp_settings.c

Modified: openmp/trunk/runtime/src/kmp_settings.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_settings.c?rev=227454&r1=227453&r2=227454&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_settings.c (original)
+++ openmp/trunk/runtime/src/kmp_settings.c Thu Jan 29 09:52:20 2015
@@ -5037,7 +5037,13 @@ __kmp_env_initialize( char const * strin
         }
         __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 */
 





More information about the Openmp-commits mailing list