Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cargo fmt (kernel-abi-check)
run: |
( cd kernel-abi-check/kernel-abi-check && cargo fmt --all -- --check )
Expand Down
2 changes: 2 additions & 0 deletions build2cmake/src/config/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ pub enum Dependencies {
Cutlass3_8,
#[serde(rename = "cutlass_3_9")]
Cutlass3_9,
#[serde(rename = "cutlass_4_0")]
Cutlass4_0,
#[serde(rename = "cutlass_sycl")]
CutlassSycl,
Torch,
Expand Down
11 changes: 11 additions & 0 deletions build2cmake/src/torch/cuda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ fn render_deps(env: &Environment, build: &Build, write: &mut impl Write) -> Resu
)
.wrap_err("Cannot render CUTLASS dependency template")?;
}
Dependencies::Cutlass4_0 => {
env.get_template("cuda/dep-cutlass.cmake")
.wrap_err("Cannot get CUTLASS dependency template")?
.render_to_write(
context! {
version => "4.0.0",
},
&mut *write,
)
.wrap_err("Cannot render CUTLASS dependency template")?;
}
Dependencies::Torch => (),
_ => {
eprintln!("Warning: CUDA backend doesn't need/support dependency: {dep:?}");
Expand Down
3 changes: 3 additions & 0 deletions lib/deps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ let
"cutlass_3_9" = [
pkgs.cutlass_3_9
];
"cutlass_4_0" = [
pkgs.cutlass_4_0
];
"torch" = [
torch
torch.cxxdev
Expand Down
Loading