view example/Miller_Rabin/run.sh @ 1458:a0feb4877a1f draft

create GpuRunTest Recommit
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Sat, 09 Jun 2012 21:36:18 +0900
parents 08d81be1c6e4
children
line wrap: on
line source

#!/bin/zsh

a=1
while [ $a -le 24 ]
do
	b=0
	while [ $b -le 5 ]
	do
		echo -n "CPU_NUM $a "
		(time $* -cpu $a) 1>/dev/null
		b=`expr $b + 1`
	done
	a=`expr $a + 1`
done