Skip to content

Add halide_host_cpu_count() to public API#8691

Closed
shoaibkamil wants to merge 1 commit intomainfrom
shoaibkamil/add_halide_host_cpu_count_decl
Closed

Add halide_host_cpu_count() to public API#8691
shoaibkamil wants to merge 1 commit intomainfrom
shoaibkamil/add_halide_host_cpu_count_decl

Conversation

@shoaibkamil
Copy link
Copy Markdown
Contributor

We have some uses where we want to share the Halide threadpool with non-Halide code; in those cases, it is useful to have this function available to know what Halide's default parallelism would be. In general, since all of our default parallel runtimes use this function, it seems no issue to expose it via the runtime.

I made sure the description was specific about "logical" cores, but let me know if there's better language to use here.

@alexreinking alexreinking added the dev_meeting Topic to be discussed at the next dev meeting label Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev_meeting Topic to be discussed at the next dev meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants