Skip to content

[Fortran][Test needed] Inconsistency with op in MPI_Ireduce_fortran_wrapper #24

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

Open
AlexisLaplanche opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Fortran MPICH OpenMPI

Comments

@AlexisLaplanche
Copy link
Member

AlexisLaplanche commented Oct 8, 2024

Inconsistency when using op in MPI_Ireduce_fortran_wrapper:

_wrap_py_return_val = PMPI_Ireduce((const void*)sendbuf, (void*)recvbuf, *count, (MPI_Datatype)(*datatype), (MPI_Op)(*op), *root, (MPI_Comm)(*comm), (MPI_Request*)request);
(MPI_Op)(*op) for MPICH, it should work as intended
_wrap_py_return_val = PMPI_Ireduce((const void*)sendbuf, (void*)recvbuf, *count, MPI_Type_f2c(*datatype), MPI_Op_f2c(*op), *root, MPI_Comm_f2c(*comm), &temp_request);
MPI_Op_f2c(*op) for OpenMPI, it should work as intended
if ((MPI_Op)op == MPI_MAX) {
(MPI_Op)op , this should not work with both MPICH and OpenMPI

@AlexisLaplanche AlexisLaplanche self-assigned this Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fortran MPICH OpenMPI
Projects
None yet
Development

No branches or pull requests

1 participant