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 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;