-
Notifications
You must be signed in to change notification settings - Fork 124
Fix L0 command-buffer consumption of multi-device kernels #2454
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
Conversation
Bumps UR commit to oneapi-src/unified-runtime#2454 which contains a fix for using kernel bundles associated with a multi-device context in a SYCL-Graph
0b0295c to
f0facdb
Compare
434cf05 to
583af28
Compare
583af28 to
352af52
Compare
|
|
||
| static bool hasCommandBufferSupport(ur_device_handle_t device) { | ||
| size_t returned_size; | ||
| auto res = urDeviceGetInfo(device, UR_DEVICE_INFO_EXTENSIONS, 0, |
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.
can we use UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP here instead?
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.
yes, updated (really need to get #2304 merged 😉 )
kbenzie
left a comment
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.
CTS changes LGTM
| }; | ||
|
|
||
| TEST_F(urMultiDeviceCommandBufferExpTest, Enqueue) { | ||
| for (size_t i = 0; i < devices.size(); i++) { |
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.
@aarongreig FYI these test will need updated in your CTS multi-platform/device branch.
UR program and kernel objects can be tied to multiple devices, a UR command-buffer object however is tied to a single device. When appending a kernel command to a command-buffer, select the correct single-device `ze_kernel_handle_t` object from the multi-device `ur_kernel_handle_t` object
352af52 to
fcddf07
Compare
Bumps UR commit to oneapi-src/unified-runtime#2454 which contains a fix for using kernel bundles associated with a multi-device context in a SYCL-Graph --------- Co-authored-by: Martin Morrison-Grant <[email protected]>
Fix L0 command-buffer consumption of multi-device kernels
UR program and kernel objects can be tied to multiple devices, a UR command-buffer object however is tied to a single device.
When appending a kernel command to a command-buffer, select the correct single-device
ze_kernel_handle_tobject from the multi-deviceur_kernel_handle_tobjectDPC++ PR intel/llvm#16343