Skip to content

Commit 681aa7c

Browse files
authored
Print nvidia-smi/rocminfo (#827)
1 parent 4ba2fe5 commit 681aa7c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ jobs:
4747
shell: bash -l {0}
4848

4949
steps:
50+
- name: Run NVIDIA command
51+
if: startsWith(matrix.image, 'nvidia')
52+
run: |
53+
echo "Detected NVIDIA image"
54+
nvidia-smi || echo "nvidia-smi not found"
55+
56+
- name: Run ROCm command
57+
if: startsWith(matrix.image, 'rocm')
58+
run: |
59+
echo "Detected ROCm image"
60+
rocminfo || echo "rocminfo not found"
61+
5062
- name: Check out code
5163
uses: actions/checkout@v4
5264

0 commit comments

Comments
 (0)