Skip to content

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

Open
@AlexisLaplanche

Description

@AlexisLaplanche

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions