linux:
#echo "Bash version ${BASH_VERSION}..."
clear
id=put_here_your_numerical_id
howManyNounces=40960
stagger=4096
filesToGenerate=15
cpu=23
offset=${howManyNounces}*0
iniLoc=0
#############################Do not modify below this line
startAt=$(($iniLoc+$offset))
endAt=$(($startAt+$howManyNounces*$filesToGenerate))
for i in $(eval echo "{$startAt..$endAt..$howManyNounces}")
do
cmd="~/_plot/./plot ${id} ${i} ${howManyNounces} ${stagger} ${cpu}"
time $(eval echo $cmd)
done
windows:
@SET ID=put_here_your_numerical_id
@SET howManyNounces=40960
@SET stagger=4096
@SET filesToGenerate=15
@SET cpu=23
@SET /a offset=(%howManyNounces% * 21)
@SET initLoc=0
@::############################Do not modify below this line
@SET /a startAt=%initLoc% + %offset%
@SET /a stopAt=%startAt% + %howManyNounces% * %filesToGenerate%
FOR /L %%A in (%startAt%, %howManyNounces%, %stopAt%) DO (
plot.exe %ID% %%A %howManyNounces% %stagger% %cpu%
)