Skip to content

Conversation

RossBrunton
Copy link
Contributor

Sub-devices don't appear in the list of devices, and so the prior OpenCL
implementation would assume that they are invalid. With this patch,
creating a sub-device will add it to a "cache" stored in the platform.
Multiple DeviceCreateWithNativeHandle calls with the same native
handle will result in the same UR handle. A test has been added to
verify this.

This unfortunately required shuffling headers around to avoid circular
imports.

This fixes an issue tracked internally by Intel as URT-903

Sub-devices don't appear in the list of devices, and so the prior OpenCL
implementation would assume that they are invalid. With this patch,
creating a sub-device will add it to a "cache" stored in the platform.
Multiple `DeviceCreateWithNativeHandle` calls with the same native
handle will result in the same UR handle. A test has been added to
verify this.

This unfortunately required shuffling headers around to avoid circular
imports.

This fixes an issue tracked internally by Intel as URT-903
@RossBrunton RossBrunton marked this pull request as ready for review April 10, 2025 10:25
@RossBrunton RossBrunton requested review from a team as code owners April 10, 2025 10:25
@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge.

@dm-vodopyanov dm-vodopyanov merged commit 4751c96 into intel:sycl Apr 10, 2025
36 of 37 checks passed
kbenzie pushed a commit that referenced this pull request Apr 14, 2025
kbenzie pushed a commit to oneapi-src/unified-runtime that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants