forked from cjg/GVirtuS
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gvirtus-installer
executable file
·72 lines (63 loc) · 1.24 KB
/
gvirtus-installer
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
#! /bin/bash
set -e
if [ $# -ne 1 ]; then
echo usage: $0 "<path-of-installation-folder>"
exit 1
fi
INSTALL_FOLDER=$1
echo $INSTALL_FOLDER
cd gvirtus
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
cd gvirtus.cudart
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
cd gvirtus.cudadr
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
cd gvirtus.cufft
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
cd gvirtus.cublas
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
cd gvirtus.curand
#make clean
./autogen.sh --prefix="${INSTALL_FOLDER}"
make
make install
cd ..
#cd gvirtus.cudnn
#make clean
#./autogen.sh --prefix="${INSTALL_FOLDER}"
#make
#make install
cd $INSTALL_FOLDER/lib/frontend
ln -sf libcudart.so.6.5.14 libcudart.so.6.5
ln -sf libcudart.so.6.5.14 libcudart.so.8.0
ln -sf libcublas.so.8.0.0 libcublas.so.6.5
ln -sf libcufft.so libcufft.so.6.5
ln -sf libcurand.so libcurand.so.6.5
ln -sf libcufft.so.3.0.0 libcufft.so.8.0
ln -sf libcudart.so libcudart.so.9.0
ln -sf libcuda.so libcuda.so.9.0
ln -sf libcublas.so libcublas.so.9.0
ln -sf libcufft.so libcufft.so.9.0
echo
echo
echo INSTALLATION COMPLETED!