so making a file /etc/profile.d/cuda.sh
would make the variables for all usersexport LD_LIBRARY_PATH=/usr/local/cudnn/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}export PATH=/usr/local/cuda/bin:${PATH}export CUDA_HOME=/usr/local/cuda
reference:http://serverfault.com/questions/491585/is-there-a-global-bash-profile-for-all-users-on-a-system
沒有留言:
張貼留言