Browse Source

old OpenMP versions lack omp_get_num_places

pull/3437/head
Martin Kroeker GitHub 4 years ago
parent
commit
85401a0add
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      driver/others/memory.c

+ 4
- 0
driver/others/memory.c 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



Loading…
Cancel
Save