return OMP places for thread count when built with OpenMP

This commit is contained in:
Martin Kroeker 2021-11-03 12:04:35 +01:00 committed by GitHub
parent 46cc347633
commit 9249259cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -250,7 +250,8 @@ int get_num_procs(void) {
return nums;
#endif
#if defined(USE_OPENMP)
if (omp_get_proc_bind() != omp_proc_bind_false)
/* if (omp_get_proc_bind() != omp_proc_bind_false)*/
nums = omp_get_num_places();
return nums;
#endif
@ -1814,7 +1815,8 @@ int get_num_procs(void) {
return nums;
#endif
#if defined(USE_OPENMP)
if (omp_get_proc_bind() != omp_proc_bind_false)
/* if (omp_get_proc_bind() != omp_proc_bind_false) */
nums = omp_get_num_places();
return nums;
#endif