From a9787b8ab69d7aab7e7fcd4b9d3c5268b3015f3c Mon Sep 17 00:00:00 2001 From: Connor Ward Date: Fri, 13 Dec 2024 11:23:35 +0000 Subject: [PATCH] Fix parallel tests in PyOP2 (#3925) * python -m pytest causing issues * oversubscribe cores --- .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..b5e750242a 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 + pytest -m "not parallel" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 + mpiexec -n 2 --oversubscribe pytest -m "parallel[2]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 + mpiexec -n 3 --oversubscribe pytest -m "parallel[3]" --tb=native --timeout=480 --timeout-method=thread -o faulthandler_timeout=540 -v tests/pyop2 timeout-minutes: 10