1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#! /bin/sh
##
## Copyright (C) by Argonne National Laboratory
## See COPYRIGHT in top-level directory
##
HYDRA_TOPO_DEBUG=1
export HYDRA_TOPO_DEBUG
if test -f dummy; then
errors=0
for topo in topo1 topo2 topo3 topo4 ; do
export HWLOC_XMLFILE=@top_srcdir@/impls/hydra/binding_reference/$topo.xml
for bind_ in hwthread hwthread:2 hwthread:4 hwthread:8 core core:2 core:4 socket numa board ; do
for map_ in hwthread hwthread:2 hwthread:4 hwthread:8 core core:2 core:4 socket numa board ; do
bind=`echo $bind_ | sed -e 's/:/-/g'`
map=`echo $map_ | sed -e 's/:/-/g'`
@MPIEXEC@ -bind-to $bind_ -map-by $map_ -n 16 ./dummy | sort -k2n > actual.${topo}.${bind}.${map}.out
diff @top_srcdir@/impls/hydra/binding_reference/expected.${topo}.${bind}.${map}.out \
actual.${topo}.${bind}.${map}.out
if test "$?" != "0" ; then
echo "ERROR $topo $bind $map"
errors=1
else
rm actual.${topo}.${bind}.${map}.out
fi
done
done
done
if test "$errors" = "0"; then
echo " No Errors"
exit 0
fi
else
echo "run make to build required dummy executable"
exit 1
fi
|