diff --git a/openmp/libomptarget/deviceRTLs/common/src/parallel.cu b/openmp/libomptarget/deviceRTLs/common/src/parallel.cu --- a/openmp/libomptarget/deviceRTLs/common/src/parallel.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/parallel.cu @@ -322,13 +322,6 @@ // TODO: what if that's a parallel region with a single thread? this is // considered not active in the existing implementation. - bool IsActiveParallelRegion = threadsInTeam != 1; - int NumWarps = - threadsInTeam / WARPSIZE + ((threadsInTeam % WARPSIZE) ? 1 : 0); - // Increment parallel level for non-SPMD warps. - for (int I = 0; I < NumWarps; ++I) - parallelLevel[I] += - (1 + (IsActiveParallelRegion ? OMP_ACTIVE_PARALLEL_LEVEL : 0)); // Master signals work to activate workers. __kmpc_barrier_simple_spmd(nullptr, 0); @@ -341,10 +334,6 @@ // The master waits at this barrier until all workers are done. __kmpc_barrier_simple_spmd(nullptr, 0); - // Decrement parallel level for non-SPMD warps. - for (int I = 0; I < NumWarps; ++I) - parallelLevel[I] -= - (1 + (IsActiveParallelRegion ? OMP_ACTIVE_PARALLEL_LEVEL : 0)); // TODO: Is synchronization needed since out of parallel execution? if (nargs)