CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

What are your views on MPI vs MPI+OpenMP?

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes
  • 1 Post By flotus1
  • 1 Post By sbaffini
  • 1 Post By sbaffini
  • 2 Post By flotus1
  • 2 Post By flotus1
  • 1 Post By sbaffini
  • 2 Post By flotus1
  • 1 Post By sbaffini
  • 1 Post By flotus1

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 23, 2022, 07:32
Default What are your views on MPI vs MPI+OpenMP?
  #1
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Hello everyone,

I was reading opensource codes, and observed that some devs use MPI+OpenMP for their solvers. I understand the reasoning, but currently I'm finding OpenMP code to be much more problematic. Essentially, apart from increasing the complexity of the solver, OpenMP loops apparently have a high startup cost.

For me, surprisingly MPI seems like a better option.

I haven't written implicit solvers with MPI, so I'm little bit inexperienced in that regards, but it seems like distributing mesh partitions on multiple processors, and letting the code run on each processor in a single threaded fashion seems like a very simple way to do things.

I like that our code running on each processor can be single threaded for most part, and only needs to transfer boundary information between neighbors.

I like it because, writing our linear solvers, and other things become easy.

OpenMP parallelizing even a Gaussian elimination solver is somewhat complicated, and has not been fruitful for me.

I like OpenMP for SIMD vectorization though. #pragma omp simd for example, instructs the compiler to generate optimized SIMD code. Similarly, I'm interested in it's graph based task execution model. Professor Jack Dongarra is apparently using this for finding the most efficient pathways through things like QR decomposition solvers, or Cholesky factorization solvers, etc...

What is your view on MPI vs MPI+OpenMP?

Thanks and regards
~Sayan
aerosayan is offline   Reply With Quote

 


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using OpenMP similar to MPI? Bad idea? aerosayan Main CFD Forum 3 January 6, 2021 05:42
Sgimpi pere OpenFOAM 27 September 24, 2011 07:57
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12
OpenMP or MPI mamaly60 OpenFOAM Running, Solving & CFD 4 October 30, 2007 22:31


All times are GMT -4. The time now is 06:48.