Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ace-gpu-1_installation_log [2017/03/24 20:24] – csteel | ace-gpu-1_installation_log [2024/03/26 13:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Base ===== | ===== Base ===== | ||
- | === Nvidia Purge === | ||
- | |||
- | Remove any existing Nvidia drivers | ||
- | |||
- | < | ||
- | / | ||
- | sudo apt-get purge nvidia-* | ||
- | / | ||
- | </ | ||
- | |||
- | == Add graphics driver PPA. == | ||
- | |||
- | < | ||
- | sudo add-apt-repository ppa: | ||
- | </ | ||
- | |||
- | == update sources == | ||
- | |||
- | < | ||
- | sudo apt update | ||
- | </ | ||
- | |||
- | == Launch Additional Drivers utility == | ||
- | |||
- | < | ||
- | (sudo) software-properties-gtk | ||
- | </ | ||
- | |||
- | - NVIDIA 367.44 (or closest to this). | ||
- | - Click **Apply Changes** button to automatically download and install the driver on the system. | ||
- | - Restart computer to make the new driver take effect and ensure it is working correctly. | ||
- | |||
- | ==== Troubleshooting ==== | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | == openGL == | ||
- | |||
- | </ | ||
- | supo apt-get install mesa-utils | ||
- | glxinfo | ||
- | glxgears | ||
- | </ | ||
===== NVIDIA Driver ===== | ===== NVIDIA Driver ===== | ||
Line 79: | Line 30: | ||
< | < | ||
- | 01:00.0 VGA compatible controller: NVIDIA Corporation Device | + | 01:00.0 VGA compatible controller: NVIDIA Corporation Device |
01:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1) | 01:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1) | ||
+ | 02:00.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1) | ||
+ | 02:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1) | ||
+ | 03:00.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1) | ||
+ | 03:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1) | ||
+ | |||
</ | </ | ||
Line 170: | Line 126: | ||
< | < | ||
- | In process | + | # set user PATH to include / |
+ | if [ -d "/ | ||
+ | PATH="/ | ||
+ | fi | ||
+ | |||
+ | # set user LD_LIBRARY_PATH to include / | ||
+ | if [ -d "/ | ||
+ | LD_LIBRARY_PATH="/ | ||
+ | |||
+ | |||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | < | ||
</ | </ | ||
+ | |||
+ | === GPU Accounting Setup and Configuration === | ||
+ | |||
+ | The CUDA nvidia-persistenced needs to be configured for the target OS's startup system. In the case of Ubuntu 16.04 this would be systemd. | ||
+ | |||
+ | == Confirm Driver Version == | ||
< | < | ||
+ | nvidia-smi | ||
</ | </ | ||
+ | |||
+ | Output example | ||
+ | |||
< | < | ||
+ | Wed Apr 26 14:20:40 2017 | ||
+ | +-----------------------------------------------------------------------------+ | ||
+ | | NVIDIA-SMI 375.39 | ||
+ | |-------------------------------+----------------------+----------------------+ | ||
+ | | GPU Name Persistence-M| Bus-Id | ||
+ | | Fan Temp Perf Pwr: | ||
+ | |===============================+======================+======================| | ||
+ | | | ||
+ | | 41% | ||
+ | +-------------------------------+----------------------+----------------------+ | ||
+ | |||
+ | +-----------------------------------------------------------------------------+ | ||
+ | | Processes: | ||
+ | | GPU | ||
+ | |=============================================================================| | ||
+ | | 0 1977 G / | ||
+ | | 0 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | +-----------------------------------------------------------------------------+ | ||
</ | </ | ||
+ | |||
+ | == Download and uncompress == | ||
+ | |||
+ | Download nvidia-persistenced version that matches your driver version (see output example above) | ||
+ | |||
< | < | ||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | wget ftp:// | ||
+ | tar xvjf nvidia-persistenced-375.39.tar.bz2 | ||
</ | </ | ||
+ | |||
+ | == Edit the nvidia-persistenced.conf.template == | ||
+ | |||
+ | = Confirm creation of the nvidia-persistenced user = | ||
+ | |||
< | < | ||
+ | sudo cat /etc/passwd | grep nvidia | ||
+ | </ | ||
+ | |||
+ | Output example: | ||
+ | |||
+ | < | ||
+ | nvidia-persistenced: | ||
+ | </ | ||
+ | |||
+ | == Edit the systemd template == | ||
+ | |||
+ | < | ||
+ | cd nvidia-persistenced-375.39/ | ||
+ | nano nvidia-persistenced.service.template | ||
+ | </ | ||
+ | |||
+ | Replace __USER__ with the nvidia-persistence users name `nvidia-persistenced` | ||
+ | |||
+ | == Run the installer == | ||
+ | |||
+ | < | ||
+ | cd ~/ | ||
+ | sudo ./ | ||
+ | </ | ||
+ | |||
+ | = Output example = | ||
+ | |||
+ | < | ||
+ | Checking for common requirements... | ||
+ | sed found in PATH? Yes | ||
+ | useradd found in PATH? Yes | ||
+ | userdel found in PATH? Yes | ||
+ | id found in PATH? Yes | ||
+ | Common installation/ | ||
+ | |||
+ | Creating sample System V script... done. | ||
+ | Creating sample systemd service file... done. | ||
+ | Creating sample Upstart service file... done. | ||
+ | |||
+ | Checking for systemd requirements... | ||
+ | / | ||
+ | / | ||
+ | systemctl found in PATH? Yes | ||
+ | systemd installation/ | ||
+ | |||
+ | Installation parameters: | ||
+ | User : nvidia-persistenced | ||
+ | Group : nvidia-persistenced | ||
+ | systemd service installation path : / | ||
+ | |||
+ | User ' | ||
+ | User ' | ||
+ | Stopping nvidia-persistenced.service... done. | ||
+ | Installing sample systemd service nvidia-persistenced.service... done. | ||
+ | Enabling nvidia-persistenced.service... done. | ||
+ | Starting nvidia-persistenced.service... done. | ||
+ | </ | ||
+ | |||
+ | == Check == | ||
+ | |||
+ | < | ||
+ | sudo service nvidia-persistenced status | ||
+ | </ | ||
+ | |||
+ | == Troubleshooting == | ||
+ | |||
+ | add " | ||