Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No mpiP report generated #31

Open
shijin-aws opened this issue Dec 18, 2020 · 3 comments
Open

No mpiP report generated #31

shijin-aws opened this issue Dec 18, 2020 · 3 comments

Comments

@shijin-aws
Copy link

shijin-aws commented Dec 18, 2020

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.

@cchambreau
Copy link
Collaborator

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!

@shijin-aws
Copy link
Author

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
Copy link
Author

shijin-aws commented Dec 18, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants