Browse Source

need openmp 4.5 for get_num_places

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

+ 2
- 2
driver/others/memory.c 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;


Loading…
Cancel
Save