annotate example/Miller_Rabin/run.sh @ 1716:c12df61ded45 draft

fix gpu profile. not work yet
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 15 Oct 2013 17:21:10 +0900
parents 08d81be1c6e4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1274
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/bin/zsh
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 a=1
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 while [ $a -le 24 ]
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 do
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 b=0
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 while [ $b -le 5 ]
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 do
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 echo -n "CPU_NUM $a "
1275
08d81be1c6e4 fix time.sh
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1274
diff changeset
10 (time $* -cpu $a) 1>/dev/null
1274
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 b=`expr $b + 1`
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 done
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 a=`expr $a + 1`
64e15fee0397 add shell script that measure time
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 done