[gem5] How to install Cuda on ubuntu 14.04

Step 1: get the suitable cuda repo from https://developer.nvidia.com/cuda-downloads
    in this case, cuda for ubuntu 14.04 is fetched using below command:
      >> wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb

Step 2: get cuda and install:
    >> sudo dpkg -cuda-repo-ubuntu1404_7.0-28_amd64.deb

Step 3: install cuda tookit
    >> sudo apt-get install cuda

When you are done with installation, you should set the Cuda environment variable. It is better to place below commands into your .bashrc file in your home director

export CUDA_HOME=/usr/local/cuda-7.0
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64

PATH=${CUDA_HOME}/bin:${PATH}
export PATH 


---
Cách cài đặt Cuda trên ubuntu 14.04. Theo từng bước như ở trên.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...