-
Notifications
You must be signed in to change notification settings - Fork 4
/
runuhhh
executable file
·32 lines (32 loc) · 821 Bytes
/
runuhhh
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
#!/bin/bash
#This script file will run only the unitary hhh algorithms with the specified input and record the results.
#Arguments:
# $1=num items
# $2=counters
# $3=threshold
# $4=file
# output is $4.summary
echo "starting"
make all
NUM_POINTS=$1
echo NUM_POINTS=$NUM_POINTS
NUM_COUNTERS=$2
echo NUM_COUNTERS=$NUM_COUNTERS
THRESHOLD=$3
echo THRESHOLD=$THRESHOLD
DATAFILE=$4
echo DATAFILE=$DATAFILE
SUMMARYFILE=$4.summary
echo SUMMARYFILE=$SUMMARYFILE
export SUMMARYFILE
echo "uhhh1:"
./uhhh1 $NUM_POINTS $NUM_COUNTERS $THRESHOLD out.txt < $DATAFILE
./check1 $DATAFILE out.txt
echo "uhhh1_33:"
./uhhh1_33 $NUM_POINTS $NUM_COUNTERS $THRESHOLD out.txt < $DATAFILE
./check1_33 $DATAFILE out.txt
echo "uhhh2:"
./uhhh2 $NUM_POINTS $NUM_COUNTERS $THRESHOLD out.txt < $DATAFILE
./check2 $DATAFILE out.txt
echo "done"
rm out.txt