|
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.
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-5-12 19:10
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社