28 May 2014

CUDA with NVIDIA GeForce 320M MacBook Pro 2010 Mid

Recently I read some research about parallel computing using graphical processor and its potential interested me. So I read some stuff, watch some videos on youtube (I recommend to watch some videos/presentations it really makes it easiers) and I wanted to try it. It seems to be very promising technology and it may be helpful for my dissertation work on DNA assembly.

GPU graph

Currently I'm working on:
MacBook Pro 13-inch, Mid 2010
OS: Mac OS X 10.9.2 Mavericks
Graphics: NVIDIA GeForce 320M 256 MB

I was disapointed when I found out that my graphics card is not CUDA-enabled (cuda-gpus list). Fortunately I read somewhere that I should try to install it anyway to be sure. So I did and to my surprise it works. All you need to do is to install:

CUDA Toolkit contains IDE - Nsight Eclipse Edition - that can be used for programming with CUDA. You can run it using terminal (/Applications/Utilities/Terminal.app) and command nsight*. And then run some test program to check if everything works.

To be able to run nsight command you'll have to add it to environment variables. For using cuda functions you'll also need to add a path to libraries...
Open .bash_profile in your home folder and add:

	export PATH=$PATH:/usr/local/cuda/bin/
	export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH

Result: CUDA works on NVIDIA GeForce 320M