Skip to content

Commit b5402c8

Browse files
committed
Add extra args for openmpi to prevent hangs
1 parent 12d1708 commit b5402c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@ jobs:
4545
- name: Install pylops-mpi
4646
run: pip install .
4747
- name: Testing using pytest-mpi
48-
run: mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
48+
run: |
49+
if [ "${{ matrix.mpi }}" = "openmpi" ]; then
50+
mpiexec --oversubscribe --mca btl ^openib --bind-to none -n ${{ matrix.rank }} pytest tests/ --with-mpi
51+
else
52+
mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
53+
fi

0 commit comments

Comments
 (0)