CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

MPI query

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By nandiganavishal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2012, 14:53
Default MPI query
  #1
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Dear Foamers,

We need to know if we can start openfoam solvers on user-controlled mpi
communicators. In particular, we want to call mpi_init ourselves, do
some communicator splitting, and dedicate a subset of our processors to
doing calculations with openfoam. So instead of letting all MPI calls be
hidden from us, we want to start MPI ourselves and then pass in a
communicator (*not* MPI_COMM_WORLD) to OpenFoam. Can this be done?

Thanks

Regards

Vishal
AMRBlack likes this.
nandiganavishal is offline   Reply With Quote

Old   July 9, 2012, 17:01
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by nandiganavishal View Post
Dear Foamers,

We need to know if we can start openfoam solvers on user-controlled mpi
communicators. In particular, we want to call mpi_init ourselves, do
some communicator splitting, and dedicate a subset of our processors to
doing calculations with openfoam. So instead of letting all MPI calls be
hidden from us, we want to start MPI ourselves and then pass in a
communicator (*not* MPI_COMM_WORLD) to OpenFoam. Can this be done?

Thanks

Regards

Vishal
Have a look at $FOAM_SRC/Pstream/mpi . To my knowledge this is the only core part of OF that calls MPI directly. I guess you'd only have to write your special Pstream-implementation
gschaider is offline   Reply With Quote

Reply


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
mpirun, best parameters pablodecastillo Hardware 18 November 10, 2016 12:36
MPI error florencenawei OpenFOAM Installation 3 October 10, 2011 01:21
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
MPI and parallel computation Wang Main CFD Forum 7 April 15, 2004 11:25


All times are GMT -4. The time now is 15:57.