Upgrade modern backend to LLVM 21.1.8 and CUDA 13.3 - #2
Closed
brandonros wants to merge 4 commits into
Closed
brandonros wants to merge 4 commits into
brandonros wants to merge 4 commits into
Conversation
brandonros
force-pushed
the
experiment/cuda13.3-llvm21
branch
from
September 13, 2026 21:12
c1af0f4 to
9016d73
Compare
Owner
Author
|
Superseded by the upstream draft PR: Rust-GPU#408. The experiment branch is retained; further review and integration will happen there. |
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.
Replace the modern LLVM 19 backend feature with LLVM 21 while retaining LLVM 7 for the legacy path. The modern Nix shell uses LLVM 21.1.8 and CUDA 13.3, and CUDA 13 Docker images use the published CUDA 13.3.1 bases.
Update feature forwarding, LLVM tool discovery, CI, the vector-add example, and documentation together. Modern builds require an installed LLVM 21 toolchain or an explicit
PREBUILT_LLVM_URLuntil LLVM 21 prebuilts are published. Update the Windows CUDA installer action to support CUDA 13.3.1.Add a Linux x86_64/aarch64 experiment workflow that uses the successful LLVM 21.1.8 artifacts from prebuilt run 34781677658 to build the existing vector-add host and PTX with CUDA 13.3.1. This temporarily pins Actions artifacts, which expire; replace them with release assets when published. The workflow requires no GPU and does not execute the kernel.
This experiment is based directly on
mainand contains no portable PTX export changes.Validation: diff checks, workflow YAML parsing, and embedded shell syntax checks pass. Both Linux prebuilt archives were downloaded and their tool layout checked. Rust-CUDA compilation with those artifacts is pending; LLVM wrapper API changes may still be needed. GPU runtime validation and local container-image builds have not been performed.