author | alpar |
Tue, 24 Oct 2006 16:49:41 +0000 | |
changeset 2259 | da142c310d02 |
parent 754 | 2471ef33b4a0 |
permissions | -rwxr-xr-x |
alpar@718 | 1 |
#!/bin/bash |
alpar@718 | 2 |
|
alpar@718 | 3 |
function runtest () # prefix, prog, args |
alpar@718 | 4 |
{ |
alpar@718 | 5 |
echo $1 1>&2 |
alpar@754 | 6 |
$2 $3 $4 $5 $6 $7 $8 $9 >/dev/null; |
alpar@754 | 7 |
for ((i=1;i<=3;i++)) |
alpar@723 | 8 |
do |
alpar@723 | 9 |
$2 $3 $4 $5 $6 $7 $8 $9; |
alpar@723 | 10 |
done | |
alpar@723 | 11 |
awk '{print "'$1'",$0}' |
alpar@718 | 12 |
} |
alpar@718 | 13 |
|
alpar@718 | 14 |
function runalltest() #postfix, CXX, CXXFLAGS |
alpar@718 | 15 |
{ |
alpar@718 | 16 |
echo $1 1>&2 |
alpar@718 | 17 |
make clean >/dev/null |
alpar@718 | 18 |
make CXX="$2" CXXFLAGS="$3" >/dev/null |
alpar@718 | 19 |
{ |
alpar@718 | 20 |
runtest HCUBE19 hcube 19 |
alpar@754 | 21 |
runtest BFS13-5000 hcube 13 5000 |
alpar@754 | 22 |
runtest BFS10-50000 hcube 10 50000 |
alpar@718 | 23 |
runtest GRBENCH graph-bench |
alpar@718 | 24 |
} | awk "{print \$0, \"$1\"}" |
alpar@718 | 25 |
} |
alpar@718 | 26 |
|
alpar@718 | 27 |
runalltest "gcc-3.3 -O2" g++ "-O2" |
alpar@718 | 28 |
runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m" |
alpar@718 | 29 |
runalltest "gcc-3.3 -O3" g++ "-O3" |
alpar@718 | 30 |
runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m" |
alpar@718 | 31 |
|
alpar@718 | 32 |
runalltest "gcc-3.4 -O2" g++-3.4 "-O2" |
alpar@718 | 33 |
runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m" |
alpar@718 | 34 |
runalltest "gcc-3.4 -O3" g++-3.4 "-O3" |
alpar@718 | 35 |
runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m" |
alpar@754 | 36 |
|
alpar@754 | 37 |
runalltest "icc -O2" icc "-O2" |
alpar@754 | 38 |
runalltest "icc -O2-march=pentium-m" icc "-O2 -march=pentium-m" |
alpar@754 | 39 |
runalltest "icc -O3" icc "-O3" |
alpar@754 | 40 |
runalltest "icc -O3-march=pentium-m" icc "-O3 -march=pentium-m" |
alpar@718 | 41 |