[Openmp-commits] [openmp] r231776 - proc_bind_disabled enum value removed, its usage replased with proc_bind_false

Andrey Churbanov Andrey.Churbanov at intel.com
Tue Mar 10 02:19:47 PDT 2015


Author: achurbanov
Date: Tue Mar 10 04:19:47 2015
New Revision: 231776

URL: http://llvm.org/viewvc/llvm-project?rev=231776&view=rev
Log:
proc_bind_disabled enum value removed, its usage replased with proc_bind_false

Modified:
    openmp/trunk/runtime/src/kmp.h
    openmp/trunk/runtime/src/kmp_barrier.cpp
    openmp/trunk/runtime/src/kmp_settings.c

Modified: openmp/trunk/runtime/src/kmp.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp.h?rev=231776&r1=231775&r2=231776&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Tue Mar 10 04:19:47 2015
@@ -761,7 +761,6 @@ typedef enum kmp_proc_bind_t {
     proc_bind_master,
     proc_bind_close,
     proc_bind_spread,
-    proc_bind_disabled,
     proc_bind_intel,    // use KMP_AFFINITY interface
     proc_bind_default
 } kmp_proc_bind_t;

Modified: openmp/trunk/runtime/src/kmp_barrier.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_barrier.cpp?rev=231776&r1=231775&r2=231776&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_barrier.cpp (original)
+++ openmp/trunk/runtime/src/kmp_barrier.cpp Tue Mar 10 04:19:47 2015
@@ -1550,8 +1550,7 @@ __kmp_fork_barrier(int gtid, int tid)
 #endif // KMP_AFFINITY_SUPPORTED
 #if OMP_40_ENABLED && KMP_AFFINITY_SUPPORTED
     }
-    else if ((proc_bind != proc_bind_false)
-             && (proc_bind != proc_bind_disabled)) {
+    else if (proc_bind != proc_bind_false) {
         if (this_thr->th.th_new_place == this_thr->th.th_current_place) {
             KA_TRACE(100, ("__kmp_fork_barrier: T#%d already in correct place %d\n",
                            __kmp_gtid_from_thread(this_thr), this_thr->th.th_current_place));

Modified: openmp/trunk/runtime/src/kmp_settings.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_settings.c?rev=231776&r1=231775&r2=231776&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_settings.c (original)
+++ openmp/trunk/runtime/src/kmp_settings.c Tue Mar 10 04:19:47 2015
@@ -3216,7 +3216,7 @@ __kmp_stg_parse_proc_bind( char const *
         __kmp_affinity_type = affinity_disabled;
 # endif /* KMP_AFFINITY_SUPPORTED */
         __kmp_nested_proc_bind.used = 1;
-        __kmp_nested_proc_bind.bind_types[0] = proc_bind_disabled;
+        __kmp_nested_proc_bind.bind_types[0] = proc_bind_false;
     }
     else if ( ( num == (int)proc_bind_false )
       || __kmp_match_str( "false", buf, &next ) ) {
@@ -3362,10 +3362,6 @@ __kmp_stg_print_proc_bind( kmp_str_buf_t
                 __kmp_str_buf_print( buffer, "spread" );
                 break;
 
-                case proc_bind_disabled:
-                __kmp_str_buf_print( buffer, "disabled" );
-                break;
-
                 case proc_bind_intel:
                 __kmp_str_buf_print( buffer, "intel" );
                 break;
@@ -5120,7 +5116,7 @@ __kmp_env_initialize( char const * strin
 
 # if OMP_40_ENABLED
         if ( __kmp_affinity_type == affinity_disabled )  {
-            __kmp_nested_proc_bind.bind_types[0] = proc_bind_disabled;
+            __kmp_nested_proc_bind.bind_types[0] = proc_bind_false;
         }
         else if ( __kmp_nested_proc_bind.bind_types[0] == proc_bind_true ) {
             //





More information about the Openmp-commits mailing list