-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReference_about_install.txt
60 lines (45 loc) · 1.84 KB
/
Reference_about_install.txt
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
Checking Graphic Card H/W
- lspci | grep VGA
Install NVIDA-CUDA
- apt-get install nvidia-cuda-toolkit
- https://developer.nvidia.com/ => Direct Download
- Reference <http://www.prinmath.com/csci5229/misc/install-gpu.html>
● NDIVIA Reference : http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#choose-installation-method
● http://enginius.tistory.com/529
● https://www.pugetsystems.com/labs/articles/NVIDIA-CUDA-with-Ubuntu-16-04-beta-on-a-laptop-if-you-just-cannot-wait-775/
● http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run
1. Checking version for Graphic card
=> lspci | grep -i nvidia
2. Checking version for Gcc
=> gcc --version
3. Download CUDA-toolkit
=> https://developer.nvidia.com/cuda-downloads
4. Install
=> $ sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
=> $ sudo apt-get update
=> $ sudo apt-get install cuda
5. Setting enviroment variable
=> $ cd
=> $ gedit .bashrc
<In the opened window , add the following two lines at the end.>
=> $ export PATH=/usr/local/cuda-6.5/bin:$PATH
=> $ export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH
6. Checking installation
=> $ cuda-install-samples-6.5.sh ~
=> $ cd
=> $ cd NVIDIA_CUDA-6.5_Samples
=> $ make
After numerous examples to compile it took some time doing this.
After completing, Make a running example(.exe).
=> $ ./simplePrintf
=> $ ./matrixMul
=> $ ./matrixMulCUBLAS
or
1. chmod 755 cuda_7.5.18_linux.run
2. sudo ./cuda_7.5.18_linux.run --override
3. sudo emacs -nw /etc/profile.d/cuda.sh
=> export PATH=$PATH:/usr/local/cuda/bin
4. sudo emacs -nw /etc/ld.so.conf.d/cuda.conf
=> /usr/local/cuda/lib64
5. source /etc/profile.d/cuda.conf
6. sudo ldconfig