Skip to content

[SYCL] Fix link() duplicate image detection #19319

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

Conversation

steffenlarsen
Copy link
Contributor

The current implementation of link() only properly filters duplicates of the device_image_impl objects, but compiling the same device binary image twice may have yielded image impls that do not compare equal. Instead, we can compare the underlying binary images and only add owners once.

The current implementation of link() only properly filters duplicates
of the device_image_impl objects, but compiling the same device binary
image twice may have yielded image impls that do not compare equal.
Instead, we can compare the underlying binary images and only add owners
once.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner July 7, 2025 06:38
@steffenlarsen steffenlarsen requested a review from slawekptak July 7, 2025 06:38
@steffenlarsen
Copy link
Contributor Author

Fixes the failure in kernel_bundle tests after we started linking regular SYCL kernels together.

@steffenlarsen steffenlarsen merged commit a569e8c into intel:sycl Jul 7, 2025
24 checks passed
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.

2 participants