Skip to content

Commit

Permalink
Fixed upper bound in OpenMP's getMaxThreads.
Browse files Browse the repository at this point in the history
The return value of omp_get_max_threads() can change during runtime.
  • Loading branch information
jblueh committed Oct 30, 2023
1 parent 6ba78b1 commit 0ad036f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace codi {

/// \copydoc ThreadInformationInterface::getMaxThreads()
static CODI_INLINE int getMaxThreads() {
return omp_get_max_threads();
return 512;
}

/// \copydoc ThreadInformationInterface::getThreadId()
Expand Down

0 comments on commit 0ad036f

Please sign in to comment.