Skip to content

Commit

Permalink
ci: install cuda for selected packages
Browse files Browse the repository at this point in the history
  • Loading branch information
romnn committed Jul 4, 2023
1 parent 2c7bce7 commit a788523
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
# - name: Install CUDA
# uses: Jimver/cuda-toolkit@v0.2.10
# id: cuda-toolkit
# with:
# cuda: "11.8.0"
# linux-local-args: '["--driver", "--toolkit"]'
- name: Install CUDA
uses: Jimver/cuda-toolkit@v0.2.10
id: cuda-toolkit
if: ${{ matrix.package.need_cuda }}
with:
cuda: "11.8.0"
linux-local-args: '["--driver", "--toolkit"]'
- name: Build all
run: >-
cargo build --package "${{ matrix.package.name }}" --features "${{ matrix.package.features }}" --all-targets
5 changes: 4 additions & 1 deletion accelsim/sim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ default = []
[package.metadata.cargo-feature-combinations]
denylist = ["default"]

[package.metadata.cargo-feature-combinations.matrix]
need_cuda = true

[dependencies]
color-eyre = "0"
async-process = "1"
Expand All @@ -19,5 +22,5 @@ accelsim = { path = "../" }

[build-dependencies]
color-eyre = "0"
duct = "0"
# duct = "0"
accelsim = { path = "../" }
3 changes: 3 additions & 0 deletions accelsim/trace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ default = []
[package.metadata.cargo-feature-combinations]
denylist = ["default"]

[package.metadata.cargo-feature-combinations.matrix]
need_cuda = true

[dependencies]
color-eyre = "0"
dialoguer = "0"
Expand Down
3 changes: 3 additions & 0 deletions playground/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ path = "src/main.rs"
default = ["parallel"]
parallel = ["cc/parallel"]

[package.metadata.cargo-feature-combinations]
denylist = ["default"]

[dependencies]
cxx = "1"
accelsim = { path = "../accelsim" }
Expand Down

0 comments on commit a788523

Please sign in to comment.