From 2963f30a61dc681d264c0988a1f2c09a053265d0 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 5 Nov 2025 17:54:37 +0000 Subject: [PATCH] OMP_NUM_THREADS also affects non-OpenMP builds --- docs/runtime_variables.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/runtime_variables.md b/docs/runtime_variables.md index f1ffb791fd..936af74543 100644 --- a/docs/runtime_variables.md +++ b/docs/runtime_variables.md @@ -2,8 +2,9 @@ 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) +* `OMP_NUM_THREADS`: the number of threads to use (for OpenMP builds, and as a + fallback for pthreads builds - note that setting this may also affect any + other OpenMP code) * `OPENBLAS_DEFAULT_NUM_THREADS`: the number of threads to use, irrespective if OpenBLAS was built for OpenMP or pthreads