-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fortran MPI seems not implemented #24
Comments
Recorder does has Fortran wrappers and the error flag is set when the C interface has a return parameter. |
Thank you for your quick response!
Here is the output from running it with 2 mpi processes, without Recorder preloaded: Here is with Recorder preloaded: |
@sheltongeosx You are right! I just checked the code and the current implementation simply returns the error code from the C interface but didn't set it for the Fortran wrappers. I will fix this. Thanks for catching this. |
@sheltongeosx This has been fixed in the latest updates. |
@wangvsa Thank you very much for your work! Yes testing with the code provided above seems that the issue is gone. But it still has issue with Fortran mpi_bcast() call in my application - error flag is still not set after the call (values are correctly broadcasted though). It is found that it returned from the the line 267 during executing RECORDER_INTERCEPTOR_PROLOGUE macro in file lib/recorder-mpi.c without setting the error flag. Looking it further a bit it returned from the macro at line 163 of file include/recorder.h, where it can tell that the logger was not initialized. |
Recorder is initialized at MPI initialization time. When bcast is called, recorder should already be initialized. Nevertheless, even it was not initialized, I should still set the error flag. Will fix this soon, btw, which application are you running? |
It is Quantum ESPRESSO: https://gitlab.com/QEF/q-e |
The error flag issue has been solved. But I found an even more problematic issue #25 when running Quantum ESPRESSO. I may need to check with the MPICH team on this. |
Running MPI tests with Recorder library preloaded, it looks that the error flag is not set after calling any MPI interface.
The text was updated successfully, but these errors were encountered: