Skip to content

Commit 7e6cbe0

Browse files
committed
Only push ^openib to not work with Infiniband and minor linting
1 parent 46c232a commit 7e6cbe0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Testing using pytest-mpi
4646
run: |
4747
if [ "${{ matrix.mpi }}" = "openmpi" ]; then
48-
mpiexec --oversubscribe --mca btl ^openib --bind-to none -n ${{ matrix.rank }} pytest tests/ --with-mpi
48+
mpiexec --mca btl ^openib -n ${{ matrix.rank }} pytest tests/ --with-mpi
4949
else
5050
mpiexec -n ${{ matrix.rank }} pytest tests/ --with-mpi
5151
fi

tests/test_distributedarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_distributed_masked(par):
200200
"""Test Asarray with masked array"""
201201
# Number of subcommunicators
202202
size = MPI.COMM_WORLD.Get_size()
203-
203+
204204
# Exclude not handled cases
205205
shape_axis = par['x'].shape[par['axis']]
206206
print('shape_axis, size', shape_axis, size, shape_axis % size != 0)
@@ -246,7 +246,7 @@ def test_distributed_maskeddot(par1, par2):
246246
"""Test Distributed Dot product with masked array"""
247247
# Number of subcommunicators
248248
size = MPI.COMM_WORLD.Get_size()
249-
249+
250250
# Exclude not handled cases
251251
shape_axis = par1['x'].shape[par1['axis']]
252252
print('shape_axis, size', shape_axis, size, shape_axis % size != 0)

tests/test_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
def test_cg(par):
9595
"""CG with MPIBlockDiag"""
9696
np.random.seed(42)
97-
97+
9898
A = np.ones((par["ny"], par["nx"])) + par[
9999
"imag"] * np.ones((par["ny"], par["nx"]))
100100
Aop = MatrixMult(np.conj(A.T) @ A, dtype=par['dtype'])

0 commit comments

Comments
 (0)