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:
![*](p4-bullet.jpg)
Visit the NVIDIA CUDA Zone download page:
![*](p4-bullet.jpg)
Select Linux as your operating system
![*](p4-bullet.jpg)
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:
![*](p4-bullet.jpg)
Add
/usr/local/cuda/bin to your
PATH environment variable.
![*](p4-bullet.jpg)
Add
/usr/local/cuda/lib64 to your
LD_LIBRARY_PATH environment variable.