7. Advanced Setup

아래는 어떤 개선된 셋업 시나리오에 대한 정보이다. 이는 위에 기본 명령으로 다루지 못한 것이다.

Advanced Setup Scenarios when Installing CUDA

시나리오1

NVIDIA GL 라이브러리를 인스톨하지 않고 패키지 매니저 인스톨 방법을 이용한 CUDA의 인스톨

RHEL 7/CentOS 7

Install CUDA using the following command:

$ sudo yum install cuda-toolkit-8-0 \
    xorg-x11-drv-nvidia-libs nvidia-kmod

If the system is using a non-NVIDIA GPU to render the display, remove the files at /etc/X11/xorg.conf and /usr/lib64/nvidia/xorg/libglx.so, and remove the nomodeset kernel parameter from the boot command-line.
Follow the instructions here to ensure that Nouveau is disabled.

RHEL 6/CentOS 6

Install CUDA using the following command:

$ sudo yum install cuda-toolkit-8-0 \
    xorg-x11-drv-nvidia-libs nvidia-kmod

If the system is using a non-NVIDIA GPU to render the display, remove the file at /etc/X11/xorg.conf.
Follow the instructions here to ensure that Nouveau is disabled.

Fedora

Install CUDA using the following command:

$ sudo dnf install cuda-toolkit-8-0 \
    xorg-x11-drv-nvidia-cuda akmod-nvidia

Follow the instructions here to ensure that Nouveau is disabled.

OpenSUSE

Install CUDA using the following command:

$ sudo zypper install --no-recommends cuda-toolkit-8-0 \
    nvidia-computeG04 \
    nvidia-gfxG04-kmp-desktop

Follow the instructions here to ensure that Nouveau is disabled.

SLES

Install CUDA using the following command:

$ sudo zypper install --no-recommends cuda-toolkit-8-0 \
    nvidia-computeG04 \
    nvidia-gfxG04-kmp-default
Ubuntu

이 기능은 우분투에서 지원되지 않는다. 대신, 그 드라이버 패키지는 Bumblebee 프레임워크와 함께 있다. 그 프레임워크는 NVIDIA 드라이버를 사용하는 어플리케이션을 제어하기 바라는 사용자를 위해 솔루션을 제공하는 것이다. 자세한 것은 우분투의 Bumblebee wiki를 보라

시나리오2

디스플레이를 렌더링하기 위해 특정 GPU를 사용하기 Use a specific GPU for rendering the display

여러분의 xorg.conf 파일(/etc/X11/xorg.conf)에 Device 엔트리를 추가하거나 대체하라. 그 Device 엔트리는 다음과 닮아야 한다:

Section "Device"
    Identifier    "Device0"
    Driver        "driver_name"
    VendorName    "vendor_name"
    BusID         "bus_id"
EndSection

그 내용은 여러분이 경우에 따라 다르게 추가할 필요가 있다. 예를 들어, 만약 여러분이 두 개의 NVIDIA GPU를 갖고 있고 디스플레이를 위해 첫 번째 GPU를 사용하기 원한다면, 여러분은 "driver_name""nvidia"로, "vendor_name""NVIDIA Corporation"으로, "bus_id"GPU의 Bus ID로 대체해야 한다.
*Bus ID"PCI:00:02.0"와 닮을 것이고 lspci를 실행하여 찾을 수 있을 것이다.

시나리오3

패키지 매니저 인스톨 방법을 이용하여 특정 디렉토리에 CUDA를 설치하기 Install CUDA to a specific directory using the Package Manager installation method

RPM

The RPM packages don't support custom install locations through the package managers (Yum and Zypper), but it is possible to install the RPM packages to a custom location using rpm's --relocate parameter:

$ sudo rpm --install --relocate /usr/local/cuda-8.0=/new/toolkit package.rpm

You will need to install the packages in the correct dependency order; this task is normally taken care of by the package managers. For example, if package "foo" has a dependency on package "bar", you should install package "bar" first, and package "foo" second. You can check the dependencies of a RPM package as follows:

$ rpm -qRp package.rpm

Note that the driver packages cannot be relocated.

Deb

The Deb packages do not support custom install locations. It is however possible to extract the contents of the Deb packages and move the files to the desired install location. See the next scenario for more details one xtracting Deb packages.

시나리오4 : Extract the contents of the installers.

Runfile

The Runfile can be extracted into the standalone Toolkit, Samples and Driver Runfiles by using the --extract parameter. The Toolkit and Samples standalone Runfiles can be further extracted by running:

$ ./runfile.run --tar mxvf

The Driver Runfile can be extracted by running:

$ ./runfile.run -x
RPM

The RPM packages can be extracted by running:

$ rpm2cpio package.rpm | cpio -idmv
Deb

The Deb packages can be extracted by running:

$ dpkg-deb -x package.deb output_dir

시나리오5

특정 저장소에 대해 특정 아키텍쳐를 질의하기 위해 우분투의 apt 패키지 매니저를 수정하라 이것은 외부 아키텍쳐가 추가되어 저장소 메타-데이터가 업데이트될 때, "404 Not Found" 에러를 유발하는 원인이다. This is useful when a foreign architecture has been added, causing "404 Not Found" errors to appear when the repository meta-data is updated.

여러분이 특정 아키텍쳐로 제한하고자 하는 각 저장소는 그것의 sources.list 엔트리를 수정해야 한다.이것은 /etc/apt/sources.list 파일과 여러분이 /etc/apt/sources.list.d/ 디렉토리 밑으로 국한하고자 하는 저장소를 포함하는 파일들을 수정함으로써 이뤄진다. 일반적으로 /etc/apt/sources.list에 있는 엔트리들만 수정해도 충분하다.
아키텍쳐-제한 저장소 엔트리는 아래처럼 보일 것이다:

deb [arch=<arch1>,<arch2>] <url>

예를 들면, 만약 여러분이 amd64i386 아키텍쳐만으로 저장소를 제한하려고 한다면, 그것은 아래처럼 보여질 것이다:

deb [arch=amd64,i386] <url>

deb-src 저장소들을 제한한 필요는 없다. 이는 해당 저장소들이 아키텍쳐-지정 패키지를 제공하지 않기 때문이다. 자세한 내용은 sources.list manpage를 보라.

시나리오6

The nvidia.ko kernel module fails to load, saying some symbols are unknown. For example:

nvidia: Unknown symbol drm_open (err 0)

Check to see if there are any optionally installable modules that might provide these symbols which are not currently installed.

For the example of the drm_open symbol, check to see if there are any packages which provide drm_open and are not already installed. For instance, on Ubuntu 14.04, the linux-image-extra package provides the DRM kernel module (which provides drm_open). This package is optional even though the kernel headers reflect the availability of DRM regardless of whether this package is installed or not.

results matching ""

    No results matching ""