From a207bbbe1643babe08defa892fc391aaf632c621 Mon Sep 17 00:00:00 2001 From: Nuno Nobre Date: Thu, 8 Oct 2026 09:13:36 +0100 Subject: [PATCH 1/2] Fix preprocessor conditional macro --- driver/others/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index 8e24773841..9022e223bd 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -464,7 +464,7 @@ int blas_get_cpu_number(void){ #endif // blas_goto_num = 0; -#ifndef USE_OPENMP_UNUSED +#ifndef USE_OPENMP blas_goto_num=openblas_num_threads_env(); if (blas_goto_num < 0) blas_goto_num = 0; From a64b14fee1762c422fd6699ea8401a3b7b8deeea Mon Sep 17 00:00:00 2001 From: Nuno Nobre Date: Fri, 9 Oct 2026 21:10:18 +0100 Subject: [PATCH 2/2] Adjust notes on runtime variables --- docs/runtime_variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/runtime_variables.md b/docs/runtime_variables.md index d1b6ac4239..96e67bbfb3 100644 --- a/docs/runtime_variables.md +++ b/docs/runtime_variables.md @@ -3,7 +3,7 @@ OpenBLAS checks the following environment variables on startup: * `OPENBLAS_NUM_THREADS`: the number of threads to use (for non-OpenMP builds of OpenBLAS) * `OMP_NUM_THREADS`: the number of threads to use (for OpenMP builds - note - that setting this may also affect any other OpenMP code) + that setting this may also affect any other OpenMP code and non-OpenMP builds) * `OPENBLAS_DEFAULT_NUM_THREADS`: the number of threads to use, irrespective if OpenBLAS was built for OpenMP or pthreads