Skip to content

Halide Thread Pool cleanup #6422

Answered by abadams
rteja asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: Just call it on the main thread.

It sounds like your Halide pipelines don't use Func::parallel, so it shouldn't be necessary to stop it as it's only started on first use. If you do use the Func::parallel scheduling directive, you might want to use halide_set_custom_do_par_for to just always use your threadpool.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rteja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants