old OpenMP versions lack omp_get_num_places

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

View File

@ -251,7 +251,9 @@ int get_num_procs(void) {
#endif
#if defined(USE_OPENMP)
/* if (omp_get_proc_bind() != omp_proc_bind_false)*/
#if _OPENMP >= 201307
nums = omp_get_num_places();
#endif
return nums;
#endif
@ -1816,7 +1818,9 @@ int get_num_procs(void) {
#endif
#if defined(USE_OPENMP)
/* if (omp_get_proc_bind() != omp_proc_bind_false) */
#if_OPENMP >= 201307
nums = omp_get_num_places();
#endif
return nums;
#endif