-
Notifications
You must be signed in to change notification settings - Fork 897
F08: refactor templates #13202
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
F08: refactor templates #13202
Conversation
9276561
to
717d5f9
Compare
@devreal when you get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one nit-pick.
717d5f9
to
a80f1a4
Compare
@@ -26,6 +26,7 @@ | |||
#include "ompi/datatype/ompi_datatype.h" | |||
#include "ompi/errhandler/errhandler.h" | |||
#include "ompi/mpi/fortran/base/fint_2_int.h" | |||
#include "bigcount.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this work on out-of-tree builds or should that be?
#include "bigcount.h" | |
#include "ompi/mpi/fortran/use-mpi-f08/base/bigcount.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. patched that one too.
This PR refactors some of the f08 template files introduced in PR open-mpi#12621. Many of them had been using, incorrectly, macros from fint_2_int.h. The code in the use-mpi-f08 folder now makes use of generated code in the wrapper around the internal c code to avoid many of the problems that these older macros were trying to solve by providing 'c' interfaces directly to the fortran compiler. Also, generalized macros for handling translation of arrays of MPI_Fint's to c int's (and other types) are used in these templates. Related to open-mpi#13168 and associated issue raised by a user on the mail list. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
a80f1a4
to
493a6f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This PR refactors some of the f08 template files introduced in PR #12621. Many of them had been using, incorrectly, macros from fint_2_int.h. The code in the use-mpi-f08 folder now makes use of generated code in the wrapper around the internal c code to avoid many of the problems that these older macros were trying to solve by providing 'c' interfaces directly to the fortran compiler. Also, generalized macros for handling translation of arrays of MPI_Fint's to c int's (and other types) are used in these templates.
Related to #13168 and associated issue raised by a user on the mail list.