Skip to content

Commit e65b2fc

Browse files
committed
Error if actual number of threads exceeds maximum number of threads.
1 parent da16129 commit e65b2fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/opdi/logic/omp/implicitTaskOmpLogic.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ void* opdi::ImplicitTaskOmpLogic::onImplicitTaskBegin(bool initialImplicitTask,
6161
// adjoint access mode.
6262
if (!initialImplicitTask) {
6363
if (index == 0) {
64+
if (parallelData->maxThreads < actualParallelism) {
65+
OPDI_ERROR("Actual number of threads exceeds maximum number of threads.");
66+
}
6467
parallelData->actualThreads = actualParallelism;
6568
}
6669

0 commit comments

Comments
 (0)