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
[WIP] on-disk caching of CUDA kernels #8079
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following: ```python from numba import cuda @cuda.jit(cache=True) def f(): pass f[1, 1]() ``` runs and saves cache files to the disk. The subsequent run loading from the cache still fails.
Presently fails because the codegen can't be pickled due to ctypes pointer.
This incorporates fixes to the PTX pickling from @c200chromebook: https://gist.github.com/c200chromebook/1ee304161a39b247e8a029ff9d2b3cd7 For the simple test: ```python from numba import cuda @cuda.jit(cache=True) def f(): pass f[1, 1]() ``` The following CUDA Driver API calls are seen on the first invocation: ``` == CUDA [427] DEBUG -- call driver api: cuLinkCreate_v2 == CUDA [428] DEBUG -- call driver api: cuLinkAddData_v2 == CUDA [428] DEBUG -- call driver api: cuLinkComplete == CUDA [428] DEBUG -- call driver api: cuLinkDestroy ``` but are absent from a subsequent run.
…functions though" This reverts commit 65b9615.
I started with the wrong branch here and public CI is busy, so I'll close this now. |
gmarkall
added
abandoned
PR is abandoned (no reason required)
and removed
2 - In Progress
labels
May 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Testing on CI as I work on the tests.