[Openmp-commits] [openmp] r246703 - Remove duplicate of num_threads assignment.

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 2 13:28:50 PDT 2015


Author: jlpeyton
Date: Wed Sep  2 15:28:50 2015
New Revision: 246703

URL: http://llvm.org/viewvc/llvm-project?rev=246703&view=rev
Log:
Remove duplicate of num_threads assignment.

The th.th_team_nproc is assigned in __kmp_allocate_thread() just 3 lines above,
so there is no need to assign the same value again.

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=246703&r1=246702&r2=246703&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c (original)
+++ openmp/trunk/runtime/src/kmp_runtime.c Wed Sep  2 15:28:50 2015
@@ -5049,7 +5049,6 @@ __kmp_allocate_team( kmp_root_t *root, i
                 kmp_info_t * new_worker = __kmp_allocate_thread( root, team, f );
                 KMP_DEBUG_ASSERT( new_worker );
                 team->t.t_threads[ f ] = new_worker;
-                new_worker->th.th_team_nproc = team->t.t_nproc;
 
                 KA_TRACE( 20, ("__kmp_allocate_team: team %d init T#%d arrived: join=%u, plain=%u\n",
                                 team->t.t_id, __kmp_gtid_from_tid( f, team ), team->t.t_id, f,




More information about the Openmp-commits mailing list