CIS 5650 - Setup instructions for your Linux PC
Setup your Linux Computer
Follow this guide to setup your personal Linux computer.
This guide assumes that you have root access to your computer.
- Install basic C/C++ compilation tools (gcc, g++, make etc.) installed. For Debian/Ubuntu, we recommend the
build-essential
package. - Install
git
using package manager. Examplesudo apt install git
on Debian/Ubuntu.- After installation, follow the First Time Git Setup Guide if this is the first time you are using Git.
- Install the latest version of CUDA. You can either use the downloaded version or your package manager. Install the NVIDIA Driver if it is newer than the installed version. Make sure you also install Nsight.
- Install Nsight Compute, Nsight Graphics, and Nsight Systems from https://developer.nvidia.com/nsight-tools-visual-studio-integration.
- Install CMake (
sudo apt install cmake
on Debian/Ubuntu). - Install glfw and glew (
apt install libglfw3-dev libglew-dev
on Debian/Ubuntu). - (Recommended) Nsight is a debugging and profiling tool shipped with CUDA. We recommend adding the CUDA executables to your
PATH
usingexport PATH=/usr/local/cuda/bin/:${PATH}
. Note that using theexport
command is a temporary change through the life of the terminal. For permanent change, add it to your shell configuration file, e.g.~/.bashrc
on Ubuntu). You can run then run Nsight by typingnsight
in your terminal.
Enable GPU Performance Counters
When running profiling, the Nsight tools need access to systems level counters to trace the performance. This can be done using running the app as root using sudo
, or setting the CAP_SYS_ADMIN
capability set. For detailed instructions, follow NVIDIA Documentation.