Browse Source

return OMP places for thread count when built with OpenMP

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

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



Loading…
Cancel
Save