151
votes
Accepted
How can I install CuDNN on Ubuntu 16.04?
Step 0: Install cuda from the standard repositories. (See How can I install CUDA on Ubuntu 16.04?)
Step 1: Register an nvidia developer account and download cudnn here (about 80 MB)
Step 2: Check ...
- 18.1k
63
votes
How to get the GPU info?
Because you specified a command like cat for CPU's this is therefore the equivalent for GPU's. Specifically for Nvidia cards. It requires no software except the Nvidia device driver to be loaded.
...
- 2,459
45
votes
How to measure GPU usage?
You can use gpustat, which is a simple command-line script (wrapper for nvidia-smi) for querying and monitoring GPU status:
- 3,260
45
votes
How can I install CuDNN on Ubuntu 16.04?
From 5.1 onwards you can't install according to what @Martin mentioned.
Download libcudnn6_6.0.21-1+cuda8.0_amd64.deb, libcudnn6-dev_6.0.21-1+cuda8.0_amd64.deb, libcudnn6-doc_6.0.21-1+cuda8.0_amd64....
- 673
40
votes
How to measure GPU usage?
For Intel:
Install intel-gpu-tools (its likely that they are installed already)
sudo apt-get install intel-gpu-tools
Start the top like utility with
sudo intel_gpu_top
Check your stats and then ...
- 649
36
votes
How to measure GPU usage?
Nvidia: to continuously update the output of nvidia-smi, you can use nvidia-smi --loop=1 (refresh interval of 1 second) or nvidia-smi --loop-ms=1000 (refresh interval of 1000 milliseconds).
-l SEC,...
- 3,260
31
votes
30
votes
When is CUDA gonna be released for Ubuntu 20.04?
For Cuda only, you can refer to @meetnick's answer.
As per June, 16th, 2020, I managed to install CUDA 10.1 and cuDNN 7.6.5 on Ubuntu 20.04 and they work perfectly with Tensorflow 2.2.0
Here are the ...
- 6,184
26
votes
Problem while installing cuda toolkit in ubuntu 18.04
I just ran into this issue and solved it by running the following commands:
sudo apt clean
sudo apt update
sudo apt purge nvidia-*
sudo apt autoremove
sudo apt install -y cuda
Major thanks to this ...
- 421
24
votes
How to get the GPU info?
clinfo
sudo apt-get install clinfo
clinfo
is the analogue of glxinfo but for OpenCL, my GPU setup is described at: https://stackoverflow.com/questions/7542808/how-to-compile-opencl-on-ubuntu/33483311#...
23
votes
Accepted
How do I find version of Intel graphics card drivers installed?
You can view all your video adapters with the lspci command
lspci -k | grep -EA3 'VGA|3D|Display'
| | | | | \- Only VGA is not good enough,
| | | | | because ...
- 379
21
votes
How to use GPU acceleration in FFmpeg with AMD Radeon?
I'll provide instructions for both Windows and Linux, as you've not indicated what platform you're on. Use these instructions that are applicable to your case.
If you're on Windows, you can access ...
- 530
18
votes
How to measure GPU usage?
I use the following command:
nvidia-smi -l 2
and it gives me updates every 2 seconds.
Or :
watch -n0.1 "nvidia-settings -q GPUUtilization -q useddedicatedgpumemory"
And on AMD, use:
aticonfig ...
- 4,123
18
votes
How to measure GPU usage?
You can use the monitoring program glances with its GPU monitoring plug-in:
open source
to install: sudo apt-get install -y python-pip; sudo pip install glances[gpu]
to launch: sudo glances
It ...
- 3,260
16
votes
How to measure GPU usage?
Conky
I like to use conky as a real-time monitor for both CPU and GPU. Installation is straightforward:
sudo apt install conky
Intel i7-6700HQ iGPU HD 530
In this instance I've booted using the ...
- 97.8k
14
votes
Accepted
How to know the manufacturer of a graphic card?
You can run lspci -knn | grep VGA -A1 and see the manufacturer.
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF116 [GeForce GTX 550 Ti] [10de:1244] (rev a1)
Subsystem: Gigabyte ...
- 87.5k
13
votes
Accepted
Reason to keep a GPU in a computer that is running Ubuntu Server
Graphics cards help with:
CUDA/OpenCL style workloads (eg bitcoin mining)
3D rendering. You might be rendering stuff on demand.
Most cards can help with video decoding but this applies to many IGPs ...
Oli♦
- 287k
13
votes
Accepted
Ubuntu 14.04: nvidia drivers for GeForce GTX 960M
You did all wrong (almost). Run
sudo apt-get purge nvidia*
sudo apt-get purge bumblebee* primus
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 ...
- 87.5k
13
votes
How can I install CuDNN on Ubuntu 16.04?
Register on NVidia's website. It may take a day, or two before they'll get your account approved. At least that used to be the case back when I registered.
Download and Install latest CUDA from NVidia,...
- 282
13
votes
Accepted
The easy way: Install Nvidia drivers, CUDA, CUDNN and Tensorflow GPU on Ubuntu 18.04
I just installed Tensorflow GPU on Ubuntu 18.04. There are a lot instructions for it, however I think the fastest and easiest way is usually not used and I want to share it:
NVIDIA DRIVER:
ubuntu-...
- 1,069
13
votes
When is CUDA gonna be released for Ubuntu 20.04?
Ubuntu 20.04 LTS and CUDA 11.1 setup:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-...
12
votes
When is CUDA gonna be released for Ubuntu 20.04?
NVIDIA Cuda 11 Toolkit for Ubuntu 20.04 is finally released.
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/...
- 121
11
votes
How to get the GPU info?
I do believe the best option for this is neofetch.
# Get neofetch
sudo add-apt-repository ppa:dawidd0811/neofetch
sudo apt update
sudo apt install neofetch
# Run neofetch
neofetch
This gives an ...
- 389
11
votes
How to get number of gpu cards I have from a command line?
This command gets the number of GPUs directly, assuming you have nvidia-smi.
nvidia-smi --query-gpu=name --format=csv,noheader | wc -l
It prints the names of the GPUs, one per line, and then counts ...
- 111
11
votes
Does Ubuntu for windows have GPU support?
Not yet, though it is the most-requested feature on our UserVoice ;)
- 1,976
11
votes
Accepted
How can I get the manufacturer of GPU via command line in Ubuntu?
To show the manufacturer of the GPU and other verbose information about the GPU, open the terminal and type:
lspci -vnn | grep VGA -A 12
The -vnn options are:
-v – verbose ...
- 108k
10
votes
How to get the GPU info?
If you're looking for only the names of the video cards on the machine, then simply use:
$ nvidia-smi --list-gpus
For some newer GPUs, this also lists the memory of each device.
- 989
10
votes
How to get the GPU info?
This is really not that complex For model and memory, here's a 1 liner that works for every video card I've tested it on regardless of manufacturer (Intel, AMD, NVIDIA):
GPU=$(lspci | grep VGA | cut -...
- 35.1k
10
votes
Accepted
(How) can I enable automatic switching between Intel and NVIDIA GPU?
Unfortunately as of today automatically switching between the intel and NVIDIA graphics is still not supported on Linux based operating systems. There is some progress to be seen in GNOME 3.22, where ...
- 30.6k
10
votes
How many GPUs in my machine?
Terminal way
Type this:
lspci|grep 'VGA\|Display'
and you'll see something similar like this:
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo (rev c9)
You can ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
gpu × 790nvidia × 332
drivers × 211
graphics × 121
amd-graphics × 86
gpu-driver × 67
cuda × 64
20.04 × 49
16.04 × 44
14.04 × 39
intel-graphics × 37
18.04 × 36
boot × 34
radeon × 29
amdgpu × 28
cpu × 26
xorg × 24
12.04 × 20
virtualization × 20
hybrid-graphics × 19
games × 15
dual-boot × 14
performance × 14
nvidia-optimus × 14
temperature × 14