proc_bind_disabled enum value removed, its usage replased with proc_bind_false
authorAndrey Churbanov <Andrey.Churbanov@intel.com>
Tue, 10 Mar 2015 09:19:47 +0000 (09:19 +0000)
committerAndrey Churbanov <Andrey.Churbanov@intel.com>
Tue, 10 Mar 2015 09:19:47 +0000 (09:19 +0000)
llvm-svn: 231776

openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_barrier.cpp
openmp/runtime/src/kmp_settings.c

index 1addf4b9aba79afe30047560186cb48ebc424609..ec7e8babeaaa6f7fa4d80e02b36c960d530778ce 100644 (file)
@@ -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;
index eb3c21a673d13a3cb295bbbe58c13347577d9f3b..f6e0d0a494fa132934cba1f0482a6fe7501d72cb 100644 (file)
@@ -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));
index f22fdc2432f9abbe4e7ae7975c30d72ba809d0b6..97dd1f7623ebd3ed6c27af0844cd73f7f05667dd 100644 (file)
@@ -3216,7 +3216,7 @@ __kmp_stg_parse_proc_bind( char const * name, char const * value, void * data )
         __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 * buffer, char const * name,
                 __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 * string ) {
 
 # 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 ) {
             //