Commit e50d3466 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

No commit message

No commit message
parent d69d196c
...@@ -875,7 +875,8 @@ int main(int argc, char *argv[]) ...@@ -875,7 +875,8 @@ int main(int argc, char *argv[])
} }
#if defined (_OPENMP) #if defined (_OPENMP)
if ( numThreads > 0 ) omp_set_num_threads(numThreads); if ( numThreads <= 0 ) numThreads = 1;
omp_set_num_threads(numThreads);
ompNumThreads = omp_get_max_threads(); ompNumThreads = omp_get_max_threads();
if ( omp_get_max_threads() > omp_get_num_procs() ) if ( omp_get_max_threads() > omp_get_num_procs() )
fprintf(stderr, " Number of threads greater than number of CPUs=%d!\n", omp_get_num_procs()); fprintf(stderr, " Number of threads greater than number of CPUs=%d!\n", omp_get_num_procs());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment