intel 내장 그래픽 / CUDA
2018.05.12 12:35
https://gist.github.com/alexlee-gk/76a409f62a53883971a18a11af93241b
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly. In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers. This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa
in the command-line.
The solution is described in the answer from this post.
Install the NVIDIA drivers
Download the driver installation runfile from their website (e.g. the 375.26 driver runfile). Run the script with the option --no-opengl-files
:
sudo ./NVIDIA-Linux-x86_64-375.26.run --no-opengl-files
Reboot.
Install CUDA
Download the CUDA installation runfile from their website. It's important to download the "runfile (local)" file so that we can explicitly prevent from overwriting the driver that was just installed. Run the script:
sudo ./cuda_8.0.44_linux.run
Respond "no" when asked "Install NVIDIA accelerated Graphics Driver for Linux-x86_65 375.26?".
Configure xorg.conf
Modify or create the file /etx/X11/xorg.conf
to specify that the NVIDIA GPU should be used for a secondary screen so that it has entries in nvidia-settings
. Mine looks like this:
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Screen 1 "nvidia"
EndSection
Section "Device"
Identifier "intel"
Driver "intel"
BusID "PCI:0@0:2:0"
Option "AccelMethod" "SNA"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1@0:0:0"
Option "ConstrainCursor" "off"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
EndSection
The BusID
should match what the lspci
command above returned.
Reboot.
Miscellaneous tips
If installing the NVIDIA drivers messes up the OS (e.g. it gets stuck in a login loop or it shows a black screen before the login step), you can uninstall the drivers by openning a console with Ctrl-Alt-F1 and running:
sudo apt-get remove --purge nvidia-*
sudo apt-get autoremove
echo "nouveau" | sudo tee -a /etc/modules
Reboot.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1549 | 아래 주소는 새 홈페이지 주소입니다. | 한승석 | 2002.06.19 | 2128 |
1548 | 여기는 집입니다~ | 한승석 | 2003.01.10 | 2110 |
1547 | 승석이가 피부과에 합격했답니다. | 한승석 | 2003.01.10 | 2324 |
1546 | 외로움 | 한승석 | 2003.01.27 | 2110 |
1545 | 홈페이지 배경음악을 넣었습니다. | 한승석 | 2003.01.27 | 2114 |
1544 | 오늘은 인턴 페어웰을 암센터에서~~ | 한승석 | 2003.01.29 | 2111 |
1543 | 멋진 걸! | 채영광 | 2003.01.29 | 2111 |
1542 | 자료실에 성소재림 , catch me if you can 등의 영화가 올렸습니다. | 한승석 | 2003.01.29 | 2099 |
1541 | 다시 제주도로.. | 한승석 | 2003.01.30 | 2126 |
1540 | 요즘 얼굴에 주름이 생겨서 고민.. | 한승석 | 2003.01.30 | 2106 |
1539 | 도전과 응전 | 한승석 | 2003.01.30 | 2029 |
1538 | 홈페이지 새단장 완료 | 한승석 | 2003.01.30 | 2097 |
1537 | 한라병원에 도착했습니다... | 한승석 | 2003.01.31 | 2100 |
1536 | 한라 병원 인근의 겜방 ^^ | 한승석 | 2003.01.31 | 2125 |
1535 | 이번 달은 한라병원 응급실에 근무 | 한승석 | 2003.01.31 | 2854 |