Friday, November 6, 2009

Woodbury Outlet And Chanel

CUDA 2.3 on Ubuntu 9.10 Part. 1

Another approach to the use of the CUDA on Ubuntu. After the trouble I had with the NVIDIA drivers on Ubuntu 8.04 I decided to move to the latest edition of 9.10 (the flash does not respond to clicks, the computer does not detect that the headphones plugged in - do not hide the fact that a bit of a disappointment). By the way I did upgrade from XP to Windows 7.
latest drivers (version 190) installed with the help of
guide from Ubuntu Geek
. In short:

sudo apt-add-ppa repository: nvidia-vdpau/ppa
sudo apt-key adv - keyserver.ubuntu.com keyserver - recv-keys CEC06767
sudo apt-get update sudo
apt-get install nvidia-190-modaliases nvidia-glx-190 nvidia-settings-190

It should be further activated in the System -> Administration -> Drivers.

Now you will need Cuda Toolkit 2.3 - there is no version for Ubuntu 9.10, so I chose the version for 9.04. Installation instructions smoothly. Then I installed the CUDA SDK in version 2.3 for Ubuntu 9.10.

The next step was to add paths to the wonders toolkit environment variables. In the file ~ /. Bashrc, I added:

if [-d "/ usr / local / cuda"] then
PATH = "/ usr / local / cuda: $ PATH"


fi if [-d "/ usr / local/cuda/lib64 "] then
LD_LIBRARY_PATH =" / usr/local/cuda/lib64: $ LD_LIBRARY_PATH "


fi if [-d" / usr / local / cuda / bin "] then PATH =
"/ usr / local / cuda / bin: $ PATH" fi

first if statement checks whether there is / usr / local / cuda, and if so it adds this path to the PATH system variable. Another f adds the appropriate path to the libraries for 64-bit system. Then added a directory with files implementing in order to use the command nvcc without typing the entire path.
I'm not sure whether to put this script in the right file - if I remember correctly it is called each time the console. It would be an added to it only once at startup, and so have left over. After several starts, PATH looks like this:

daniel @ daniel-laptop: ~ $ printenv PATH
/ usr / local / cuda / bin: / usr / local / cuda: / usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / usr / games
So far everything went smoothly and the real problems began.


0 comments:

Post a Comment