winjade的个人博客分享 http://blog.sciencenet.cn/u/winjade

博文

Installing CUDA5.0.35 on ubuntu11.10

已有 2559 次阅读 2013-6-18 11:29 |系统分类:科研笔记

  How to install CUDA5.0.35 on ubuntu11.10? I have tested it and success on HPZ210 workstation. Following explains how to install CUDA5.0 on ubuntu11.10.

  Firstly, Ctrl+Alt+T. Enter the following in a terminal.

  $ sudo apt-get --purge remove nvidia*               //reconfigure Ubuntu with the basic video driver

  $ sudo update-initramfs -u                               //update the kernel image in a terminal

  $ sudo apt-get update                                     //prepare to install the Linux developmen tools

  $ sudo apt-get install build-essential                //install the Linux developmen tools

  $ sudo apt-get install freeglut3-dev libxi-dev libxmu-dev   //install the OpenGL developer environment

  $ sudo apt-get install mpi-default-dev              //install the OpenMPI environment

  Secondly, logout Linux desktop and switch to console mode

  $ sudo service lightdm stop

  Ctrl+Alt+F2. Input your user name and password, take care, do not use num key!!!

  $ sudo sh cuda_5.0.35_linux_32_ubuntu11.10-1.run     //install the CUDA, include driver, toolkit and examples

  $ sudo reboot                                               // reboot system

  Thridly, alter file ".bashrc", Ctrl+Alt+T. Enter the following in a terminal.
  $ gedit ~/.bashrc

  add the following text to ".bashrc"

  # add cuda tools to command path
  export PATH=/usr/local/cuda-5.0/bin:${PATH}

  # add cuda libraries to library path
  if [[ "${LD_LIBRARY_PATH}" != "" ]]
     then
         export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib:${LD_LIBRARY_PATH}
  else
     export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib
  fi

  Fourthly, reboot your system and modified to successfully.

  $ sudo reboot

  Fifthly, you can proceed with the build process.

  $ cd ~/NVIDIA_CUDA-5.0_Samples                      //locate direction

  $ make                                                             //compiling all examples

  Sixthly, test your examples.

  $ cd ~/NVIDIA_CUDA-5.0_Samples/bin/linux/release           //locate direction

  ./oceanFFT                                                                        //     code execution

  OK! So sorry! My poor English.          




https://wap.sciencenet.cn/blog-750780-700541.html

上一篇:配置CUDA5.0+Win7+VS2008
收藏 IP: 221.7.233.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-12 19:10

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部