Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rocr: Add WaitMultiple to core Signal #250

Closed

Conversation

atgutier
Copy link
Contributor

@atgutier atgutier commented Oct 17, 2024

Replaces WaitAny with WaitMultiple to more closely align with the underlying driver API for waiting on multiple events.

WaitMultiple adds a single parameter, wait_on_all, to the WaitAny interface providing a single function for waiting on multiple events when we only need AND and OR semantics for the signal checking logic.

@atgutier
Copy link
Contributor Author

Any comments on this, @dayatsin-amd?

@dayatsin-amd
Copy link
Collaborator

Any comments on this, @dayatsin-amd?

Looks good. Sorry for late response. Thank you for patch!

@dayatsin-amd dayatsin-amd requested a review from a team as a code owner December 18, 2024 20:33
@atgutier atgutier force-pushed the atgutier/signal-wait-multiple branch 2 times, most recently from 3fe9f13 to 39f4337 Compare January 9, 2025 23:47
@atgutier atgutier requested a review from dayatsin-amd January 9, 2025 23:47
@atgutier
Copy link
Contributor Author

atgutier commented Jan 9, 2025

Can you re-review @dayatsin-amd when you get a chance? Some of the Async signal logic changed which requires additional changes to this PR that I'd like you to look at.

Copy link
Collaborator

@dayatsin-amd dayatsin-amd left a comment

Choose a reason for hiding this comment

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

Some minor changes needed to avoid breaking rocprofiler function parsers.

runtime/hsa-runtime/core/runtime/hsa_api_trace.cpp Outdated Show resolved Hide resolved
runtime/hsa-runtime/inc/hsa_api_trace.h Outdated Show resolved Hide resolved
runtime/hsa-runtime/hsacore.so.def Outdated Show resolved Hide resolved
@atgutier atgutier force-pushed the atgutier/signal-wait-multiple branch from 39f4337 to 71fb283 Compare January 21, 2025 22:17
@dayatsin-amd
Copy link
Collaborator

!verify full

1 similar comment
@dayatsin-amd
Copy link
Collaborator

!verify full

Replaces WaitAny with WaitMultiple to more closely align with the
underlying driver API for waiting on multiple events.

WaitMultiple adds a single parameter, wait_on_all, to the WaitAny
interface providing a single function for waiting on multiple
events when we only need AND and OR semantics for the signal
checking logic.
@atgutier atgutier force-pushed the atgutier/signal-wait-multiple branch from 71fb283 to 0faaa5e Compare January 24, 2025 17:37
@atgutier
Copy link
Contributor Author

All comments regarding versioning should be fixed now.

@dayatsin-amd
Copy link
Collaborator

!verify full

1 similar comment
@dayatsin-amd
Copy link
Collaborator

!verify full

@dayatsin-amd
Copy link
Collaborator

Submitted to amd-staging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: add a hsa_amd_signal_wait_all API.
3 participants