Skip to content

llvm 19 support #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ exclude = [
"crates/optix/examples/common",
]

[profile.dev.package.rustc_codegen_nvvm]
[profile.dev.package.rustc_codegen_nvvm_v7]
opt-level = 3

[profile.dev.package.rustc_codegen_nvvm_v19]
opt-level = 3
1 change: 1 addition & 0 deletions container/ubuntu22-cuda12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04
# TODO: needs to change to 12.9.0 for llvm-v19

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
build-essential \
Expand Down
1 change: 1 addition & 0 deletions container/ubuntu24-cuda12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
# TODO: needs to change to 12.9.0 for llvm-v19

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
build-essential \
Expand Down
10 changes: 8 additions & 2 deletions crates/cuda_builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ description = "Builder for easily building rustc_codegen_nvvm crates"
repository = "https://github.com/Rust-GPU/Rust-CUDA"
readme = "../../README.md"

[features]
default = ["nvvm-v7"]
nvvm-v7 = ["dep:rustc_codegen_nvvm_v7"]
nvvm-v19 = ["dep:rustc_codegen_nvvm_v19"]

[dependencies]
rustc_codegen_nvvm = { version = "0.3", path = "../rustc_codegen_nvvm" }
rustc_codegen_nvvm_v7 = { version = "0.3", path = "../rustc_codegen_nvvm_v7", optional = true }
rustc_codegen_nvvm_v19 = { version = "0.3", path = "../rustc_codegen_nvvm_v19", optional = true }
nvvm = { path = "../nvvm", version = "0.1" }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138"
serde_json = "1.0.138"
Loading