How to Install and Uninstall nsight-compute on Ubuntu 22.04

Updated: September 16, 2022

NVIDIA Nsight Compute is an interactive kernel profiler for CUDA applications. It provides detailed performance metrics and API debugging via a user interface and command line tool. In addition, its baseline feature allows users to compare results within the tool. Nsight Compute provides a customizable and data-driven user interface and metric collection and can be extended with analysis scripts for post-processing results. In this guide, I will show you ways to install nsight-compute Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install nsight-compute on Ubuntu 22.04

Install nsight-compute Ubuntu 22.04

nsight-compute is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install nsight-compute using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install nsight-compute on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install nsight-compute Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt install nsight-compute

Install nsight-compute using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

After installing aptitude, you can now install nsight-compute by following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install nsight-compute Ubuntu by executing this command in the terminal.

sudo aptitude -y install nsight-compute

Uninstall nsight-compute on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just nsight-compute.

You can uninstall nsight-compute Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove nsight-compute

If you want to uninstall nsight-compute and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nsight-compute

Summary

In this guide, I showed you ways to install nsight-compute on Ubuntu 22.04 and ways to uninstall nsight-compute too. Please contact me if you require any assistance. I’d be delighted to respond.