Skip to content

[SYCL] Use device code cache when building kernel bundles #4724

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 persistent device code cache, when enabled, is not used when building the underlying native program in a kernel bundle. These changes unify cache lookup with a fallback to program creation from ProgramManager::getBuiltPIProgram with the program creation in ProgramManager::build, ensuring that the latter also uses cached device code. Likewise, ProgramManager::build will write the device code to the persistent cache if it was not there already.

The persistent device code cache, when enabled, is not used when
building the underlying native program in a kernel bundle. These changes
unify cache lookup with a fallback to program creation from
ProgramManager::getBuiltPIProgram with the program creation in
ProgramManager::build, ensuring that the latter also uses cached device
code. Likewise, ProgramManager::build will write the device code to the
persistent cache if it was not there already.

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

This eliminates the XFAIL: * cases added in intel/llvm-test-suite#474.

@vladimirlaz
Copy link
Contributor

@alexbatashev could you wait until the will be nightly with the change is available and submit intel/llvm-test-suite#474 without XFAILs which are expected to be fixed.

@romanovvlad
Copy link
Contributor

@alexbatashev could you wait until the will be nightly with the change is available and submit intel/llvm-test-suite#474 without XFAILs which are expected to be fixed.

Discussed offline. We will not wait and instead update XFAILs in a follow up PR.

@bader
Copy link
Contributor

bader commented Oct 8, 2021

@romanovvlad, @vladimirlaz, there is nothing blocking this PR. Right?

@vladimirlaz
Copy link
Contributor

@romanovvlad, @vladimirlaz, there is nothing blocking this PR. Right?

some E2E tests will XPASS as intel/llvm-test-suite#474 has been submitted

@vladimirlaz vladimirlaz merged commit 810d67a into intel:sycl Oct 12, 2021
@steffenlarsen steffenlarsen deleted the steffen/cache_kernel_bundle_builds branch December 6, 2023 11:38
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.

4 participants