-
Notifications
You must be signed in to change notification settings - Fork 124
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
Refactor command update API to take a list of configurations #2666
base: main
Are you sure you want to change the base?
Conversation
de05080
to
c14f5ef
Compare
4993b39
to
7c4a9af
Compare
pUpdateKernelLaunchLocal.hCommand = | ||
reinterpret_cast<ur_exp_command_buffer_command_object_t *>( | ||
pUpdateKernelLaunchLocal.hCommand) | ||
->handle; |
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.
This needs to loop over every pUpdateKernelLaunchLocal
element in the list and do this translation but can't because of https://oneapi-src.github.io/unified-runtime/core/CONTRIB.html#limitations
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.
Created #2671 to track this
75f908b
to
e9c7851
Compare
Update the `urCommandBufferUpdateKernelLaunchExp` API for updating commands in a command-buffer to take a list of commands. The current API operates on a single command, this means that the SYCL-Graph `update(std::vector<nodes>)` API needs to serialize the list into N calls to the UR API. Given that both OpenCL `clUpdateMutableCommandsKHR` and Level-Zero `zeCommandListUpdateMutableCommandsExp` can operate on a list of commands, this serialization at the UR layer of the stack introduces extra host API calls. This PR improves the `urCommandBufferUpdateKernelLaunchExp` API so that a list of commands is passed all the way from SYCL to the native backend API.
e9c7851
to
7d3e81f
Compare
Update the
urCommandBufferUpdateKernelLaunchExp
API for updating commands in a command-buffer to take a list of commands.The current API operates on a single command, this means that the SYCL-Graph
update(std::vector<nodes>)
API needs to serialize the list into N calls to the UR API. Given that both OpenCLclUpdateMutableCommandsKHR
and Level-ZerozeCommandListUpdateMutableCommandsExp
can operate on a list of commands, this serialization at the UR layer of the stack introduces extra host API calls.This PR improves the
urCommandBufferUpdateKernelLaunchExp
API so that a list of commands is passed all the way from SYCL to the native backend API.Blocked by issue #2671