Repository navigation
Adding flag placeholders to semaphores/events. - #18122
Merged
Merged
Conversation
Events also gain a queue affinity that can be used to indicate which queues a particular event may be set/waited on. The flags are currently unused but will allow us to specify behavior modes in the future (such as making exportable semaphores opt-in). Since semaphores and events aren't yet exposed in the compiler there were no changes needed there. The compiler will not (in common usage) ever return new semaphores so will not need exportable flags and other things we'll potentially add - applications will be setting those via the C API.
benvanik
marked this pull request as ready for review
August 6, 2024 18:04
benvanik
requested review from
antiagainst,
nithinsubbiah and
stellaraccident
as code owners
August 6, 2024 18:04
benvanik
enabled auto-merge (squash)
August 6, 2024 18:04
ScottTodd
approved these changes
Aug 6, 2024
Comment on lines
-161
to
+162
| iree_status_t status = iree_hal_semaphore_create(device, 0ull, &semaphore); | ||
| iree_status_t status = iree_hal_semaphore_create( | ||
| device, 0ull, IREE_HAL_SEMAPHORE_FLAG_NONE, &semaphore); |
Member
There was a problem hiding this comment.
We may want to start calling out API changes like this in release notes / relnotes somehow.
iree_hal_semaphore_creategained airee_hal_semaphore_flags_tbitfield parameter. Existing call sites should be updated fromiree_hal_semaphore_create(device, initial_value, &out_semaphore)toiree_hal_semaphore_create(device, initial_value, IREE_HAL_SEMAPHORE_FLAG_NONE, &out_semaphore). Future changes will add flags for X, Y, and Z.
yzhang93
added a commit
to nod-ai/iree-amd-aie
that referenced
this pull request
Aug 9, 2024
Following runtime changes in IREE - Attaching pipeline layout to hal.interface.binding.subspan. iree-org/iree#18098 - Adding flag placeholders to semaphores/events. iree-org/iree#18122
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.
Events also gain a queue affinity that can be used to indicate which queues a particular event may be set/waited on. The flags are currently unused but will allow us to specify behavior modes in the future (such as making exportable semaphores opt-in).
Since semaphores and events aren't yet exposed in the compiler there were no changes needed there. The compiler will not (in common usage) ever return new semaphores so will not need exportable flags and other things we'll potentially add - applications will be setting those via the C API.
Progress on #18121 (event queue affinity needed for VK_KHR_device_group).