Installation of NVIDIA GPU Driver and CUDA Toolkit

1 篇文章 0 订阅

Installation of NVIDIA GPU Driver and CUDA Toolkit

Disable default driver

  1. modify /etc/modprobe.d/blacklist.conf by adding following commond at the end of the file:blacklist nouveau
  2. modify /etc/default/grub file by adding rdblacklist=nouveau nouveau.modeset=0

Install NVIDIA GPU Driver

  1. type ctrl+alt+F1 to tty and log in.
  2. shut down lightdm sudo service lightdm stop
  3. add source sudo add-apt-repository ppa:xorg-edgers/ppa,sudo apt-get update.
  4. install driver. Note that the version of the driver must be correspondent to the GPU card. One can find the correct version in NVIDIA official website. For example, my GPU is GTX970M, then I should use the following commend: sudo apt-get install nvidia-352 and sudo apt-get install nvidia-352-uvm
  5. reboot

Install CUDA Toolkit

  1. download CUDA 7.0 .run file from NVIDIA website. Note that the CUDA version should be correspendent to gcc version and driver version.
  2. change .run file mode by chmod +x *.run
  3. install CUDA by sudo ./*.run. Note to skip the installation of driver.
  4. add necessary environment path by PATH=/path/to/cuda/bin:$PATH and LD_LIBRARY_PATH=/path/to/cuda/lib64:$LD_IBRARY_PATH and export the paths. Alternatively, one can modify /etc/profile to set the environment paths. Add export PATH="/path/to/cuda/bin:$PATH" and in commond line type source /etc/profile
  5. verify the installation. Change directory to CUDA sample and make the samples. Run a sample sudo ./deviceQuery to verify the installation.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值