Running too many processes/threads and overloading the CPUs #873
-
|
Hi Miles, Thanks for providing such a well documented library and for the active support. This is truly helping the greater scientific community. I have been trying to run my model on our HPC, but the jobs get killed due to using to many threads. I have provided the model parameters below.
I have attempted to limit the number of threads to 1 per core, but it seems to be overwritten somehow. Using these parameters, the julia code spawns 44 cores and 147 threads. I wonder if the population or turbo parameter might spawn more procs than requested? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @albrechtsenmm, Thanks for the question. Sorry for the confusion: The correct environment variable is It would certainly be nice if we had these listed in the PySR docs as well. This threads parameter is set at startup, so the PySRRegressor config isn’t able to unset it unfortunately. Let me know if that env var works for you? |
Beta Was this translation helpful? Give feedback.
Hi @albrechtsenmm,
Thanks for the question. Sorry for the confusion: The correct environment variable is
PYTHON_JULIACALL_THREADS, as PySR interfaces with Julia using juliacall. You can see the full list of env vars here: https://juliapy.github.io/PythonCall.jl/stable/juliacall/#julia-config.It would certainly be nice if we had these listed in the PySR docs as well.
This threads parameter is set at startup, so the PySRRegressor config isn’t able to unset it unfortunately.
Let me know if that env var works for you?