File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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))'
You can’t perform that action at this time.
0 commit comments