Installing the CUDA SDK Tool Chain
Before you can debug a CUDA program, you must download and install the CUDA SDK software from NVIDIA using the following steps:
-
Visit the NVIDIA CUDA Zone download page:
-
Select Linux as your operating system
-
Download and install the CUDA SDK Toolkit for your Linux distribution (64-bit)
By default, the CUDA SDK Toolkit is installed under /usr/local/cuda/. The nvcc compiler driver is installed in /usr/local/cuda/bin, and the CUDA 64-bit runtime libraries are installed in /usr/local/cuda/lib64.
You may wish to:
-
Add
/usr/local/cuda/binto yourPATHenvironment variable. -
Add
/usr/local/cuda/lib64to yourLD_LIBRARY_PATHenvironment variable.