[Openmp-commits] [openmp] r257380 - Remove double negative in if() logic.

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 11 12:37:39 PST 2016


Author: jlpeyton
Date: Mon Jan 11 14:37:39 2016
New Revision: 257380

URL: http://llvm.org/viewvc/llvm-project?rev=257380&view=rev
Log:
Remove double negative in if() logic.

Change (__kmp_mic_type != non_mic) to (__kmp_mic_type == mic2)

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

Modified: openmp/trunk/runtime/src/kmp_runtime.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_runtime.c?rev=257380&r1=257379&r2=257380&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c (original)
+++ openmp/trunk/runtime/src/kmp_runtime.c Mon Jan 11 14:37:39 2016
@@ -6422,7 +6422,7 @@ __kmp_do_serial_initialize( void )
         #undef kmp_reduction_barrier_gather_bb
     #endif // KMP_FAST_REDUCTION_BARRIER
 #if KMP_ARCH_X86_64 && (KMP_OS_LINUX || KMP_OS_WINDOWS)
-    if( __kmp_mic_type != non_mic ) {
+    if (__kmp_mic_type == mic2) { // KNC
         // AC: plane=3,2, forkjoin=2,1 are optimal for 240 threads on KNC
         __kmp_barrier_gather_branch_bits [ bs_plain_barrier ] = 3;  // plain gather
         __kmp_barrier_release_branch_bits[ bs_forkjoin_barrier ] = 1;  // forkjoin release
@@ -6430,7 +6430,7 @@ __kmp_do_serial_initialize( void )
         __kmp_barrier_release_pattern[ bs_forkjoin_barrier ] = bp_hierarchical_bar;
     }
 #if KMP_FAST_REDUCTION_BARRIER
-    if( __kmp_mic_type != non_mic ) {
+    if (__kmp_mic_type == mic2) { // KNC
         __kmp_barrier_gather_pattern [ bs_reduction_barrier ] = bp_hierarchical_bar;
         __kmp_barrier_release_pattern[ bs_reduction_barrier ] = bp_hierarchical_bar;
     }




More information about the Openmp-commits mailing list