This is the first series of my expereince with openmp. Its been such a long time since I have used openMp (college days .. !) Now when I look at those programs everything looks alien to me. Not that I commented my code ;) But I have just lost touch with it. Time to freshen things up.
I intend to write these in series to help other programmers like me. Also eventually I would like to wrap most of my programs with Python so you can completely avoid issues of GIL and use OpenMP.
So what is OpenMP ?
http://en.wikipedia.org/wiki/OpenMP (Read this, very helpfull )
The following is a very simple snippet on how to use OpenMP. Anything you need to parallelize goes under #pragma omp parallel. Thats it!
I intend to write these in series to help other programmers like me. Also eventually I would like to wrap most of my programs with Python so you can completely avoid issues of GIL and use OpenMP.
So what is OpenMP ?
http://en.wikipedia.org/wiki/OpenMP (Read this, very helpfull )
The following is a very simple snippet on how to use OpenMP. Anything you need to parallelize goes under #pragma omp parallel. Thats it!
Shared Memory Programming using OpenMp. This video is very informative.
Next, I will try to wrap this with Python programs and lets see how that goes...