need openmp 4.5 for get_num_places

This commit is contained in:
Martin Kroeker 2021-11-04 08:34:55 +01:00 committed by GitHub
parent 36c7b84114
commit faa066c22f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ int get_num_procs(void) {
if (!nums) nums = sysconf(_SC_NPROCESSORS_CONF);
#if defined(USE_OPENMP)
#if _OPENMP >= 201307
#if _OPENMP >= 201511
nums = omp_get_num_places();
#endif
return nums;
@ -1817,7 +1817,7 @@ int get_num_procs(void) {
#if defined(USE_OPENMP)
/* if (omp_get_proc_bind() != omp_proc_bind_false) */
#if _OPENMP >= 201307
#if _OPENMP >= 201511
nums = omp_get_num_places();
#endif
return nums;