Skip to main content
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 ...
Martin Thoma's user avatar
  • 19.5k
51 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:
Franck Dernoncourt's user avatar
50 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 ...
Thomas Venturini's user avatar
46 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....
GPrathap's user avatar
  • 683
34 votes

How to get the GPU info?

For Nvidia cards, type nvidia-smi -q
Quanlong's user avatar
  • 491
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 ...
singrium's user avatar
  • 6,980
29 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 ...
Matt Popovich's user avatar
24 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 ...
Hector Manuel's user avatar
23 votes
Accepted

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]

$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) && curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add - && curl -s -L https://nvidia....
Mona Jalal's user avatar
  • 4,595
21 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 to launch: sudo glances It also ...
Franck Dernoncourt's user avatar
21 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 ...
WinEunuuchs2Unix's user avatar
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 ...
Dennis Mungai's user avatar
20 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 ...
Tshilidzi Mudau's user avatar
14 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 ...
HaoZeke's user avatar
  • 429
13 votes

How to measure GPU usage?

No one mentioned the nvtop ? A nice tool similar to the htop we used to. Installation is easy, simply do: $ sudo apt install nvtop or $ snap install nvtop The version from snap is usually a lot newer....
Luke Lee's user avatar
  • 251
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,...
Íhor Mé's user avatar
  • 282
13 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 ...
tuzhucheng's user avatar
13 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 ...
karel's user avatar
  • 116k
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-...
Jonny's user avatar
  • 1,149
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-...
Ahmet Erkan ÇELİK's user avatar
13 votes

Problem while installing cuda toolkit in ubuntu 18.04

I think the issue is the CUDA driver version. It looks like the installer tries to install the newest version 455.23.05 and the installation actually fails there. I've solved it by first downloading ...
Roman Prytkov's user avatar
12 votes

"Module nvidia is in use" but there are no processes running on the GPU

On Ubuntu 20.04, I've been able to fully unload and reload the NVIDIA modules with the following commands (performed via SSH or a text-only tty). sudo service gdm3 stop sudo rmmod nvidia_uvm sudo ...
merlinND's user avatar
  • 221
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/...
Benjamin Hecht's user avatar
12 votes

Prevent /usr/lib/xorg/Xorg from using GPU Memory in Ubuntu 20.04 Server

I had the same issue. Many of the suggestions were saying to edit /etc/X11/xorg.conf which doesn't exist for me on Ubuntu 20.04. I needed to keep X11 because I occasionally use X2go or X11 over SSH. I ...
robmsmt's user avatar
  • 441
11 votes

How to measure GPU usage?

I just found this command: nvidia-smi --query-gpu=utilization.gpu --format=csv --loop=1 Here is a demo:
singrium's user avatar
  • 6,980
11 votes

How to find out which NVIDIA GPU I have

You can run nvidia-smi -L to list all the NVIDIA GPUs in the system. Tested on Ubuntu 18.04 with CUDA 11.3 .
Serge Rogatch's user avatar
11 votes

Does Ubuntu for windows have GPU support?

Not yet, though it is the most-requested feature on our UserVoice ;)
Rich Turner's user avatar
  • 1,976
11 votes
Accepted

How can I run glmark2 on the dedicated GPU?

Launch the benchmark using the dGPU with the DRI_PRIME=1 option: DRI_PRIME=1 glmark2 Edit : This answer is from mid 2018 when Xorg was the default session. This means the solution is valid if the ...
cl-netbox's user avatar
  • 31.2k
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.
kmario23's user avatar
  • 1,019
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 -...
Elder Geek's user avatar
  • 36.1k

Only top scored, non community-wiki answers of a minimum length are eligible