-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunTests.sh
executable file
·61 lines (52 loc) · 1.14 KB
/
runTests.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
benchmarksDir=$1
choleskyDir=cholesky
matmulDir=matmul
luDir=lu
testString="one two three four five six"
#Runs cholesky for various inputs
cd $benchmarksDir/$choleskyDir
echo $( pwd )
if [ ! -d "./executions" ]
then
mkdir executions
fi
for i in $( seq 1 1)
do
for j in $( seq 1 8 )
do
name="e-$i-$j"
# echo $name
./cholesky $i $j > ./executions/$name
done
done
#Runs matmul for various inputs
cd $benchmarksDir/$matmulDir
echo $( pwd )
if [ ! -d "./executions" ]
then
mkdir executions
fi
for i in $( seq 1 10 )
do
./matmul $i > ./executions/e-$i
done
#Runs lu for various inputs
cd $benchmarksDir/$luDir
echo $( pwd )
if [ ! -d "./executions" ]
then
mkdir executions
fi
for i in $( seq 1 3 )
do
./lu $i > ./executions/e-$i
done
#Section for generating the dependency graph for each of the inputs
cd $benchmarksDir/$choleskyDir
echo $( pwd )
for i in $( ls executions )
do
java -jar "/home/lucas/Dropbox/Eclipse Workspace/DepSolver/jar/DepSolver.jar" -i $benchmarksDir/$choleskyDir/executions/$i -m \
-O $benchmarksDir/$choleskyDir/graphs/$i-FALSE.png -h $benchmarksDir/$choleskyDir/histograms/$-FALSE.png
done