nvprof command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
nvprof: command not found
or when using sudo you get the following error message
sudo: nvprof: command not found
Solutions to nvprof: command not found
How To Fix nvprof: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu nvprof is provided by nvidia-profiler package.
nvidia-profiler is:
The Compute Unified Device Architecture (CUDA) enables NVIDIA graphics processing units (GPUs) to be used for massively parallel general purpose computation.
OpenCL (Open Computing Language) is a multi-vendor open standard for general-purpose parallel programming of heterogeneous systems that include CPUs, GPUs and other processors.
This package contains the nvprof profiler.
To fix this problem, we can install more using the command below.
sudo apt-get -y install nvidia-profiler
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install nvidia-profiler.
sudo apt -y install nvidia-profiler
Or if you have aptitude installed you can use the following command.
sudo aptitude install nvidia-profiler
Summary
In this tutorial we learn how to fix nvprof command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.