Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 548 Bytes

make_mpiP_work_with_MPI_IN_PLACE.md

File metadata and controls

19 lines (12 loc) · 548 Bytes

Follow https://github.com/LLNL/mpiP for configuration. In the generated mpiP-wrappers.c, do following changes:


1.In function static int mpiPif_MPI_Allgatherv(...)

mpiPi_stats_mt_enter(hndl);
++ if ( *sendtype == MPI_DATATYPE_NULL ) sendbuf = MPI_IN_PLACE;
rc = PMPI_Allgather( sendbuf, * sendcount, …)

2.In function static int mpiPif_MPI_Allgather

mpiPi_stats_mt_enter(hndl);
++ if ( *sendtype == MPI_DATATYPE_NULL ) sendbuf = MPI_IN_PLACE;
rc = PMPI_Allgather( sendbuf, * sendcount, ...);


Then make and compile.