Skip to content

Commit 09254dc

Browse files
committed
Test MPICH with nonlocal={0,1} process placement
1 parent 65f8271 commit 09254dc

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

cibw-check-mpi.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,24 @@ RUN mpiexec -help
9292
RUN mpiexec -n 3 ./helloworld-c
9393
RUN mpiexec -n 3 ./helloworld-cxx
9494

95-
if test "$mpiname" = "mpich"; then
96-
case $(uname) in
97-
Linux) ch4netmods=(ofi ucx) ;;
98-
Darwin) ch4netmods=(ofi) ;;
99-
esac
95+
if test "$mpiname-$(uname)" = "mpich-Linux"; then
10096
export MPICH_CH4_UCX_CAPABILITY_DEBUG=1
10197
export MPICH_CH4_OFI_CAPABILITY_DEBUG=1
102-
for netmod in "${ch4netmods[@]}"; do
103-
printf "testing ch4:%s ... " "$netmod"
98+
for netmod in ucx ofi; do
99+
printf "testing %s ... " "$netmod"
104100
export MPICH_CH4_NETMOD="$netmod"
105101
test "${version%%.*}" -ge 4 || netmod=""
106-
./helloworld-c | grep -i "$netmod" > /dev/null
102+
mpiexec -n 1 ./helloworld-c | grep -i "$netmod" > /dev/null
103+
for nonlocal in 0 1; do
104+
export MPICH_NOLOCAL=$nonlocal
105+
for n in $(seq 1 4); do
106+
mpiexec -n "$n" ./helloworld-c > /dev/null
107+
done
108+
done
107109
printf "OK\n"
108110
done
109111
unset MPICH_CH4_UCX_CAPABILITY_DEBUG
110112
unset MPICH_CH4_OFI_CAPABILITY_DEBUG
111113
unset MPICH_CH4_NETMOD
114+
unset MPICH_NOLOCAL
112115
fi

0 commit comments

Comments
 (0)