Skip to content
GitLab
  • Explore
  • Sign in
  • EDA Guides
  • eda-servers-guide
  • Wiki
  • cpu limit

cpu limit · Changes

Page history
Update cpu limit authored Oct 04, 2023 by Daniele Jahier Pagliari's avatar Daniele Jahier Pagliari
Hide whitespace changes
Inline Side-by-side
cpu-limit.md
View page @ af34071d
...@@ -29,6 +29,16 @@ See this [link](https://github.com/xianyi/OpenBLAS#setting-the-number-of-threads ...@@ -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. 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 ## Credits
Thanks to Francesco Daghero for contributing to this page. Thanks to Francesco Daghero for contributing to this page.
Clone repository
Home

Servers Information
Accounts
Connecting to the Servers
Storage Management and Quotas
Monitoring Resources
Software, Libraries and Data
  • Using Custom Software
  • Software Modules on Philae
  • Remote Code Deployment
  • Python Virtual Environments
  • EDA Technology Libraries
  • Shared Datasets
Miscellaneous Settings
  • Setting Up CUDA Libraries
  • Choosing which GPU to Use
  • Limiting GPU Memory
  • Limiting CPU Threads
Gitlab

Sidebar