-
Notifications
You must be signed in to change notification settings - Fork 95
55 lines (49 loc) · 1.53 KB
/
recursion.cuda.yml
File metadata and controls
55 lines (49 loc) · 1.53 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
52
53
54
55
name: CUDA Recursion Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
paths:
- "crates/recursion/**"
- ".github/workflows/recursion.cuda.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
cuda-backend:
name: recursion cuda tracegen tests
runs-on:
- runs-on=${{ github.run_id }}/runner=test-gpu-nvidia/family=g6+g5+g6e
steps:
- uses: runs-on/action@v2
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
env:
RUSTUP_PERMIT_COPY_RENAME: "1"
- uses: ./.github/actions/rust-cache-cuda
- uses: taiki-e/install-action@nextest
- name: Verify GPU setup
run: |
nvidia-smi
nvidia-smi -L
nvcc --version
- name: Setup CUDA environment
run: |
# Find the actual CUDA library location
CUDART_PATH=$(find /usr/local -name "libcudart.so" | head -1)
if [ -n "$CUDART_PATH" ]; then
CUDA_LIB_DIR=$(dirname "$CUDART_PATH")
echo "CUDA libraries found at: $CUDA_LIB_DIR"
echo "CUDA_LIB_DIR=$CUDA_LIB_DIR" >> $GITHUB_ENV
else
echo "CUDA libraries not found!"
exit 1
fi
- name: Run recursion CUDA tests
working-directory: crates/recursion
run: cargo nextest run cuda --features cuda --test-threads=8