MPI - work/pool example

2019-02-20 18:17发布

问题:

is there any example of using work/pool (or. Producer/Consumer) scheme for MPI? As for everything I have done, I am getting just one going through application and my app is deadlocked then.

Thanks

回答1:

Just googling around for "MPI Master Worker" or "MPI Master Slave", I see a bunch of examples; one good one hosted at Argonne National Labs is:

  • http://www.mcs.anl.gov/research/projects/mpi/tutorial/mpiexmpl/src2/io/C/main.html


标签: c mpi