Skip to content

[SYCL] Use image pointer as a unique identifier for cache #7113

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

Currently different paths for building programs use different cache keys. Specifically, one path uses the kernel-set-id while another uses the pointer to the binary image. This may cause device binaries built by both paths may cause the programs to be rebuilt. Additionally, since the kernel-set-id may cover multiple device binaries, it may make colliding cache kernels.

To fix the problems this commit will change the key use an image identifier rather than the kernel-set-id. We use the device binary pointer as the unique identifier.

Currently different paths for building programs use different cache
keys. Specifically, one path uses the kernel-set-id while another uses
the pointer to the binary image. This may cause device binaries built by
both paths may cause the programs to be rebuilt. Additionally, since the
kernel-set-id may cover multiple device binaries, it may make colliding
cache kernels.

To fix the problems this commit will change the key use an image
identifier rather than the kernel-set-id. We use the device binary
pointer as the unique identifier.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner October 19, 2022 12:29
@steffenlarsen steffenlarsen merged commit a0254c9 into intel:sycl Oct 21, 2022
steffenlarsen added a commit that referenced this pull request Oct 21, 2022
steffenlarsen added a commit to steffenlarsen/llvm that referenced this pull request Oct 31, 2022
MultipleDevsCache has been failing testing in post-commit on Windows
sporadically since intel#7113. This commit
disables the test on Windows while the cause of the sporadic behavior
is investigated and fixed.

Signed-off-by: Larsen, Steffen <[email protected]>
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