CPU Thread Limit #5487
Answered
by
abadams
WillianJunior
asked this question in
Q&A
CPU Thread Limit
#5487
-
Hi, I need to limit the maximum number of CPU cores used by a Halide pipeline. From what I searched this should be done with Thanks in advance for the help |
Beta Was this translation helpful? Give feedback.
Answered by
abadams
Nov 28, 2020
Replies: 1 comment 5 replies
-
That function should work when using Halide AOT-compiled. If you're using Halide as a JIT compiler, set the environment variable HL_NUM_THREADS to the max number of threads you want to use. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
WillianJunior
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That function should work when using Halide AOT-compiled. If you're using Halide as a JIT compiler, set the environment variable HL_NUM_THREADS to the max number of threads you want to use.