ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Comfy not using all provided threads

Open NullEqualsZero opened this issue 1 year ago • 2 comments

I am getting this warning. Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. NumExpr defaulting to 8 threads. I am not sure what to do. My GPU is not that great so the more optimizing the better.

NullEqualsZero avatar Mar 22 '24 21:03 NullEqualsZero

I also received this warning and I don't quite understand it. Does this affect performance? Can I increase this value to speed up my workflow? Because I have multiple GPUs running different workflows at the same time.

Here is my configuration: GPUs: RTX 4090 (24GB) x 2 CPU: 24 vCPUs Intel® Xeon® Platinum 8352V CPU @ 2.10GHz RAM: 180GB

Ch-Shi avatar Aug 18 '24 05:08 Ch-Shi

The message is from this function. It refers to CPU cores.

You can set the NUMEXPR_MAX_THREADS environment variable to match your CPU core count as suggested in the message.

christian-byrne avatar Aug 18 '24 08:08 christian-byrne

How to set the NUMEXPR_MAX_THREADS environment variable

Universalcow avatar Apr 22 '25 01:04 Universalcow

How to set the NUMEXPR_MAX_THREADS environment variable

If you are using Windows. https://www.computerhope.com/issues/ch000549.htm

ltdrdata avatar Apr 27 '25 08:04 ltdrdata