GTX-TITAN PC, Ubuntu16.04LTS, CUDA-8.0RC 설치 메모
전제 환경
참고로 하는 무료 보도
GTX-1080 등 GeForce는 Ubuntu16.04LTS에서 CUDA-8.0RC와 함께 사용
http://qiita.com/hidenorly/items/a3eb3a0375e6703d163b
단계
필요한 소프트웨어 패키지 설치
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ sudo apt-get install nvidia-367
$ sudo apt-get install mesa-common-dev
$ sudo apt-get install freeglut3-dev
다운로드
https://developer.nvidia.com/cuda-toolkit 다운로드(로그인 필요)
cuda_8.0.27_linux.run(1.4GB) 선택
경로 추가
~/.bashrc
다음 내용 추가export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda
gcc4.8계로 돌아가기
$ cd /usr/bin/
$ sudo unlink gcc
$ sudo ln -s gcc4.8 gcc
$ sudo unlink g++
$ sudo ln -s g++-4.8 g++
X 모드 없이 작업
CTRL+ALT+F1
를 눌러 검은색 화면으로 들어갑니다.
로그인 후sudo init 3
, 비X 환경에서 방금 다운로드한 설치 프로그램을 실행합니다.$ chmod +x cuda_8.0.27_linux-run
$ sudo sh ./cuda_8.0.27_linux-run
EULA는 길지만f
연타.
마지막===========
= Summary =
===========
Driver: Installed
Toolkit: Installed in /usr/local/cuda-8.0
Samples: Installed in /home/lekto, but missing recommended libraries
Please make sure that
- PATH includes /usr/local/cuda-8.0/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.
Logfile is /tmp/cuda_install_21782.log
아니면 나오면 돼.$ sudo reboot
재부팅 후 X 로그인 불가
CTRL+ALT+F1
를 눌러 검은색 화면으로 다시 들어갑니다.
로그인
gcc5계 반환
$ cd /usr/bin/
$ sudo unlink gcc
$ sudo ln -s gcc-5 gcc
$ sudo unlink g++
$ sudo ln -s g++-5 g++
드라이버 재설치
$ sudo apt-get install nvidia-367 --reinstall
이런 표시일 거예요.Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 274 not upgraded.
Need to get 0 B/69.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 212246 files and directories currently installed.)
Preparing to unpack .../nvidia-367_367.44-0ubuntu0~gpu16.04.1_amd64.deb ...
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
Stopping previous nvidia-persistenced
nvidia-persistenced: no process found
Done.
Unpacking nvidia-367 (367.44-0ubuntu0~gpu16.04.1) over (367.44-0ubuntu0~gpu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nvidia-367 (367.44-0ubuntu0~gpu16.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-367
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-367-367.44 DKMS files...
Building only for 4.4.0-34-generic
Building for architecture x86_64
Building initial module for 4.4.0-34-generic
Done.
nvidia_367:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
depmod....
DKMS: install completed.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6.bin for module i915_bpo
재부팅 후 X 환경에서 로그인 가능$ sudo reboot
지원
16.04의 ISO 문제, 기본 언어 환경은 일본어입니다.$ localectl
System Locale: LANG=ja_JP.UTF-8
VC Keymap: n/a
X11 Layout: jp
콘솔까지 일본어면 힘들어요?투덜거리기 힘들어서 영어로.$ sudo update-locale LANG=en_US.UTF-8
$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: jp
Reference
이 문제에 관하여(GTX-TITAN PC, Ubuntu16.04LTS, CUDA-8.0RC 설치 메모), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/lekto/items/4064e94db21a3de50ee8
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
필요한 소프트웨어 패키지 설치
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ sudo apt-get install nvidia-367
$ sudo apt-get install mesa-common-dev
$ sudo apt-get install freeglut3-dev
다운로드
https://developer.nvidia.com/cuda-toolkit 다운로드(로그인 필요)
cuda_8.0.27_linux.run(1.4GB) 선택
경로 추가
~/.bashrc
다음 내용 추가export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda
gcc4.8계로 돌아가기
$ cd /usr/bin/
$ sudo unlink gcc
$ sudo ln -s gcc4.8 gcc
$ sudo unlink g++
$ sudo ln -s g++-4.8 g++
X 모드 없이 작업
CTRL+ALT+F1
를 눌러 검은색 화면으로 들어갑니다.로그인 후
sudo init 3
, 비X 환경에서 방금 다운로드한 설치 프로그램을 실행합니다.$ chmod +x cuda_8.0.27_linux-run
$ sudo sh ./cuda_8.0.27_linux-run
EULA는 길지만f
연타.마지막
===========
= Summary =
===========
Driver: Installed
Toolkit: Installed in /usr/local/cuda-8.0
Samples: Installed in /home/lekto, but missing recommended libraries
Please make sure that
- PATH includes /usr/local/cuda-8.0/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall
Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.
Logfile is /tmp/cuda_install_21782.log
아니면 나오면 돼.$ sudo reboot
재부팅 후 X 로그인 불가
CTRL+ALT+F1
를 눌러 검은색 화면으로 다시 들어갑니다.로그인
gcc5계 반환
$ cd /usr/bin/
$ sudo unlink gcc
$ sudo ln -s gcc-5 gcc
$ sudo unlink g++
$ sudo ln -s g++-5 g++
드라이버 재설치
$ sudo apt-get install nvidia-367 --reinstall
이런 표시일 거예요.Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 274 not upgraded.
Need to get 0 B/69.7 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 212246 files and directories currently installed.)
Preparing to unpack .../nvidia-367_367.44-0ubuntu0~gpu16.04.1_amd64.deb ...
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
Stopping previous nvidia-persistenced
nvidia-persistenced: no process found
Done.
Unpacking nvidia-367 (367.44-0ubuntu0~gpu16.04.1) over (367.44-0ubuntu0~gpu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nvidia-367 (367.44-0ubuntu0~gpu16.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-367
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-367-367.44 DKMS files...
Building only for 4.4.0-34-generic
Building for architecture x86_64
Building initial module for 4.4.0-34-generic
Done.
nvidia_367:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
nvidia_367_uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.4.0-34-generic/updates/dkms/
depmod....
DKMS: install completed.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for initramfs-tools (0.122ubuntu8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-34-generic
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6.bin for module i915_bpo
재부팅 후 X 환경에서 로그인 가능$ sudo reboot
지원
16.04의 ISO 문제, 기본 언어 환경은 일본어입니다.$ localectl
System Locale: LANG=ja_JP.UTF-8
VC Keymap: n/a
X11 Layout: jp
콘솔까지 일본어면 힘들어요?투덜거리기 힘들어서 영어로.$ sudo update-locale LANG=en_US.UTF-8
$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: jp
Reference
이 문제에 관하여(GTX-TITAN PC, Ubuntu16.04LTS, CUDA-8.0RC 설치 메모), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/lekto/items/4064e94db21a3de50ee8
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
$ localectl
System Locale: LANG=ja_JP.UTF-8
VC Keymap: n/a
X11 Layout: jp
$ sudo update-locale LANG=en_US.UTF-8
$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: jp
Reference
이 문제에 관하여(GTX-TITAN PC, Ubuntu16.04LTS, CUDA-8.0RC 설치 메모), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/lekto/items/4064e94db21a3de50ee8텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)