Blame test/mpi/impls/hydra/proc_binding.sh.in
|
Packit Service |
c5cf8c |
#!/bin/sh
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
HYDRA_TOPO_DEBUG=1
|
|
Packit Service |
c5cf8c |
export HYDRA_TOPO_DEBUG
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if test -f dummy; then
|
|
Packit Service |
c5cf8c |
errors=0
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
for topo in topo1 topo2 topo3 topo4 ; do
|
|
Packit Service |
c5cf8c |
export HWLOC_XMLFILE=@top_srcdir@/impls/hydra/binding_reference/$topo.xml
|
|
Packit Service |
c5cf8c |
for bind_ in hwthread hwthread:2 hwthread:4 hwthread:8 core core:2 core:4 socket numa board ; do
|
|
Packit Service |
c5cf8c |
for map_ in hwthread hwthread:2 hwthread:4 hwthread:8 core core:2 core:4 socket numa board ; do
|
|
Packit Service |
c5cf8c |
bind=`echo $bind_ | sed -e 's/:/-/g'`
|
|
Packit Service |
c5cf8c |
map=`echo $map_ | sed -e 's/:/-/g'`
|
|
Packit Service |
c5cf8c |
@MPIEXEC@ -bind-to $bind_ -map-by $map_ -n 16 ./dummy | sort -k2n > actual.${topo}.${bind}.${map}.out
|
|
Packit Service |
c5cf8c |
diff @top_srcdir@/impls/hydra/binding_reference/expected.${topo}.${bind}.${map}.out \
|
|
Packit Service |
c5cf8c |
actual.${topo}.${bind}.${map}.out
|
|
Packit Service |
c5cf8c |
if test "$?" != "0" ; then
|
|
Packit Service |
c5cf8c |
echo "ERROR $topo $bind $map"
|
|
Packit Service |
c5cf8c |
errors=1
|
|
Packit Service |
c5cf8c |
else
|
|
Packit Service |
c5cf8c |
rm actual.${topo}.${bind}.${map}.out
|
|
Packit Service |
c5cf8c |
fi
|
|
Packit Service |
c5cf8c |
done
|
|
Packit Service |
c5cf8c |
done
|
|
Packit Service |
c5cf8c |
done
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if test "$errors" = "0"; then
|
|
Packit Service |
c5cf8c |
echo " No Errors"
|
|
Packit Service |
c5cf8c |
exit 0
|
|
Packit Service |
c5cf8c |
fi
|
|
Packit Service |
c5cf8c |
else
|
|
Packit Service |
c5cf8c |
echo "run make to build required dummy executable"
|
|
Packit Service |
c5cf8c |
exit 1
|
|
Packit Service |
c5cf8c |
fi
|