sg <

TensorFlowインストール準備 – NVDIAドライバのインストール

TensorFlow実行環境

ハードウェア

  • CPU Intel Core i7 8700K BOX
  • MEM DDR4-2666  DIMM 16GB x 2
  • M/B GIGABYTE Z370 HD3
  • SSD Intel SSD 545s 512GB SSDSC2KW512G8X1
  • HDD SEAGATE ST4000DM004 4TB
  • G/B 玄人志向 GF-GTX1080Ti-E11GB/OC/DF

ソフトウェア

  • OS Ubuntu 18.04.1 LTS

自動インストールされたドライバの無効化

自動的にインストールされたnouveauが動いているか確認して、存在していればそれを止める。

~$ lsmod | grep -i nouveau
nouveau              1716224  2
mxm_wmi                16384  1 nouveau
ttm                   106496  1 nouveau
i2c_algo_bit           16384  2 nouveau,i915
drm_kms_helper        172032  2 nouveau,i915
drm                   401408  19 nouveau,i915,ttm,drm_kms_helper
wmi                    24576  3 wmi_bmof,mxm_wmi,nouveau
video                  45056  2 nouveau,i915

nouveauを無効化するために、/etc/modprobe.d/ 配下にblacklist-nouveau.confを作成する。

~$ vi /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0

カーネルモジュールの再読込施行

~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.15.0-36-generic

NVDIAドライバの取得

一旦、Ubuntuを再起動する。

~$ sudo add-apt-repository ppa:graphics-drivers/ppa
Fresh drivers from upstream, currently shipping Nvidia.

## Current Status

Current short-lived branch release: `nvidia-396` (396.24)
Dropped support for Fermi series (https://nvidia.custhelp.com/app/answers/detail/a_id/4656)

Current long-lived branch release: `nvidia-390` (390.48)
Old long-lived branch release: `nvidia-384` (384.130)

For G8x, G9x and GT2xx GPUs use `nvidia-340` (340.106)
For NV4x and G7x GPUs use `nvidia-304` (304.137) End-Of-Life!

Support timeframes for Unix legacy GPU releases:
https://nvidia.custhelp.com/app/answers/detail/a_id/3142

## What we're working on right now:

- Normal driver updates
- Help Wanted: Mesa Updates for Intel/AMD users, ping us if you want to help do this work, we're shorthanded.

## WARNINGS:

This PPA is currently in testing, you should be experienced with packaging before you dive in here:

Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/

### How you can help:

## Install PTS and benchmark your gear:

sudo apt-get install phoronix-test-suite

Run the benchmark:

phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley

and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads

## Share your results with the community:

Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!

## Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA:

http://www.ubuntu.com/download/desktop/contribute
詳しい情報: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
[ENTER] を押すと続行します。Ctrl-c で追加をキャンセルできます。
ヒット:1 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
取得:2 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]  
取得:3 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
取得:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease [21.3 kB]
取得:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]   
取得:6 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [173 kB]
取得:7 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [40.8 kB]
取得:8 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [81.8 kB]
取得:9 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [183 kB]
取得:10 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main i386 Packages [14.2 kB]
取得:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
取得:12 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [6,848 B]
取得:13 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [9,088 B]
取得:14 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [178 kB]
取得:15 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [11.3 kB]
取得:16 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 Packages [16.2 kB]
取得:17 http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [290 kB]
取得:18 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main Translation-en [4,992 B]
取得:19 http://jp.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
取得:20 http://jp.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,100 B]
1,285 kB を 6秒 で取得しました (222 kB/s)                                     
パッケージリストを読み込んでいます... 完了

NVDIAドライバのインストール

~$ sudo apt-get update
ヒット:1 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
ヒット:2 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease          
ヒット:3 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease        
ヒット:4 http://security.ubuntu.com/ubuntu bionic-security InRelease           
取得:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease [21.3 kB]
取得:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main amd64 Packages [16.5 kB]
取得:7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main i386 Packages [14.5 kB]
取得:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic/main Translation-en [5,196 B]
57.5 kB を 3秒 で取得しました (19.5 kB/s)                      
パッケージリストを読み込んでいます... 完了

~$ sudo apt-get install nvidia-384

長いので省略

インストールに成功したかどうか確認する。

~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

~$ sudo nvidia-smi
Mon Oct 15 00:04:21 2018       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87                 Driver Version: 390.87                    |
|-------------------------------+----------------------+----------------------+
| 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 108...  Off  | 00000000:01:00.0 Off |                  N/A |
|  0%   30C    P5    27W / 250W |      0MiB / 11178MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

ナビゲーション

次の記事へ:TensorFlowインストール準備 – CUDA Toolkit

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください