[gmx-developers] GMX_BARRIER in gmx_pme_do()

Mark Abraham Mark.Abraham at anu.edu.au
Tue Jul 7 14:46:21 CEST 2009

Zhang Cheng wrote:
> Hi, 
> I am wondering whether the GMX_BARRIER(cr->mpi_comm_mysim) calls in pme.c/gmx_pme_do() should be replaced by GMX_BARRIER(cr->mpi_comm_mygroup), especially when there are PME only nodes. I understand (but I may be wrong) gmx_pme_do() is only called by a PP+PME or PME-only processor, so mpi_comm_mygroup should be sufficient in either case. On the other hand, mpi_comm_mysim will hang a PP only processor if PP and PME are done on separate nodes.  I also understand GMX_BARRIER is not invoked unless BARRIERS is defined, but it still appears to be a little confusing to me.

I seem to recall noticing this myself at some point. Will look when I 
have some time.


More information about the gromacs.org_gmx-developers mailing list