-
Notifications
You must be signed in to change notification settings - Fork 795
[UR][Offload] Queue flag and out-of-order queue support #19531
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
Merged
Merged
+89
−23
Conversation
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
RossBrunton
commented
Jul 21, 2025
@@ -101,6 +101,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, | |||
case UR_DEVICE_INFO_USM_SYSTEM_SHARED_SUPPORT: | |||
return ReturnValue(uint32_t{0}); | |||
case UR_DEVICE_INFO_QUEUE_PROPERTIES: | |||
case UR_DEVICE_INFO_QUEUE_ON_HOST_PROPERTIES: | |||
case UR_DEVICE_INFO_QUEUE_ON_DEVICE_PROPERTIES: |
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.
To be honest, I'm not entirely sure what the difference between "on host" and "on device" properties are.
callumfare
reviewed
Jul 21, 2025
RossBrunton
commented
Jul 21, 2025
Out of order support is similar to CUDA and HIP; there's a pool of queues, and incoming tasks are allocated to the queues round-robin style. In addition, the memcpy helper function now creates and destroys an ol queue, since they are cheap to create and we don't need it to hang around. In addition, flags are now parsed by `urQueueCreate` and can be queried with `urQueueGetInfo`. This determines whether the queue is in-order or out-of-order.
callumfare
reviewed
Jul 24, 2025
callumfare
approved these changes
Jul 24, 2025
callumfare
reviewed
Jul 24, 2025
callumfare
approved these changes
Jul 24, 2025
@intel/llvm-gatekeepers Please merge. |
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.
Out of order support is similar to CUDA and HIP; there's a pool of
queues, and incoming tasks are allocated to the queues round-robin
style. In addition, the memcpy helper function now creates and destroys
an ol queue, since they are cheap to create and we don't need it to
hang around.
In addition, flags are now parsed by
urQueueCreate
and can be queriedwith
urQueueGetInfo
. This determines whether the queue is in-orderor out-of-order.