File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
1111 cloud-provider :
1212 description : Cloud provider for the instance
1313 required : true
14+ cpu-only :
15+ description : Requires a GPU
16+ default : " false"
17+ required : false
1418
1519runs :
1620 using : " composite"
@@ -129,6 +133,7 @@ runs:
129133
130134 # On some machines the driver may not be in sync with the running image, reinstalling fixes it
131135 - name : Check device is detected and re-install driver if needed
136+ if : ${{ inputs.cpu-only == 'false' }}
132137 shell : bash
133138 run : |
134- nvidia-smi || (sudo apt install --reinstall -y nvidia-driver-580 && nvidia-smi)
139+ nvidia-smi || (sudo apt install --reinstall -y nvidia-driver-580 && nvidia-smi)
Original file line number Diff line number Diff line change 8686 cuda-version : ${{ matrix.cuda }}
8787 gcc-version : ${{ matrix.gcc }}
8888 cloud-provider : ${{ needs.setup-instance.outputs.cloud-provider }}
89+ cpu-only : " true"
8990
9091 - name : Install python3-venv
9192 run : sudo apt-get install -y python3-venv
You can’t perform that action at this time.
0 commit comments