#Cuda 8.0 Settings
export CUDA_HOME=/usr/local/cuda-8.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
#Cuda 9.1 Settings
export CUDA_HOME=/usr/local/cuda-9.1
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
#Cuda 9.2 Settings
export CUDA_HOME=/usr/local/cuda-9.2
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
PATH=${CUDA_HOME}/bin:${PATH}
$ LD_LIBRARY_PATH=. ./programtest #direct execution
$ echo $LD_LIBRARY_PATH
/usr/local/cuda-8.0/lib64
$ ls /etc/ld.so.conf.d
cuda-8-0.conf opencv.conf
fakeroot-x86_64-linux-gnu.conf x86_64-linux-gnu.conf
glew.conf x86_64-linux-gnu_EGL.conf
i386-linux-gnu.conf x86_64-linux-gnu_GL.conf
libc.conf zz_i386-biarch-compat.conf
$ldconfig -p #list libraries
$sudo ldconfig #update paths
No comments:
Post a Comment