วันจันทร์ที่ 27 มิถุนายน พ.ศ. 2559

การติดตั้ง CUDA

1. Download Cuda

    https://developer.nvidia.com/cuda-downloads

2.cd /etc/default/

3.sudo cp grub grub.back

4.sudo nano grub

5.Comment the line GRUB_CMDLINE_LINUX_DEFAULT='quiet splash'

6.Change GRUB_CMDLINE_LINUX=”" to GRUB_CMDLINE_LINUX=”text

7.Uncomment this line GRUB_TERMINAL=console

8.sudo update-grub

9.sudo systemctl set-default multi-user.target #Boot Text mode

10.sudo reboot

11.lspci | grep -i nvidia      #For show System Properties

12.update-pciids      #For update the PCI hardware database 

13.lspci | grep -i nvidia      #For show System Properties

14.uname -m && cat /etc/*release
#For determine which distribution and release

15.gcc --version                          #For verify gcc

16.uname -r                         #For Show kernel version

17.sudo apt-get install linux-headers-$(uname -r)

#For Install kernel headers and development packages for the #currently running kernel

18.lsmod | grep nouveau           

#For The Nouveau drivers are loaded if the following command 
#prints anything.

19.sudo nano blacklist-nouveau.conf           

#For Create file /etc/modprobe.d/blacklist-nouveau.conf

20.blacklist nouveau                         

   options nouveau modeset=0
#For write 2 line in blacklist-nouveau.conf

21.sudo update-initramfs -u   

#For  Regenerate the kernel initramfs

22.sudo init 3                #For  Reboot to runlevel 3

23.sudo sh cuda_<version>_linux.run


24.sudo reboot

25.Go to directory save file

26.sudo sh cuda_7.5.18_linux_64.run -extract=/home/deep/cuda/

27.sudo ./cuda-linux64-rel-7.5.18-19867135.run

28.sudo ./cuda-samples-linux-7.5.18-19867135.run

29.export PATH=/usr/local/cuda-7.5/bin:$PATH

30.export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH

31.sudo reboot


ไม่มีความคิดเห็น:

แสดงความคิดเห็น