export PATH=/usr/local/cuda-5.0/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 此外,还需要配置CUDA的库路径,以确保编译器能够找到CUDA库文件。可以使用如下命令进行配置:export CUDA_HOME=/usr/local/cuda-5.0 ...
Enter Toolkit Location [ default is /usr/local/cuda-10.0 ]: /home/thy/cuda-10.0/ Do you want to install a symbolic link at /usr/local/cuda? (y)es/(n)o/(q)uit: n Install the CUDA 10.0 Samples? (y)es/(n)o/(q)uit: /home/thy/cuda-10.0/samples/ Install the CUDA 10.0 Samples?