mpiP icon indicating copy to clipboard operation
mpiP copied to clipboard

No mpiP report generated

Open shijin-aws opened this issue 5 years ago • 3 comments

Hi, I am using mpiP 3.5.0 to do profiling for WRFV-3.9.1.1. I built mpiP with Open MPI 4.0.5

./configure --prefix=$MPIP_ROOT --disable-libunwind CC=/path/to/mpicc CXX=/path/to/mpicxx F77=/path/to/mpif77

and pre-load it in my mpirun as

mpirun -x "LD_PRELOAD=/path/to/libmpiP.so" ....(other mpi arguments) wrf.exe

I can see mpiP printed in the stdout as

mpiP:
mpiP: mpiP V3.5.0 (Build Dec 18 2020/00:20:30)
mpiP:

But there is no final report generated and no error message was printed. Could you help provide any suggestions on debugging this issue? The application is coded with fortran 90. But I used mpiP to do profiling for the simple mpif90 program ring_usempi and do not have such issue.

shijin-aws avatar Dec 18 '20 00:12 shijin-aws

mpiP generates the report from within a wrapper for MPI_Finalize. Are you certain that you are calling MPI_Finalize? If so, can you please indicate which compiler you are using? Thanks!

cchambreau avatar Dec 18 '20 00:12 cchambreau

Thanks for the information. I will add debug printing to the MPI_FINALIZE to check if it's called and get back to you later. For the compiler, I am using gcc/gfortran 7.3.1:

$ gcc --version
gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-11)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gfortran --version
GNU Fortran (GCC) 7.3.1 20180712 (Red Hat 7.3.1-11)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

shijin-aws avatar Dec 18 '20 01:12 shijin-aws

I can confirm MPI_FINALIZE is called in WRFV by adding debug output before and after this call.

shijin-aws avatar Dec 18 '20 05:12 shijin-aws