Skip to content

Commit 80d972b

Browse files
committed
support sm_100 and llvm v19
1 parent caaef11 commit 80d972b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+19520
-33
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ exclude = [
2222
"crates/optix/examples/common",
2323
]
2424

25-
[profile.dev.package.rustc_codegen_nvvm]
25+
[profile.dev.package.rustc_codegen_nvvm_v7]
26+
opt-level = 3
27+
28+
[profile.dev.package.rustc_codegen_nvvm_v19]
2629
opt-level = 3

container/ubuntu22-cuda12/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04
2+
# TODO: needs to change to 12.9.0 for llvm-v19
23

34
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
45
build-essential \

container/ubuntu24-cuda12/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
2+
# TODO: needs to change to 12.9.0 for llvm-v19
23

34
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
45
build-essential \

crates/cuda_builder/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ description = "Builder for easily building rustc_codegen_nvvm crates"
88
repository = "https://github.com/Rust-GPU/Rust-CUDA"
99
readme = "../../README.md"
1010

11+
[features]
12+
default = ["nvvm-v7"]
13+
nvvm-v7 = ["dep:rustc_codegen_nvvm_v7"]
14+
nvvm-v19 = ["dep:rustc_codegen_nvvm_v19"]
15+
1116
[dependencies]
12-
rustc_codegen_nvvm = { version = "0.3", path = "../rustc_codegen_nvvm" }
17+
rustc_codegen_nvvm_v7 = { version = "0.3", path = "../rustc_codegen_nvvm_v7", optional = true }
18+
rustc_codegen_nvvm_v19 = { version = "0.3", path = "../rustc_codegen_nvvm_v19", optional = true }
1319
nvvm = { path = "../nvvm", version = "0.1" }
1420
serde = { version = "1.0.217", features = ["derive"] }
15-
serde_json = "1.0.138"
21+
serde_json = "1.0.138"

0 commit comments

Comments
 (0)