Search This Blog

Thursday, 11 September 2014

Parallel solvers on CUDA

Hello everybody:

A year ago I coded some parallel algorithms called solvers, they use them for solving matrixes with a huge amount of elements up to 1000000.  These kind of systems frequently come from Partial Differential Equation problems.

I want to share these codes with you, some of them are part of the examples which you can find directly in the CUDA toolkit but I have added my own information for testing them.  I hope they could be useful for somebody and if you find a bug please give me the feedback.

https://github.com/ivonneleonor/Parallel-solver-in-Cuda

Thank you.

Wednesday, 3 September 2014

Install Cuda 6.5 under Ubuntu 12.04

You can check first you version of Ubuntu with

lsb_release -a

and your nvidia card with

lspci |grep NVIDIA

After this you can download the driver from

http://www.nvidia.com.mx/Download/index.aspx?

To install it, follow the next steps

cd Download
sudo chmod 777 -R NVIDIA-Linux-x86_64-340.32.run

if you have 64 linux version like me, or you have to choose your flavor.

Install all these libraries

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglu1-mesa glew-utils mesa-utils

Modify the next file

sudo gedit /etc/modprobe.d/blacklist.conf

write down at the end of the file the next list

blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

save and close the file and then type:

sudo apt-get remove --purge nvidia*
sudo apt-get remove --purge xserver-xorg-video-nouveau
sudo reboot

After that

CTRL ALT F5

Enter your login and pass and then type

sudo lightdm stop

enter your pass again.
After this the driver has to start, choose yes for everything except for the last question about the Xorg file.

When this finishes, get in to the graphic mode with

sudo lightdm start

If everything goes right you can go for CUDA.

Download 6.5 version at

https://developer.nvidia.com/cuda-downloads?sid=589535

I got the file
cuda_6.5.14_linux_64.run

in the Downloads archive.

Again type

CTRL ALT F5

Enter your login and pass and then type

sudo lightdm stop

chmod 777 -R cuda_6.5.14_linux_64.run

and sudo sh chmod 777 -R cuda_6.5.14_linux_64.run

Accept all the options

sudo lightdm start

Run a terminal and type

sudo gedit .bashrc

for 32 bits include these lines:
export PATH=/usr/local/cuda-6.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:$LD_LIBRARY_PATH

and for 64 bits:
export PATH=/usr/local/cuda-6.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH

and save the changes.

There you go.

Sunday, 18 May 2014

Tutorial para instalar cuda 5.0 en thinkpad W520

Hola, les dejo el link del tutorial.

http://www.ubuntu-es.org/node/176006#.U3izwHVdW0w