... | @@ -27,9 +27,9 @@ See this [link](https://github.com/xianyi/OpenBLAS#setting-the-number-of-threads |
... | @@ -27,9 +27,9 @@ See this [link](https://github.com/xianyi/OpenBLAS#setting-the-number-of-threads |
|
|
|
|
|
## Other Tools and Libraries
|
|
## Other Tools and Libraries
|
|
|
|
|
|
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.
|
|
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. We have some more settings but we did not have time to document them properly.
|
|
|
|
|
|
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:
|
|
**TLDR**: In any case, 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 OMP_NUM_THREADS=4
|
|
export OPENBLAS_NUM_THREADS=4
|
|
export OPENBLAS_NUM_THREADS=4
|
... | | ... | |