Skip to content

Commit 28fc388

Browse files
fix(gpu): pcc nvidia-smi on aws cpu
1 parent e603be0 commit 28fc388

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/actions/gpu_setup/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1519
runs:
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)

.github/workflows/gpu_pcc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
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

0 commit comments

Comments
 (0)