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 | 홈페이지 개국 7 주년 [1] | WHRIA | 2007.06.22 | 4791 |
1548 | 볼링 | WHRIA | 2007.05.27 | 4775 |
1547 | windows faster rcnn | WHRIA | 2017.02.10 | 4702 |
1546 | 뉴논스톱 | 한승석 | 2003.02.12 | 4691 |
1545 | Celebrate you to the world of God! | 채영광 | 2000.08.27 | 4676 |
1544 | 영세 축하합니다 | 안소정 | 2000.08.23 | 4589 |
1543 | 제 홈페이지에 대한 소개 | 한승석 | 2000.06.09 | 4558 |
1542 | 음악 니가 다 정리한 거야? | 채영광 | 2000.07.18 | 4512 |
1541 | 드라이버 잘치는 법 | WHRIA | 2013.06.20 | 4477 |
1540 | 영어로 숫자 표현 | WHRIA | 2020.05.28 | 4466 |
1539 | Yahoo !! | WHRIA | 2007.08.04 | 4465 |
1538 | 슬라이스 방지법 | WHRIA | 2013.06.20 | 4462 |
1537 | slide note 삭제 슬라이드 노트 삭제 | WHRIA | 2018.09.12 | 4437 |
1536 | 부지런함 | WHRIA | 2007.06.18 | 4424 |
1535 | 한승석군 | 최평균 | 2000.08.21 | 4419 |