Could u please tell me how to make Comfyui to use all cpu's threads? #1634
Replies: 2 comments 2 replies
-
i would like to do the same. or if there is a command that makes it run on an AMD GPU |
Beta Was this translation helpful? Give feedback.
-
comfy/utils.py looks the easiest to set right before a load. Might want to do a few torch performance tests to see how much it will actually slow down not speed up. Intel has done a good job at tuning their chips for torch. util already has torch imported so no need to import set_torch_threads(2) would do a def cpu_torch_threads() if multiprossesor.cpu_count() == get_torch_threads() else set_torch_threads("your multiprocessor count^^") no that is not correct syntax but its a idea. Then have it reset at shut down. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
first of all thank you for this
can somebody tell me please how to make comfyui to use all my cpu threads?
in webui somebody said we can change it by:
AUTOMATIC1111/stable-diffusion-webui#3387
torch.set_num_threads()
torch.set_num_interop_threads()
but i don't know where i can change these in comfyui.
kind regards
Beta Was this translation helpful? Give feedback.
All reactions