Skip to content

Commit 59b889e

Browse files
committed
Fix placement of skipParallelHandling decrement.
1 parent eaa91ab commit 59b889e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/opdi/logic/omp/parallelOmpLogic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ void opdi::ParallelOmpLogic::reverseFunc(void* dataPtr) {
7474
data->adjointAccessModes[threadNum][j - 1] == AdjointAccessMode::Atomic);
7575
}
7676

77-
--ParallelOmpLogic::skipParallelHandling;
78-
7977
tool->setThreadLocalTape(oldTape);
8078

8179
#if OPDI_OMP_LOGIC_INSTRUMENT
@@ -85,6 +83,8 @@ void opdi::ParallelOmpLogic::reverseFunc(void* dataPtr) {
8583
#endif
8684
}
8785

86+
--ParallelOmpLogic::skipParallelHandling;
87+
8888
#if OPDI_OMP_LOGIC_INSTRUMENT
8989
for (auto& instrument : ompLogicInstruments) {
9090
instrument->reverseParallelEnd(data);

0 commit comments

Comments
 (0)