Skip to content
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

Add global kernel cache and HCF infrastructure #736

Merged
merged 14 commits into from
Jun 8, 2022

Conversation

illuhad
Copy link
Collaborator

@illuhad illuhad commented May 16, 2022

  • Add common global kernel cache infrastructure
  • Add unified HCF file format for kernels, tools, and documentation
  • Reimplement explicit multipass for CUDA and SPIR-V to use new infrastructure
  • Reimplement syclcc explicit multipass drivers to utilize unified HCF generation and integration header generation

TODO: Programs don't yet terminate cleanly on Level Zero due to a lifetime issue of the Level Zero backend shutting down before the cached SPIR-V kernels are unloaded.

SYCL-Bench task throughput benchmarks indicate that CUDA explicit multipass with the new kernel cache infrastructure outperforms integrated multipass by 30-40%.

Co-authored-by: Andrey Alekseenko <al42and@gmail.com>
@illuhad illuhad marked this pull request as ready for review June 7, 2022 23:26
@illuhad
Copy link
Collaborator Author

illuhad commented Jun 7, 2022

It seems there is no easy fix for the Level Zero issue. This relates to the fundamental issue that we need to transition to a runtime that has its lifetime dependent on the existence of SYCL objects. This is a larger change, and should not block this PR.

@illuhad
Copy link
Collaborator Author

illuhad commented Jun 8, 2022

In it goes.

@illuhad illuhad merged commit 8d724fe into develop Jun 8, 2022
@illuhad illuhad deleted the feature/global-kernel-cache branch June 8, 2022 16:33
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.

None yet

2 participants