... | ... | @@ -2,6 +2,8 @@ |
|
|
|
|
|
As explained in the ["Monitoring Resources"](/monitoring) page, it is your responsibility to make sure that you are not monopolizing the entire CPUs of a server. This page lists a set of tricks to limit the number of CPU threads used by your scripts, when using common applications and libraries.
|
|
|
|
|
|
Note that, most of the times, you will not be using one of the libraries below directly, but rather through a higher level application (for example, OpenMP is used by TensorFlow). So, it is up to you to discover which parallel libraries your script uses and limit them accordingly.
|
|
|
|
|
|
## Limiting CPU Threads in OpenMP
|
|
|
|
|
|
[OpenMP](https://www.openmp.org/) is a common shared-memory parallel programming library. For example, OpenMP is sometimes used by TensorFlow and PyTorch when training a model without GPU support.
|
... | ... | |