Skip to content

[SYCL] Select a more consistent image ID for caching #7154

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 2 commits into from
Oct 25, 2022

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Oct 24, 2022

The program cache was recently changed to use the device image pointer as part of its cache key. However, the RTDeviceBinaryImage class has move constructor and assignment operator defined to allow them to transition between collections, so the pointers can change, making them an unreliable cache key. This commit changes the selected identifier to be the pointer to the underlying binary image instead.

The program cache was recently changed to use the device image pointer
as part of its cache key. However, pointers are unreliable as assigning
device images may mean that device images may change identifiers. This
commit changes the selected identifier to be a counter instead of using
the pointer value.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner October 24, 2022 08:56
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

As per offline discussion with @romanovvlad I have changed the identifier to be the pointer to the pi_device_binary.

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