From fb1cf88bbe3b5ab734c94d47d70c6236eaa90835 Mon Sep 17 00:00:00 2001 From: Connor Ward Date: Thu, 12 Dec 2024 16:46:10 +0000 Subject: [PATCH] Fix? parallel tests in PyOP2 --- .github/workflows/pyop2.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pyop2.yml b/.github/workflows/pyop2.yml index aed26fbbe4..a0c6d1797b 100644 --- a/.github/workflows/pyop2.yml +++ b/.github/workflows/pyop2.yml @@ -27,7 +27,7 @@ jobs: shell: bash run: | sudo apt update - sudo apt install build-essential mpich libmpich-dev \ + sudo apt install build-essential libopenmpi-dev \ libblas-dev liblapack-dev gfortran libhwloc-dev libfabric-dev - name: Set correct Python version @@ -120,7 +120,7 @@ jobs: working-directory: firedrake run: | source ../venv/bin/activate - # Running parallel test cases separately works around a bug in pytest-mpi - pytest -k "not parallel" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 - mpiexec -n 3 pytest -k "parallel[3]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 + python -m pytest -m "not parallel" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 + mpiexec -n 2 python -m pytest -m "parallel[2]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 + mpiexec -n 3 python -m pytest -m "parallel[3]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 timeout-minutes: 10