Open main menu

CDOT Wiki β

Changes

GPU610/DPS915 Ubuntu and CUDA Installation

25 bytes added, 23:30, 15 January 2013
Part 3: Getting Ubuntu ready for CUDA Development
We'll need to set environment variables so that the compiler can find all the necessary CUDA libraries when compiling. In a terminal, type
'''gedit ~/.bash_profileetc/profile'''
And put the following in the bash profile(the bottom of the file is fine):
export CUDA_HOME=/usr/local/cuda-5.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib
export PATH=${CUDA_HOME}/bin:${PATH}
export PATH
'''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 file becomes
1
edit