Skip to content

Commit c496bed

Browse files
committed
Add --oversubscribe for openmpi tests
1 parent 12d1708 commit c496bed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
exclude:
2121
- os: macos-latest
2222
mpi: 'intelmpi'
23-
- mpi: 'openmpi'
24-
rank: '9' # works locally, not in CI
2523
runs-on: ${{ matrix.os }}
2624
steps:
2725
- name: Checkout
@@ -45,4 +43,9 @@ jobs:
4543
- name: Install pylops-mpi
4644
run: pip install .
4745
- name: Testing using pytest-mpi
48-
run: mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
46+
run: |
47+
if [ "${{ matrix.mpi }}" = "openmpi" ]; then
48+
mpiexec --oversubscribe -n ${{ matrix.rank }} pytest tests/ --with-mpi
49+
else
50+
mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
51+
fi

0 commit comments

Comments
 (0)