---------------------------------------------------------------------------------------------------------------------------------- ## Cuda-10.1 1. Download https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.1_20191031/cudnn-10.1-linux-x64-v7.6.5.32.tgz 2. Install cuda bash cuda_10.1.105_418.39_linux.run accept x CUDA Installer x x - [X] Driver x x [X] 418.39 x x + [X] CUDA Toolkit 10.1 x x [ ] CUDA Samples 10.1 x x [ ] CUDA Demo Suite 10.1 x x [ ] CUDA Documentation 10.1 x x Install x x Options 3. Install cudnn tar xf cudnn-10.1-linux-x64-v7.6.5.32.tgz cp -r cuda/include/cudnn.h /usr/local/cuda-10.1/include/ cp -r cuda/lib64/lib* /usr/local/cuda-10.1/lib64/ ls -l /usr/local/cuda-10.1/lib64/libcudnn* 4. Set env export CUDA_HOME=/usr/local/cuda-10.1 export PATH=${CUDA_HOME}/bin:$PATH export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/extras/CUPTI/lib64:$LD_LIBRARY_PATH ----------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------- 问题汇总: 1、ubuntu配置参考: https://tools.mindspore.cn/scripts/sysconfig/ubuntu/install_sysconfig.sh 2、安装必要程序 apt-get install gcc g++ make 3、安装依赖包 apt install -y freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev 解决问题: Missing recommended library: libGLU.so ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so 解决问题: Missing recommended library: libGL.so -----------------------------------------------------------------------------------------------------------------------------------