-
Notifications
You must be signed in to change notification settings - Fork 666
51 lines (39 loc) · 1.33 KB
/
Copy pathci_cuda.yaml
File metadata and controls
51 lines (39 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI / cuda
on:
workflow_dispatch:
pull_request:
jobs:
test-cuda:
name: CI / cuda (${{ matrix.name }})
# For security, only run automatically for:
# - PRs from the same repo (not forks)
# - manual workflow dispatch
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
concurrency:
group: ${{ github.workflow }}-${{ matrix.name }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
runs-on: [self-hosted, Linux, ARM64, gpu, cuda]
strategy:
matrix:
include:
- name: cuda
features: cuda,nccl
# - name: cuda+nccl
# features: cuda,nccl
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl build-essential libssl-dev protobuf-compiler pkg-config
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: CUDA sanity
run: |
nvidia-smi || true
nvcc --version || true
- name: Clippy
run: cargo clippy --features ${{ matrix.features }}
- name: Test
run: cargo test --features ${{ matrix.features }}