Skip to content

Commit b6c906f

Browse files
authored
Add OPENBLAS_L2_SIZE and improve formatting
1 parent 33b9e5b commit b6c906f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/runtime_variables.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22

33
OpenBLAS checks the following environment variables on startup:
44

5-
* **OPENBLAS_NUM_THREADS=** the number of threads to use (for non OpenMP-builds of OpenBLAS)
5+
* **OPENBLAS_NUM_THREADS=** the number of threads to use (for non-OpenMP-builds of OpenBLAS)
66
* **OMP_NUM_THREADS=** the number of threads to use (for OpenMP builds - note that setting this may also affect any other OpenMP code)
77
* **OPENBLAS_DEFAULT_NUM_THREADS=** the number of threads to use, irrespective if OpenBLAS was built for OpenMP or pthreads
88

99
* **OPENBLAS_MAIN_FREE=1**" this can be used to disable automatic assignment of cpu affinity in OpenBLAS builds that have it enabled by default
1010
* **OPENBLAS_THREAD_TIMEOUT=** this can be used to define the length of time that idle threads should wait before exiting
1111
* **OMP_ADAPTIVE=1** this can be used in OpenMP builds to actually remove any surplus threads when the number of threads is decreased
12-
*
12+
13+
1314
DYNAMIC_ARCH builds also accept the following:
1415
* **OPENBLAS_VERBOSE=** set this to "1" to enable a warning when there is no exact match for the detected cpu in the library
15-
* set this to "2" to make OpenBLAS print the name of the cpu target it autodetected
16+
set this to "2" to make OpenBLAS print the name of the cpu target it autodetected
1617
* **OPENBLAS_CORETYPE=** set this to one of the supported target names to override autodetection, e.g. OPENBLAS_CORETYPE=HASWELL
18+
* **OPENBLAS_L2_SIZE=** set this to override the autodetected size of the L2 cache where it is not reported correctly (in virtual environments)
1719

1820

1921

0 commit comments

Comments
 (0)