cuda10.0版本安装教程

因为 cuda10.0基本是稳定版,并且对应torch1.0,支持多GPU的能力也较强/
1 下载cuda10.0.0

wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux

2 添加执行权限

sudo chmod +x cuda_10.0.130_410.48_linux.run

 3 安装确认及路径

4 cuda环境变量配置  ~/.bashrc

export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:"$LD_LIBRARY_PATH:/usr/loacl/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
export PATH=/usr/local/cuda/bin:$PATH

 

文末:切换cuad10.1,打开/usr/local

$ sudo rm -rf cuda
$ sudo ln -s /usr/local/cuda-10.1/ /usr/local/cuda

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Apr_24_19:10:27_PDT_2019
Cuda compilation tools, release 10.1, V10.1.168

 

你可能感兴趣的:(工具类)