File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -92,21 +92,24 @@ RUN mpiexec -help
9292RUN mpiexec -n 3 ./helloworld-c
9393RUN 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
112115fi
You can’t perform that action at this time.
0 commit comments