We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6b9655 commit 398d974Copy full SHA for 398d974
1 file changed
include/opdi/logic/omp/parallelOmpLogic.cpp
@@ -177,6 +177,12 @@ void opdi::ParallelOmpLogic::onParallelEnd(void* dataPtr) {
177
178
// do not delete data, it is deleted with the handle
179
180
+ // see if the adjoint access mode changed inside the parallel region
181
+ // if so, we have to make sure that it carries over to the containing parallel region
182
+ if (data->outerAdjointAccessMode != AdjointAccessControl::currentMode()) {
183
+ this->setAdjointAccessMode(AdjointAccessControl::currentMode());
184
+ }
185
+
186
} else {
187
deleteFunc(data);
188
}
0 commit comments