File: proc_binding.sh.in

package info (click to toggle)
mpich 3.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 72,684 kB
  • ctags: 69,156
  • sloc: ansic: 360,380; perl: 17,453; sh: 16,717; f90: 11,288; xml: 9,855; python: 9,651; cpp: 8,790; fortran: 7,500; makefile: 4,374; csh: 98; ruby: 53; sed: 9; php: 8
file content (35 lines) | stat: -rwxr-xr-x 1,024 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

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