From 9249259cd070bc0fc0acf928bfed92c77bed196a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 3 Nov 2021 12:04:35 +0100 Subject: [PATCH] return OMP places for thread count when built with OpenMP --- driver/others/memory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 477efd664..541da3d76 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -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