Repository navigation
feat(rocr): report signal hints in AQL_EXTENSIONS #15083
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2368,6 +2368,10 @@ void GpuAgent::GetAqlInfoProperties(uint8_t value[8]) const { | |
| // Fill the HSA_AMD_AQL_PROPERTY_EXT_DISPATCH | ||
| if (extended_aql_dispatch_supported_) | ||
| setFlag(HSA_AMD_AQL_PROPERTY_EXT_DISPATCH); | ||
|
|
||
| // Fill the HSA_AMD_AQL_PROPERTY_SIGNAL_HINTS | ||
| if (SignalHintsSupported()) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖 AI-assisted pre-review (for @cfreeamd) [Question] Could the capability be cached at queue-create / agent init (or the wait given a bounded timeout with a fall-back to |
||
| setFlag(HSA_AMD_AQL_PROPERTY_SIGNAL_HINTS); | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -2805,9 +2809,6 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const { | |
| case HSA_AMD_AGENT_INFO_HOST_ATOMICS_SUPPORTED: | ||
| *static_cast<bool*>(value) = HostAtomicsSupported(); | ||
| break; | ||
| case HSA_AMD_AGENT_INFO_SIGNAL_HINTS_SUPPORTED: | ||
| *static_cast<bool*>(value) = SignalHintsSupported(); | ||
| break; | ||
| default: | ||
| return HSA_STATUS_ERROR_INVALID_ARGUMENT; | ||
| break; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shwetakReviewAgent] automated review on behalf of @shwetagkhatri.
GetAqlInfoPropertiesnow reachesSignalHintsSupported, so the firstAQL_EXTENSIONSquery submits a barrier-AND and waits withHSA_WAIT_STATE_ACTIVEand an infinite timeout, where the base commit did no GPU work.