Tutorial for CUDA 7.5 Installation Based on CentOS 7

本教程将指导您在CentOS 7上安装CUDA 7.5工具包,包括NVIDIA驱动、环境变量配置、Theano库的安装和测试GPU运行。
摘要由CSDN通过智能技术生成

Tutorial for CUDA 7.5 Installation Based on CentOS 7

This turorial is written in English. If you wish a PDF rather than it on web. Please refer to my CUDA-Theano-Installation.

1. Prepare CentOS 7 distribution, with Python 2.7.* already installed

Internet connection available is also required.

2. Install NVIDIA graphic driver for Linux system

NVIDIA graphic driver for Linux system will be installed individually before the CUDA installation, so we download the driver according to its actual type and proper operating system (Linux, 64bit / 32bit).

Taking GT 640 as an instance, we download NVIDIA-Linux-x86_64-361.42.run. Open a terminal (better as root),

# uname -r
3.10.0-327.el7.x86_64 ; the distribution varies from person to person, so remember it 
# yum install gcc kernel-devel kernel-headers

Add two lines in both files as follows,

# vim /etc/modprobe.d/blacklist.conf
# vim /lib/modprobe.d/dist-blacklist.conf
...
blacklist nouveau
options nouveau modeset=0

Remake initramfs image,

# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
# dracut /boot/initramfs-$(uname -r).img $(un
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值