Skip to content

Commit 065d0bb

Browse files
committed
Fix
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 0e62552 commit 065d0bb

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/cicd_tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,13 @@ jobs:
121121

122122
timeout-minutes: 40
123123
steps:
124-
- if: runner.os == 'ubuntu-24.04-gpu'
125-
run: nvidia-smi
124+
- if: matrix.os == 'ubuntu-24.04-gpu'
125+
name: Print GPU Info
126+
run: |
127+
nvidia-smi
128+
python -c 'import torch; print(torch.rand(2,2).to("cuda:0"))'
126129
shell: bash
127-
- if: runner.os == 'Linux'
130+
- if: runner.os == 'Linux' and matrix.os != 'ubuntu-24.04-gpu'
128131
name: Clean unused tools
129132
run: |
130133
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \ || true;
@@ -151,12 +154,6 @@ jobs:
151154
python -m pip list
152155
BUILD_MONAI=0 python setup.py develop # no compile of extensions
153156
shell: bash
154-
- if: matrix.os == 'linux-gpu-runner'
155-
name: Print GPU Info
156-
run: |
157-
nvidia-smi
158-
python -c 'import torch; print(torch.rand(2,2).to("cuda:0"))'
159-
shell: bash
160157
- name: Run quick tests
161158
run: |
162159
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'

0 commit comments

Comments
 (0)