Ubuntu18.04安装CUDA10、CUDNN
我的系统是Ubuntu18.04、64位,选择CUDA10版本如下: STEP1: CUDA官网 选择适合自己系统的版本下载。 STEP2:安装CUDA 在命令行中键入: sudo sh cuda_10.0.130_410.48_linux.run 如果驱动是独立安装了,一定要选择不安装驱动! 选择如下: 会提示: ***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. To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file: sudo <CudaInstaller>.run -silent -driver 这是因为我们在安装CUDA的时候没有选择安装驱动,提示需要安装驱动,忽略就行。 STEP3:添加环境变量: export CUDA_HOME=/usr/local/cuda export PATH