Differences
This shows you the differences between two versions of the page.
| habrok:advanced_job_management:blas_threads [2026/02/27 14:54] – created fokke | habrok:advanced_job_management:blas_threads [2026/02/27 15:01] (current) – fokke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Controlling the number of threads for OpenBLAS and Intel MKL ====== | ====== Controlling the number of threads for OpenBLAS and Intel MKL ====== | ||
| + | The number of threads for the OpenBLAS and Intel MKL numerical libraries is set to 1 on loading their module. | ||
| + | This to prevent their parallelization to interfere with the parallelization the code using these libraries. | ||
| + | It can for example happen that both R and the OpenBLAS library used by R fire up threads for parallelizing the work. This can lead to using many more program threads than the number of CPU cores allocated to your job. Since this only increases the overhead and does not lead to any gain it must be prevented. | ||
| + | |||
| + | We therefore set the environment variable '' | ||
| + | module. | ||
| + | |||
| + | Note that the '' | ||
| + | |||
| + | The '' | ||