From e298d613fa4050f11df8764f5e19d0ccf07e491b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 8 Mar 2023 23:43:15 +0100 Subject: [PATCH] initialize status variable for openblas_set_num_threads --- driver/others/memory.c | 4 ++++ driver/others/memory_qalloc.c | 1 + 2 files changed, 5 insertions(+) diff --git a/driver/others/memory.c b/driver/others/memory.c index be7450585..4493b7d71 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -422,6 +422,8 @@ This value is equal or large than blas_cpu_number. This means some threads are s */ int blas_num_threads = 0; +int blas_num_threads_set = 0; + int goto_get_num_procs (void) { return blas_cpu_number; } @@ -1994,6 +1996,8 @@ This value is equal or large than blas_cpu_number. This means some threads are s */ int blas_num_threads = 0; +int blas_num_threads_set = 0; + int goto_get_num_procs (void) { return blas_cpu_number; } diff --git a/driver/others/memory_qalloc.c b/driver/others/memory_qalloc.c index 6174d9b75..0b38d1887 100644 --- a/driver/others/memory_qalloc.c +++ b/driver/others/memory_qalloc.c @@ -283,6 +283,7 @@ The numbers of threads in the thread pool. This value is equal or large than blas_cpu_number. This means some threads are sleep. */ int blas_num_threads = 0; +int blas_num_threads_set = 0; int goto_get_num_procs (void) { return blas_cpu_number;