Repository navigation
fix(cuda-host): use same-major cubin compatibility - #379
Merged
nihalpasham merged 1 commit intoJul 22, 2026
Merged
Conversation
Signed-off-by: nik <[email protected]>
Collaborator
|
Thanks for the PR. LGTM.
For example: Reviewer note: The predicate was verified against the CUDA Programming Guide's documented rule, and all 61 cuda-host lib tests passed at the head commit. All hosted CI checks passed. One known boundary: numeric major grouping treats sm_101 (Thor) as same-major with sm_10x, where the PTX ISA family tables disagree; exposure is negligible because target validation already restricts sm_101 pairings, and the worst case is a driver load error, not a miscompile. This closes #378. |
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.
Closes #378.
Summary
Allow cuda-host to use cubins on newer GPUs within the same compute-capability major version, following NVIDIA's binary compatibility contract. Preserve existing rejection for backward, architecture-suffixed, and unsupported cross-major forwarding.
What changed
Binary-compatible route selection
ExecutionRoute::Cubinwhen execution has the same major capability and a greater minor capability.sm_XXandcompute_XXinput spellings through the shared parser.Correctness boundaries
sm_89 -> sm_86.sm_80 -> sm_86) and three-digit (sm_120 -> sm_121) capability encoding.Known separate limitations
Testing
cargo oxide fmt --checkcargo test -p cuda-host: 61 passed, 1 ignored unit test; 9cuda_module_api; 13kernel_family; 6 doctests passed and 8 ignoredcargo clippy -p cuda-host --all-targets -- -D warningscargo oxide run vecadd --emit-nvvm-ir --arch sm_80on RTX 3080 (sm_86): 1,024/1,024 elements correctCUDA_OXIDE_NO_OPT=1 cargo oxide run vecadd --emit-nvvm-ir --arch sm_80: 1,024/1,024 elements correctsm_80; executable.oxartsection containedOXIDEART,vecadd,sm_80, andvecadd.llReference: https://docs.nvidia.com/cuda/archive/13.2.1/cuda-programming-guide/01-introduction/cuda-platform.html#binary-compatibility
Checklist
upstream/maingit commit -s)