CentOS 8
Sponsored Link

NVIDIA ドライバー インストール2019/10/09

 
システムに NVIDIA 社のグラフィックカードを搭載している場合、NVIDIA 社提供のグラフィックドライバーをインストールすることで、よりよいパフォーマンスを得ることができます。
[1]
[2] デフォルトでロードされている [nouveau] ドライバーを無効化しておきます。
[root@dlp ~]#
lsmod | grep nouveau

nouveau              2187264  1
video                  45056  1 nouveau
mxm_wmi                16384  1 nouveau
wmi                    32768  2 mxm_wmi,nouveau
i2c_algo_bit           16384  1 nouveau
drm_kms_helper        200704  1 nouveau
ttm                   131072  1 nouveau
drm                   520192  4 drm_kms_helper,ttm,nouveau

[root@dlp ~]#
vi /etc/modprobe.d/blacklist-nouveau.conf
# 最終行に追記 (ファイルがない場合は新規作成)

blacklist nouveau
options nouveau modeset=0
[root@dlp ~]#
dracut --force
[root@dlp ~]#
reboot
[3] 必要なパッケージをインストールしておきます。
[root@dlp ~]#
dnf -y install kernel-devel kernel-headers elfutils-libelf-devel zlib-devel gcc make
[4] NVIDIA サイトより、コンピューターに搭載されているグラフィックカード用のドライバーをダウンロードして、インストールします。
⇒ https://www.nvidia.com/Download/index.aspx?lang=en
# 搭載カードを調べるには以下

[root@dlp ~]#
lspci | grep VGA

05:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
# ダウンロードしたファイルを実行してインストール

[root@dlp ~]#
bash NVIDIA-Linux-x86_64-430.50.run

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 430.50

  WARNING: nvidia-installer was forced to guess the X library path
           '/usr/lib64' and X module path '/usr/lib64/xorg/modules'; these
           paths were not queryable from the system.  If X fails to find the
           NVIDIA X driver module, please install the `pkg-config` utility and
           the X.Org SDK/development package for your distribution and
           reinstall the driver.

.....
.....

  Install NVIDIA's 32-bit compatibility libraries?
  # 32ビット互換ライブラリをインストールするか選択 (当例では [Yes] で進む)
     Yes                                    No


  Would you like to run the nvidia-xconfig utility to automatically update
  your X configuration file so that the NVIDIA X driver will be used when you
  restart X?  Any pre-existing X configuration file will be backed up.
  # nvidia-xconfig utility 起動時に X 設定ファイルを自動更新するか否か (当例では [No] で進む)
     Yes                                    No


 Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64
  (version: 430.50) is now complete.  Please update your xorg.conf file as
  appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for
  details.

                                       OK

# グラフィックカードの状態確認

[root@dlp ~]#
nvidia-smi

Wed Oct  9 23:27:02 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.50       Driver Version: 430.50       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 00000000:05:00.0 Off |                  N/A |
| 27%   37C    P5    12W / 180W |      0MiB /  8119MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
関連コンテンツ