Skip to content

Commit 44cf336

Browse files
committed
Test with binding none and oversubscribe
1 parent c68ebb6 commit 44cf336

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ jobs:
4242
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
4343
- name: Install pylops-mpi
4444
run: pip install .
45-
- name: Debug MPI Execution
45+
- name: Debug MPI tests
4646
run: |
47-
echo "Starting MPI test"
48-
mpiexec -n ${{ matrix.rank }} hostname
49-
echo "MPI test completed"
47+
echo "CPUs available: $(nproc)"
48+
if [ "${{ matrix.mpi }}" = "openmpi" ]; then
49+
mpiexec --oversubscribe \
50+
--bind-to none \
51+
-n ${{ matrix.rank }} python -m pytest tests/ --with-mpi -v
52+
else
53+
mpiexec -n ${{ matrix.rank }} python -m pytest tests/ --with-mpi -v
54+
fi
55+
5056
# - name: Testing using pytest-mpi
5157
# run: mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi

0 commit comments

Comments
 (0)