Skip to content

[SYCL] Refactor program build and cache #8193

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

steffenlarsen
Copy link
Contributor

In order to help device_global find associated programs in the cache, the way the program manager and the cache interacts needs a refactoring. This commit makes this refactoring.

Additionally this adds the notion of a "common key" (CommonProgramKeyT) representing the common parts of the full cache key shared between builds of the same program on the same device, excluding specializations such as specialization constants and compilation options.

In order to help device_global find associated programs in the cache,
the way the program manager and the cache interacts needs a refactoring.
This commit makes this refactoring.

Additionally this adds the notion of a "common key" (CommonProgramKeyT)
representing the common parts of the full cache key shared between
builds of the same program on the same device, excluding specializations
such as specialization constants and compilation options.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

#8104 was reverted (see #8192) due to post-commit failures. This was caused by the previous commit adding more tests using the removed ProgramCacheT alias. 7f204ed should address this.

@steffenlarsen
Copy link
Contributor Author

Tagging @bader for awareness.

@steffenlarsen steffenlarsen temporarily deployed to aws February 3, 2023 09:56 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws February 3, 2023 10:30 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor Author

HIP Failed Tests (1):
SYCL :: KernelAndProgram/spec_constants_after_link.cpp
Fixed with intel/llvm-test-suite#1572.

@steffenlarsen steffenlarsen merged commit 3e5820a into intel:sycl Feb 6, 2023
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