ubuntu14.04+cuda7.0环境变量配置

本文详细介绍了如何在运行Ubuntu 14.04系统的计算机上安装CUDA 7.0,包括验证环境、下载镜像、关闭Xserver、安装过程、配置环境变量等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境:Ubuntu 14.04(台式机)+Cuda7.0


1. 判断安装环境:

The setup of CUDA development tools on a system running the appropriate version of Linux consists of a few simple steps:

  • Verify the system has a CUDA-capable GPU.
  • Verify the system has a supported version of Linux.
  • Verify the system has gcc installed.
官方配置手册:http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html

2. 下载镜像:

https://developer.nvidia.com/cuda-downloads

下run好了

3.关闭X server

ctr+alt+F1进入文本编辑界面

sudo /etc/init.d/lightdm stop

进入到安装目录之下(.run所在目录)

  1. chmod +x cuda_7.0.28_linux.run  
  2. sudo ./cuda_7.0.28_linux.run

一路确定,yes输过去

Driver:   Installed
    Toolkit:  Installed In /Usr/Local/Cuda-5.0
    Samples:  Installed


sudo /etc/init.d/lightdm start

ctr+alt+F7回到图形界面


8. 环境变量,Path配置:

$sudo gedit /etc/profile或~/.bashrc

  1. export PATH=$PATH:/usr/local/cuda-7.0/bin  
  2. export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:/lib  

使之生效:

source /etc/profile(对应profile)或sudo ldconfig(对应bashrc)


成功


usr/local/cuda-7.0/libnsight 下的nsight就是集成开发环境


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值