Skip to content

Commit 47c4cdc

Browse files
committed
Add missing apt-get update step. Add actionlint.yaml to allow custom runner label to pass linting
1 parent 4e8ca5b commit 47c4cdc

3 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/actionlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self-hosted-runner:
2+
labels:
3+
- gpu

.github/workflows/core.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ jobs:
495495
PYTEST_MPI_MAX_NPROCS: 8
496496
steps:
497497
- name: Confirm Nvidia GPUs are enabled
498+
# The presence of the nvidia-smi command indicates that the Nvidia drivers have
499+
# successfully been imported inot the container, there is no point continuing
500+
# if nvidia-smi is not present
498501
run: nvidia-smi
499502

500503
- name: Fix HOME
@@ -503,14 +506,19 @@ jobs:
503506
# (https://github.com/actions/runner/issues/863)
504507
run: echo "HOME=/root" >> "$GITHUB_ENV"
505508

506-
- name: Pre-run cleanup
507-
# Make sure the current directory is empty
508-
run: find . -delete
509509

510510
# Git is needed for actions/checkout and Python for firedrake-configure
511511
# curl needed for adding new deb repositories to ubuntu
512512
- name: Install system dependencies (1)
513-
run: apt-get -y install git python3 curl
513+
run: |
514+
apt-get update
515+
apt-get -y install git python3 curl
516+
517+
518+
- name: Pre-run cleanup
519+
# Make sure the current directory is empty
520+
run: find . -delete
521+
514522

515523
- name: Add Nvidia CUDA deb repositories
516524
run: |

firedrake/preconditioners/offload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
__all__ = ("OffloadPC",)
1010

1111

12-
1312
@cache
1413
def offload_mat_type(pc_comm_rank) -> str | None:
1514
mat_type = device_matrix_type()

0 commit comments

Comments
 (0)