Berikut ini adalah tutorial instalasi CUDA di Ubuntu 11.10 yang coba saya paparkan lebih detail dari postingan sebelumnya yang berbahasa Inggris. Semoga bermanfaat.
Panduan Instalasi CUDA Di Ubuntu 11.10
Picture by Aditia A. Pratama
Showing posts with label oneiric ocelot. Show all posts
Showing posts with label oneiric ocelot. Show all posts
Jan 6, 2012
Nov 15, 2011
Installing Cuda on Ubuntu 11.10
Installing Cuda on Ubuntu 11.10 - This article originally from dickscheid.net. I haven't try this yet, but I'll let you know once I've done with it. Oh yeah be sure to thank him, by visiting his website, he sure has a lot of things useful there.
Timo Dickscheid's wrote : To install Cuda, I followed some hints on bottom of this thread, but also had to fix a few more issues.
Article by Timo Dickscheid
Timo Dickscheid's wrote : 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. (I'll make your searching bit easy by visiting this link, you'll be transport to Nvidia Cuda Toolkit download page, choose for your latest current distribution.)
- Install and select gcc/g++ 4.4
sudo apt-get install \ gcc-4.4 g++-4.4 build-essential sudo 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 gcc gcc —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.so sudo ln -s /usr/lib/nvidia-173/libGL.so /usr/lib/libGL.so
Then go to theNVIDIA_GPU_COMPUTING_SDK_...folder. In the fileC/common/common.mkchange the line
LINKFLAGS +=
to
LINKFLAGS += /usr/lib/nvidia-current
Then run make. This should compile everything, indicating that the CUDA stuff works.
Article by Timo Dickscheid
Category
11.10,
nvidia. cuda,
oneiric ocelot,
ubuntu
Subscribe to:
Posts (Atom)