At present, when the user provides an input thread count, if that exceeds the value returned by omp_get_max_threads() the number of threads is set to omp_get_max_threads().
While this usually makes sense, instead of doing this just print a warning and continue.
The number of threads still needs to be limited to prevent chaos so set to an upper limit of omp_get_max_threads() * 4.
At present, when the user provides an input thread count, if that exceeds the value returned by
omp_get_max_threads()
the number of threads is set toomp_get_max_threads()
.While this usually makes sense, instead of doing this just print a warning and continue.
The number of threads still needs to be limited to prevent chaos so set to an upper limit of
omp_get_max_threads() * 4
.