... | ... | @@ -29,6 +29,16 @@ See this [link](https://github.com/xianyi/OpenBLAS#setting-the-number-of-threads |
|
|
|
|
|
If you are currently working with another program or library that uses multi-threading, and you can share some code or some tips on how to limit the number of threads, please contact the sysadmins. We will be glad to add your suggestions to this page.
|
|
|
|
|
|
This is a safe setting that we found works quite well on our servers to prevent most libraries to make an excessive use of resources:
|
|
|
```
|
|
|
export OMP_NUM_THREADS=4
|
|
|
export OPENBLAS_NUM_THREADS=4
|
|
|
export MKL_NUM_THREADS=4
|
|
|
export VECLIB_MAXIMUM_THREADS=4
|
|
|
export NUMEXPR_NUM_THREADS=4
|
|
|
```
|
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
Thanks to Francesco Daghero for contributing to this page. |