Using semaphore to sync with all peer processes in finalization stage#114
Closed
rocm-devops wants to merge 8 commits into
Closed
Using semaphore to sync with all peer processes in finalization stage#114rocm-devops wants to merge 8 commits into
rocm-devops wants to merge 8 commits into
Conversation
[rocprofv3] Implement synchronization using POSIX semaphore in finalization
Apply suggestion by Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Author
Author
Author
Thanks for the comments. The |
Author
12 tasks
Contributor
|
Imported to ROCm/rocm-systems. |
ammallya
pushed a commit
that referenced
this pull request
Oct 28, 2025
…y Mi300 UndefinedBehaviorSanitizer job (#114) * Initial fix for runtime error in id_decode.hpp:set_dim_in_rec() * actual fix: corrected the handling of case where dim==1 (ROCPROFILER_DIMENSION_NONE) * removing magic numbers * minor fix * fix for invalid bool value at runtime * clang format * build fix --------- Co-authored-by: Welton, Benjamin <Benjamin.Welton@amd.com> Co-authored-by: Benjamin Welton <bewelton@amd.com> [ROCm/rocprofiler-sdk commit: cffda33]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



[rocprofv3] Implement synchronization using POSIX semaphore in finalization
PR Details
Associated Jira Ticket Number/Link
What type of PR is this? (check all applicable)
Technical details
This PR is to fix https://ontrack-internal.amd.com/browse/SWDEV-539022. In some workload, during the exiting stage, the framework uses a fast-fail pattern: if one process finishes, it kills all peer processes. E.g. in vLLM:
vllm/executor/multiproc_worker_utils.py:127:
This fix is using a POSIX semaphore to sync with peer processes, wait all peers finish and keep executing.
Added/updated tests?
Updated CHANGELOG?
Added/Updated documentation?