CUDA is a programming architecture developed by NVIDIA to allow General Purpose Computing on GPUs or "GPGPU".
CUDA Software on Linux
The CUDA infrastructure comes in two parts.
First is the driver which installs libraries in /usr/lib.
Second is the CUDA toolkit. The currently supported CUDA toolkit is stored under /usr/local. Please change the "common.mk" settings in your CUDA SDK to set the CUDA root directory to "/usr/local"
You will also need to put the CUDA libraries in your LD_LIBRARY_PATH.
- If you are using a 64-bit machine this will be /usr/local/lib64.
- If you are using a 32-bit machine this will be /usr/local/lib.
Older versions of the CUDA toolkit are stored in /usr/local/stow/cudatoolkit_X.Y where X.Y is the version number. So, CUDA 2.2 is stored in /usr/local/stow/cudatoolkit2.2