Repository navigation
[12.9.x] Fix host-function callbacks in replayed graphs - #3107
Merged
Merged
Conversation
Backport NVIDIA#3061 to the CUDA 12.9 maintenance branch. Regenerate the host-function wrappers for CUDA 12.9 and port callback assertions, graph replay coverage, and lifetime guidance. Signed-off-by: Andy Jost <ajost@nvidia.com>
juenglin
approved these changes
Oct 15, 2026
This file contains hidden or 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
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.
Description
Manual backport of #3061 to
12.9.x, addressing #790. CUDA graphs containing a host function could crash on their second launch because the bindings routed callbacks through trampoline state that was freed after the first invocation.driver.cuLaunchHostFuncandruntime.cudaLaunchHostFuncnow pass the callback and user data to CUDA unchanged.The CUDA 12.9 source build and simulated callback/replay checks passed. The GPU regression cases could not be rerun because the GPU test host was unavailable.
Checklist