-
Notifications
You must be signed in to change notification settings - Fork 0
/
compileCodes.sh
executable file
·95 lines (89 loc) · 1.7 KB
/
compileCodes.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
# set PATH and LD_LIBRARY_PATH for CUDA/OpenCL installation (may need to be adjusted)
#export PATH=$PATH:/usr/local/cuda/bin
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:/usr/local/cuda/lib64
for currDir in *
do
echo $currDir
if [ -d $currDir ]
then
cd $currDir
pwd
if [ "$1" == "clean" ]; then
make clean
elif [ "$1" != "test" ]; then
make
fi
cd ..
fi
done
if [ "$1" == "clean" ]; then
echo "Cleaning vkcomp obj files..."
cd ./vkcomp
rm -f *.o
cd ..
fi
DEVICE_SELECTION="0"
if [ "$1" == "test" ]; then
clear;
cd 2DCONV
echo "Performing 2DConvolution"
./2DConvolution $DEVICE_SELECTION ;
cd ..
cd 2MM
echo "Performing 2MM. Warning: CPU implementation will take a while..."
./2mm $DEVICE_SELECTION ;
cd ..
cd 3DCONV
echo "Performing 3DConvolution"
./3DConvolution $DEVICE_SELECTION ;
cd ..
cd 3MM
echo "Performing 3MM"
./3mm $DEVICE_SELECTION ;
cd ..
cd ATAX
echo "Performing ATAX"
./atax $DEVICE_SELECTION ;
cd ..
cd BICG
echo "Performing BICG"
./bicg $DEVICE_SELECTION ;
cd ..
cd CORR
echo "Performing CORR"
./correlation $DEVICE_SELECTION ;
cd ..
cd COVAR
echo "Performing covariance"
./covariance $DEVICE_SELECTION ;
cd ..
cd FDTD-2D
echo "Performing FDTD-2D"
./fdtd2d $DEVICE_SELECTION ;
cd ..
cd GEMM
echo "Performing GEMM"
./gemm $DEVICE_SELECTION ;
cd ..
cd GESUMMV
echo "Performing GESUMMV"
./gesummv $DEVICE_SELECTION ;
cd ..
cd GRAMSCHM
echo "Performing GRAMSCHM"
./gramschmidt $DEVICE_SELECTION ;
cd ..
cd MVT
echo "Performing MVT"
./mvt $DEVICE_SELECTION ;
cd ..
cd SYR2K
echo "Performing SYR2K"
./syr2k $DEVICE_SELECTION ;
cd ..
cd SYRK
echo "Performing SYRK"
./syrk $DEVICE_SELECTION ;
cd ..
fi