concurrency - Concurrent MPI programs / redefining MPI_COMM_WORLD -


i have fortran program parallelized using mpi. application know want run 2 (but not absolutely) identical instances of program. these 2 concurrently running programs have communicate each other during runtime.

i thought 1 of easiest ways define global communicator (eg. mpi_comm_world_global) spans processes. proceed redefine usual global communicator mpi_comm_world total amount of processes used instance of program (note that, although talk of multiple instances of program, there 1 real program running in case).

i keep mpi_comm_world total amount of processes used 'this' instance of program, avoid changing communicators throughout code.

my question therefore, there straightforward way of redefining mpi_comm_world in fortran? or proposed approach bad practice , should other methods.

thanks in advance.

mpi_comm_world can constant or macro. trying redefine asking trouble.

in openmpi parameter value 9.

you have make own variable name shadows 1 module mpi or mpif.h, e.g., using custom module or include file.

it shouldn't difficult change mpi_comm_world custom communicator in code using modern text editor or ide.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -