summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/ramspeed/install.sh
blob: c84c57efa9386d477623a9fcb34241bf799b1e10 (plain)
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
#!/bin/sh

cd $1

tar -xvf ramspeed-2.5.1.tar.gz

echo "#!/bin/sh

rm -f *.result
./ramspeed \$@ > \$THIS_RUN_TIME.result

case \"\$1\" in
\"COPY\")
	cat \$THIS_RUN_TIME.result | grep \"Copy\"
	;;
\"SCALE\")
	cat \$THIS_RUN_TIME.result | grep \"Scale\"
	;;
\"ADD\")
	cat \$THIS_RUN_TIME.result | grep \"Add\"
	;;
\"TRIAD\")
	cat \$THIS_RUN_TIME.result | grep \"Triad\"
	;;
\"AVERAGE\")
	cat \$THIS_RUN_TIME.result | grep \"AVERAGE\"
	;;
esac
" > ramspeed-benchmark
chmod +x ramspeed-benchmark

cd ramspeed-2.5.1/
cat build.sh | grep -v "read ANS" > build_pts.sh
chmod +x build_pts.sh
./build_pts.sh
ln ramspeed ../