您的位置:首页 > 运维架构 > Linux

Installing CUDA Toolkit 7.5 on Ubuntu 14.04 Linux

2016-08-01 16:47 471 查看
http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu

The following explains how to install CUDA Toolkit 7.5 on 64-bit Ubuntu 14.04 Linux. I have tested it on a self-assembled desktop with NVIDIA GeForce GTX 550 Ti graphics card. The instruction assumes you have the necessary CUDA compatible hardware support.
Depending on your system configuration, your mileage may vary.


CUDA Repository

Retrieve the CUDA repository package for Ubuntu 14.04 from the CUDA download site and
install it in a terminal.

$ sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb 
$ sudo apt-get update


CUDA Toolkit

Then you can install the CUDA Toolkit using apt-get.

$ sudo apt-get install cuda

You should reboot the system afterwards and verify the driver installation with the nvidia-settings utility.


Environment Variables

As part of the CUDA environment, you should add the following in the .bashrc file of your home folder.

export CUDA_HOME=/usr/local/cuda-7.5 
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 
 
PATH=${CUDA_HOME}/bin:${PATH} 
export PATH


CUDA SDK Samples

Now you can copy the SDK samples into your home directory, and build a test sample.

$ cuda-install-samples-7.5.sh  ~ 
$ cd ~/NVIDIA_CUDA-7.5_Samples 
$ cd 1_Utilities/deviceQuery 
$ make

If everything goes well, you should be able to verify your CUDA installation by running thedeviceQuery sample.


Installing CUDA Toolkit 7.5 on Fedora 21 Linuxup

Tags: 

GPU Computing with R
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: