I am curious if it is a hython thing or a Deadline one:
When Deadline triggered a render, it uses hython, on my side I see the jobs only using 16 threads versus my full 128 one.
Is there a way to change that cap limit system wide via ENV like HOUDINI_MAXTHREADS ? But I am not sure that ENV is for hython specifically
Thank you for you responses if any
Tanguy
hython runs with a threads cap when triggered via Deadline ?
907 1 1- tanguybc
- Member
- 42 posts
- Joined: Oct. 2018
- Offline
- play_w_madness
- Member
- 15 posts
- Joined: Aug. 2016
- Offline
From `hython --help`:
"""
-j arg : sets HOUDINI_MAXTHREADS to the given value;
arg is the max number of threads
"""
Which implies that HOUDINI_MAXTHREADS env var works for hython as well.
You can check the number of threads from inside hython using `hou.maxThreads()`.
Also there's `hou.setMaxThreads(max_threads)`, but according to docs, there are some limitations.
https://www.sidefx.com/docs/houdini/hom/hou/maxThreads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/hom/hou/setMaxThreads.html [www.sidefx.com]
"""
-j arg : sets HOUDINI_MAXTHREADS to the given value;
arg is the max number of threads
"""
Which implies that HOUDINI_MAXTHREADS env var works for hython as well.
You can check the number of threads from inside hython using `hou.maxThreads()`.
Also there's `hou.setMaxThreads(max_threads)`, but according to docs, there are some limitations.
https://www.sidefx.com/docs/houdini/hom/hou/maxThreads.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/hom/hou/setMaxThreads.html [www.sidefx.com]
Edited by play_w_madness - Aug. 18, 2023 23:58:28
-
- Quick Links