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-essentialpackage. - Install
gitusing package manager. Examplesudo apt install giton 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 cmakeon Debian/Ubuntu). - Install glfw and glew (
apt install libglfw3-dev libglew-devon Debian/Ubuntu). - (Recommended) Nsight is a debugging and profiling tool shipped with CUDA. We recommend adding the CUDA executables to your
PATHusingexport PATH=/usr/local/cuda/bin/:${PATH}. Note that using theexportcommand is a temporary change through the life of the terminal. For permanent change, add it to your shell configuration file, e.g.~/.bashrcon Ubuntu). You can run then run Nsight by typingnsightin 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.