Install CUDA 10.0.130 on Ubuntu 18.04

Install CUDA 10.0.130 on Ubuntu 18.04

  1. Install CUDA "dependencies"
    There are a few dependencies that are good to install first since they don’t always get pulled along with a CUDA install from the “deb” file.
    You will certainly need the build-tools and dkms,
sudo apt-get install build-essential dkms
sudo apt-get install freeglut3 freeglut3-dev libxi-dev libxmu-dev
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install gcc

Those packages will get the needed GL, GLU, Xi, Xmu libs and several other libraries that will be installed as dependencies from those.
Besides, you would better install Correct Kernel Headers.
CUDA 10 requires gcc-7

  1. Get the CUDA 10 “deb” file to set up the package repository

Download deb file

ubuntu18.04 ‘deb’ file download link

Installation Instructions:
`sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
  1. Setup your CUDA environment

The PATH variable needs to include /usr/local/cuda-10.0/bin To add this path to the PATH variable:

$ export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} 

In addition, when using the runfile installation method, the LD_LIBRARY_PATH variable needs to contain /usr/local/cuda-10.0/lib64 on a 64-bit system, or /usr/local/ cuda-10.0/lib on a 32-bit system
To change the environment variables for 64-bit operating systems

 export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64\                        ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 

To change the environment variables for 32-bit operating systems:

export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib\                         ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 
  1. Checking nvidia-smi or nvcc-V.
  2. Official installation introduction
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值