LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-21-2008, 10:28 AM   #1
sylvaticus
Member
 
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
Question Lost on parallel programming... (openMPI, openMP..)


hi there.. I am quite lost on the parallel programming topic...

I have a C++ economic model that up to now I was using in a old-fashion serialized way.
Now I have gained access to a large cluster where they use openMPI...

On my mind I can image where to parallel my code.. quite simply as 90% CPU time is used on a one-function loop..

The problem is that I am completely lost with all this MPI, openMPI, openMP.. even the wikipedia entry is a a black cloud of smoke to me..

There are several tutorials on the web, but I need first to understand what I am looking for.. can anyone point me to some light ??

Are openMPI and OpenMP the same??

Thanks,
sylvaticus
 
Old 07-21-2008, 11:54 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
OpenMP and OpenMPI are not the same thing. OpenMP is simply an API for writing platform-independent parallel code. OpenMPI is an implementation of MPI, which is an API for communications targeting parallel computing.

While OpenMPI is in itself well satisfactory for writing parallel programs, it is very complicated, and you should steer well clear of a 100% MPI implementation unless you are serious about spending a lot of time with your program.

From the sounds of things, you would be much better off looking into OpenMP as a start by simply parallelizing your program (on multiple cores). OpenMP can be used in conjunction with OpenMPI in a cluster as well and you can extend your program later on if this is necessary.

Last edited by jcookeman; 07-21-2008 at 11:56 AM.
 
1 members found this post helpful.
Old 07-21-2008, 02:49 PM   #3
sylvaticus
Member
 
Registered: Apr 2006
Posts: 49

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by jcookeman View Post
OpenMP and OpenMPI are not the same thing. OpenMP is simply an API for writing platform-independent parallel code. OpenMPI is an implementation of MPI, which is an API for communications targeting parallel computing.

While OpenMPI is in itself well satisfactory for writing parallel programs, it is very complicated, and you should steer well clear of a 100% MPI implementation unless you are serious about spending a lot of time with your program.

From the sounds of things, you would be much better off looking into OpenMP as a start by simply parallelizing your program (on multiple cores). OpenMP can be used in conjunction with OpenMPI in a cluster as well and you can extend your program later on if this is necessary.
thank you jcookeman.. I'm start getting some ideas..
For those interested there is a very nice tutorial here.
 
  


Reply

Tags
cluster, computing, mpi, openmp, parallel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Parallel port programming joakim12 Programming 2 09-17-2007 10:49 AM
LXer: Mainstream Parallel Programming LXer Syndicated Linux News 0 07-30-2006 05:03 AM
parallel programming 2395 Programming 1 10-08-2005 06:44 PM
Parallel Programming in Linux serhosseini Programming 3 07-09-2005 08:46 PM
Lost icon and access to parallel zip drive Frankj51 Suse/Novell 1 12-21-2004 02:48 AM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration