Repository navigation
fix(nvjitlink): resolve versioned toolkit symbols - #1103
Merged
nihalpasham merged 1 commit intoAug 23, 2026
Merged
Conversation
Signed-off-by: Sam, Joochul Chang <[email protected]>
nihalpasham
force-pushed
the
fix-nvjitlink-versioned-symbols
branch
from
August 23, 2026 04:41
7dd1f5e to
b44660b
Compare
Collaborator
|
nihalpasham
approved these changes
Aug 23, 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.
nvjitlink-sysassumed every nvJitLink library exported unsuffixed public entry points. Debian's CUDA 12 package does not:The toolkit header maps each public inline API to those versioned symbols. The crate-level documentation instead said the library also exported unsuffixed names with default ELF symbol versioning, and
LibNvJitLink::load_innerimplemented that claim with unsuffixed-onlydlsymcalls. Loading therefore stopped atnvJitLinkCreateon this installation.Required and optional entry points now resolve the unsuffixed name first, then the CUDA 13.0 and 12.0 mangled names. This preserves existing toolkits and fixes Debian CUDA 12; tests pin the order and resolve a synthetic library that exports only
__nvJitLinkCreate_12_0. The crate documentation now describes both export shapes.Verification
cargo test -p nvjitlink-sys --all-targets— 12 passed, 3 live-toolkit tests ignored.CUDA_TOOLKIT_PATH=/usr cargo test -p nvjitlink-sys -- --ignored— all 3 live-toolkit tests passed against Debian CUDA 12.cargo clippy --workspace --all-targets -- -D warningsRUSTDOCFLAGS='-D warnings' cargo doc --no-deps --workspaceRUSTDOCFLAGS='-D warnings' cargo test --doc --workspace --exclude cuda-bindingscargo fmt --all -- --checkcargo oxide build vecadd --materialize-cubin --arch sm_86completed with the Debian CUDA 12 libNVVM and nvJitLink libraries selected by exact paths.