Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just want to know the differences between MPI vs OpenMP for a school project I have.
I'm new on Ubuntu and i can't find a trustworthy website. I tried so many now. Please help me!

share|improve this question

closed as off topic by fossfreedom Jun 1 '12 at 18:08

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

This is a stackoverflow.com type of question. Since you don't know and it's for a school project, I can safely say you'll want OpenMP (assuming you wanted to know the difference to know which one to use). That being said, the biggest difference that comes to mind is that MPI was designed for distributed memory systems (like clusters) and OpenMP was designed for shared memory systems (like your PC).

share|improve this answer

Even if not aimed specifically to OpenMP vs. MPI, I think that this thread answers to a good portion of your question. To be really brief, MPI is not a shared memory model and is targeted to very highly parallelized systems. OpenMP is a shared memory model (as simple pthreads) and one of its advantages is that the parallelization process is easier with respect to MPI. So it's harder to convert a serial program into a MPI parallelized version, but if you'd plan to run the program on thousands of nodes, you'll probably have better performance with MPI.

As a side note, I think that you posted on the wrong site. Stackoverflow is best suited for this kind of questions.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.