Skip to content

Commit 4dbb488

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 4dbb488

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)