Skip to content

Commit ecddedd

Browse files
committed
tmp
1 parent 36edd65 commit ecddedd

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/nvidia-smoke.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
name: gpu-smoke
22
on:
3-
workflow_dispatch: {}
43
push:
5-
branches: [ main ]
6-
4+
branches: [ nvidia-gpu-runners ]
5+
workflow_dispatch: {}
76
jobs:
87
smoke:
98
runs-on: [self-hosted, gpu]
10-
timeout-minutes: 30
119
steps:
1210
- uses: actions/checkout@v4
13-
- name: Show GPU
14-
run: |
15-
nvidia-smi || true
16-
- name: Torch sanity
17-
run: |
11+
- run: nvidia-smi || true
12+
- run: |
1813
python - <<'PY'
1914
import torch
20-
print("CUDA available:", torch.cuda.is_available())
21-
print("device_count:", torch.cuda.device_count())
15+
print("cuda?", torch.cuda.is_available(), "count:", torch.cuda.device_count())
2216
if torch.cuda.is_available():
23-
print("device_0:", torch.cuda.get_device_name(0))
17+
print("name:", torch.cuda.get_device_name(0))
2418
PY

0 commit comments

Comments
 (0)