Skip to content

Commit 929562e

Browse files
brandonrosclaude
andcommitted
feat(vecadd): add llvm19 feature passthrough to cuda_builder
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1b8c15c commit 929562e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

container/ubuntu24-cuda13-llvm19/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nvcr.io/nvidia/cuda:13.0.2-cudnn-devel-ubuntu24.04 AS llvm-builder
1+
FROM nvcr.io/nvidia/cuda:13.2.1-cudnn-devel-ubuntu24.04 AS llvm-builder
22

33
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
44
build-essential \
@@ -51,7 +51,7 @@ RUN curl -sSf -L -O https://github.com/llvm/llvm-project/releases/download/llvmo
5151
cd ../.. && \
5252
rm -rf llvm-project-19.1.7.src*
5353

54-
FROM nvcr.io/nvidia/cuda:13.0.2-cudnn-devel-ubuntu24.04
54+
FROM nvcr.io/nvidia/cuda:13.2.1-cudnn-devel-ubuntu24.04
5555

5656
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
5757
build-essential \

examples/vecadd/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name = "vecadd"
33
version = "0.1.0"
44
edition = "2024"
55

6+
[features]
7+
default = []
8+
# Build the kernels crate with the LLVM 19 backend. Forwards to `cuda_builder`,
9+
# which propagates the feature to `nvvm` (default arch -> Compute100 / Blackwell)
10+
# and to its nested `cargo build -p rustc_codegen_nvvm`.
11+
llvm19 = ["cuda_builder/llvm19"]
12+
613
[dependencies]
714
cust = { path = "../../crates/cust" }
815
cust_raw = { path = "../../crates/cust_raw", default-features = false, features = ["driver"] }

0 commit comments

Comments
 (0)