Upgrade modern backend to LLVM 21.1.8 and CUDA 13.3 - #3
Draft
brandonros wants to merge 1 commit into
Draft
brandonros wants to merge 1 commit into
brandonros wants to merge 1 commit into
Conversation
brandonros
added this pull request to stack #5
September 14, 2026 02:36
brandonros
removed this pull request from stack #5
September 14, 2026 02:39
brandonros
added this pull request to stack #6
September 14, 2026 02:40
This was referenced Sep 14, 2026
brandonros
removed this pull request from stack #6
September 15, 2026 00:50
brandonros
added this pull request to stack #12
September 15, 2026 00:51
brandonros
removed this pull request from stack #12
September 15, 2026 01:13
brandonros
added this pull request to stack #13
September 15, 2026 01:13
brandonros
force-pushed
the
experiment/cuda13.3-llvm21
branch
from
September 21, 2026 13:44
4decb7c to
af6880e
Compare
Replace the LLVM 19 backend feature with LLVM 21 while retaining LLVM 7 for the legacy path. Update feature forwarding, LLVM tool discovery, the vector-add example, the Nix shell, container definitions, and docs. - rustc_llvm_wrapper: guard the Instrumentation.h include to LLVM < 19 and update wrapper APIs for LLVM 21; add tests/llvm-wrapper capture checks. - nvvm: restore kernel annotations after the LLVM 21 bitcode upgrade. - cust: handle CUDA 13.3's CU_GRAPH_NODE_TYPE_RESERVED_16 graph node type. - CI: add LLVM 21 vector-add jobs on x86_64 and aarch64 using CUDA 13.3.1 and LLVM 21.1.8 prebuilts, with a configurable PREBUILT_LLVM_URL; install libzstd-dev so the static LLVM link resolves -lzstd. - Update the Windows CUDA installer action for CUDA 13.3.1. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
brandonros
force-pushed
the
experiment/cuda13.3-llvm21
branch
from
September 21, 2026 13:45
af6880e to
0e5545c
Compare
This branch has not been deployed
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.
Upstream review: Rust-GPU#408
Upgrade the modern backend to LLVM 21.1.8 and CUDA 13.3, including feature selection, Nix tooling, LLVM downloads, and Linux/Windows CI configuration. Linux validation uses upstream LLVM release prebuilts and compiles the vector-add example.
This is the bottom of stack Rust-GPU#6:
main→experiment/cuda13.3-llvm21→poc/portable-ptx-export. The dependent portable PTX export work is in #4; this PR retains the existing six LLVM upgrade commits unchanged.Validation: branch ancestry verified against the current fork
main. The combined export backend requires fresh Linux CI validation; previous LLVM 19 workload results do not validate LLVM 21.LLVM archive override: the builder accepts
PREBUILT_LLVM_URLwith or without a trailing slash;USE_PREBUILT_LLVM=1forces its download path. Linux CI reads the repository variable of the same name and defaults to the fork's LLVM 21.1.8 release. All three release asset SHA-256 hashes match artifacts downloaded from run 34781677658 at commit 2cf27700bffbab35dff21a58d1e19ca12525ca6f. Archive layout was checked for each host platform. The guide documents the override.Active native stack: #3 → #7 → #8 → #9 → #10. Historical-report PR #11 is closed. Updated CI is pending.