CUDA is a technology by NVIDIA to accelerate scientific computations by the help of GPUs. Unfortunately, Debian isn’t supported officially yet. The toolkit for Ubuntu should come closest to it. First, the toolkit has to be installed, e.g. to $HOME/share/cuda, and then the SDK, e.g. to $HOME/share/NVIDIA_CUDA_SDK. These two paths shall be referred to as $CUDA_PATH and $SDK_PATH in the following. GCC and g++ have to be downgraded to version 4.1 (from ‘etch’), as 4.2 (from ‘lenny’) doesn’t work with CUDA yet.
Like described in $SDK_PATH/ReleaseNotes.html, $CUDA_PATH/bin has to be in the $PATH and $CUDA_PATH/lib in the $LD_LIBRARY_PATH. Unfortunately, this isn’t enough for Debian to successfully compile the examples (via cd $SDK_PATH && make): The $CUDA_INSTALL_PATH in line 38 of the Makefile $SDK_PATH/common/common.mk has to be corrected to the $CUDA_PATH.
To compile the GLUT code, the development package freeglut3-dev has to be installed. With that it’s now possible to compile the examples; the binaries go into $SDK_PATH/bin/linux/release.