1
edit
Changes
→Part 3: Getting Ubuntu ready for CUDA Development
'''gedit /etc/profile'''
And put the following in the bash profile (the bottom of the file is fine):
export CUDA_HOME=/usr/local/cuda-5.0
'''Note''': If you installed an experimental driver from Ubuntu, you'll need to add it's path to LD_LIBRARY_PATH for libcuda.so. Look for the driver folder under /usr/lib/nvidia-experimental-XXX, where XXX is the driver number (e.g. 310). Thats the path you want. Then the export LD_LIBRARY_PATH line in the bash_profile profile file becomes
export LD_LIBRARY_PATH=${CUDA_HOME}/lib:/usr/lib/nvidia-experimental-310