cuda安装
会提示:
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 10.0 functionality to work.忽略就行。
在主目录下的~/.bashrc文件添加如下路径
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64 export PATH=$PATH:/usr/local/cuda-10.0/bin export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.0
用su直接切换到root,再执行 source ~/.bashrc
cd /usr/local/cuda/samples/1_Utilities/deviceQuery sudo make ./deviceQuery
result为pass则为成功。