Adding worker_thread_idle() for more informative profiling by slomp · Pull Request #8719 · halide/Halide · GitHub
Skip to content

Adding worker_thread_idle() for more informative profiling#8719

Merged
slomp merged 3 commits into
mainfrom
slomp/thread-idle
Aug 20, 2025
Merged

Adding worker_thread_idle() for more informative profiling#8719
slomp merged 3 commits into
mainfrom
slomp/thread-idle

Conversation

@slomp

@slomp slomp commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Just a small cosmetic change to assist during profiling (make it clear when the worker threads are idling).

@slomp slomp requested a review from abadams August 13, 2025 03:11
@slomp

slomp commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

@mcourteaux mcourteaux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The calling overhead seems fine, as it's in idle circumstances.

@alexreinking alexreinking added the code_cleanup No functional changes. Reformatting, reorganizing, or refactoring existing code. label Aug 13, 2025
Comment thread src/runtime/thread_pool_common.h Outdated
@slomp

slomp commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

Are we good on merging this?
Should the spin-loop be "symbolicated" as well?

@slomp

slomp commented Aug 20, 2025

Copy link
Copy Markdown
Contributor Author

@alexreinking alexreinking left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I say merge.

@slomp slomp merged commit 1230f00 into main Aug 20, 2025
5 of 19 checks passed
@alexreinking alexreinking deleted the slomp/thread-idle branch August 20, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code_cleanup No functional changes. Reformatting, reorganizing, or refactoring existing code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants