fixing mistake in kmp_get_affinity_max_proc() api function
authorAndrey Churbanov <Andrey.Churbanov@intel.com>
Thu, 29 Jan 2015 15:48:21 +0000 (15:48 +0000)
committerAndrey Churbanov <Andrey.Churbanov@intel.com>
Thu, 29 Jan 2015 15:48:21 +0000 (15:48 +0000)
llvm-svn: 227450

openmp/runtime/src/kmp_ftn_entry.h

index 8039853..d43d545 100644 (file)
@@ -258,7 +258,7 @@ FTN_GET_AFFINITY_MAX_PROC( void )
         }
 
     #if KMP_GROUP_AFFINITY
-        if ( __kmp_num_proc_groups <= 1 ) {
+        if ( __kmp_num_proc_groups > 1 ) {
             return (int)KMP_CPU_SETSIZE;
         }
     #endif /* KMP_GROUP_AFFINITY */