mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
make genCheckpoint accept instr count as argument
This commit is contained in:
parent
c92d41a597
commit
8c926dcfd2
@ -2,11 +2,20 @@
|
|||||||
|
|
||||||
source genSettings.sh
|
source genSettings.sh
|
||||||
tcpPort=1236
|
tcpPort=1236
|
||||||
|
|
||||||
instrs=8500000
|
|
||||||
checkOutDir="$outDir/checkpoint$instrs"
|
checkOutDir="$outDir/checkpoint$instrs"
|
||||||
checkIntermedDir="$checkOutDir/intermediate-outputs"
|
checkIntermedDir="$checkOutDir/intermediate-outputs"
|
||||||
|
|
||||||
|
# Parse Commandline Arg
|
||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "genCheckpoint requires 1 argument: <num instrs>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
instrs=$1
|
||||||
|
if ! [ "$instrs" -eq "$instrs" ] 2> /dev/null
|
||||||
|
then
|
||||||
|
echo "Error expected integer number of instructions, got $instrs" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
read -p "This scripts is going to create a checkpoint at $instrs instrs.
|
read -p "This scripts is going to create a checkpoint at $instrs instrs.
|
||||||
Is that what you wanted? (y/n) " -n 1 -r
|
Is that what you wanted? (y/n) " -n 1 -r
|
||||||
|
Loading…
Reference in New Issue
Block a user