Installing Cuda on Ubuntu 11.10
来源:互联网 发布:把字符串放到数组中 编辑:程序博客网 时间:2024/05/02 01:46
Installing Cuda on Ubuntu 11.10
Written 2011-10-27 by , tagged as
To install Cuda, I followed some hints on bottom of this thread, but also had to fix a few more issues.
Download the current Cuda Toolkit for Ubuntu and the GPU Computing SDK, and save the .run files somewhere.
Install and select gcc/g++ 4.4
sudo apt-get install \ gcc-4.4 g++-4.4 build-essentialsudo update-alternatives \ --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 \ --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 sudo update-alternatives \ --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 60 \ --slave /usr/bin/g++ g++ /usr/bin/g++-4.4
Check with
sudo update-alternatives —config gccgcc —version
that you have now version 4.4.x of the compilers.
Install the nvidia drivers
sudo apt-get install \ nvidia-current\ nvidia-current-dev\ nvidia-current-updates\ nvidia-current-updates-dev
As root, run the two .run files from nvidia (see 1.).
For compiling the SDK examples, you also need to install
sudo apt-get install freeglut3-dev libxi-dev
and create the following links
sudo ln -s /usr/lib/libXmu.so.6 /usr/lib/libXmu.sosudo ln -s /usr/lib/nvidia-173/libGL.so /usr/lib/libGL.so
Then go to the
NVIDIA_GPU_COMPUTING_SDK_...
folder. In the fileC/common/common.mk
change the lineLINKFLAGS +=
to
LINKFLAGS += -L/usr/lib/nvidia-current
Then run make. This should compile everything, indicating that the CUDA stuff works.
- Installing Cuda on Ubuntu 11.10
- Installing CUDA Toolkit 5.0 on Ubuntu 12.10 Linux
- Guide of Installing CUDA-7.5 on Ubuntu 14.04
- Installing CUDA Toolkit 7.5 on Ubuntu 14.04 Linux
- Installing Nvidia CUDA on Ubuntu 14.04 for Linux GPU Computing
- Installing CUDA Toolkit 7.5 on Ubuntu 14.04 Linux
- ziyong Installing CUDA 8.0 and cuDNN 5.1 on Ubuntu 16.04
- Installing MapServer on Ubuntu
- installing chkconfig on ubuntu
- Installing Jenkins on Ubuntu
- Installing CUDA Toolkit 5.0 on CentOS 6.4
- Installing vsftp on ubuntu 8.04
- Installing Aptana on Ubuntu 8.04
- Installing Nemesis on Ubuntu 10.04
- Installing Tomcat 6 on Ubuntu
- Installing Plone 4 on Ubuntu
- Installing PostGIS 2.0 on ubuntu
- Installing webrtc2sip on Ubuntu 12.04
- Linux入门:截图工具(Scrot)
- 关于USB2.0和USB高速传输模式的一点说明
- 对非公开的UIButton和UIBarButtonItem风格的使用
- .9图片的制作(Draw 9-patch)
- C++标准转换运算符const_cast
- Installing Cuda on Ubuntu 11.10
- Selenium-RC学习笔记_01_安装搭建
- How to convert from windows timestamp to unix timestamp
- 推荐非常酷的JavaScript可编辑表格 Editable JavaScript TreeGrid
- ant脚本对as进行打包
- 2012 Multi-University Training Contest 2 Matrix
- java多线程编程
- cocos2d学习笔记(六)CCParallaxNode和Tile Map
- 天气预报完成