Skip to content

Commit 5102c3c

Browse files
committed
[OpenMP][FIX] Do not adjust the level after the environment was popped
Exiting a data environment will reset all values, it is wrong to adjust them afterwards. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D112144
1 parent b16aadf commit 5102c3c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

openmp/libomptarget/DeviceRTL/src/Parallelism.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ void __kmpc_serialized_parallel(IdentTy *, uint32_t TId) {
199199

200200
void __kmpc_end_serialized_parallel(IdentTy *, uint32_t TId) {
201201
state::exitDataEnvironment();
202-
--icv::Level;
203202
}
204203

205204
uint16_t __kmpc_parallel_level(IdentTy *, uint32_t) { return omp_get_level(); }

0 commit comments

Comments
 (0)