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

MPI query

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 9, 2012, 15:53
Default MPI query
  #1
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 202
Rep Power: 8
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
nandiganavishal is offline   Reply With Quote

Old   July 9, 2012, 18:01
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mpirun, best parameters pablodecastillo Hardware 17 April 27, 2012 14:05
MPI error florencenawei OpenFOAM Installation 3 October 10, 2011 02:21
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 11:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 12:12
MPI and parallel computation Wang Main CFD Forum 7 April 15, 2004 12:25


All times are GMT -4. The time now is 22:37.