blob: 76b595fd0883968dc9cf43e7c39bfeb579b5c5ac (
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
|
#!/bin/sh
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 ../
|