You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to implement functionality to perform reduction with MPI_IN_PLACE, so that the output buffer is the same as the input buffer.
I would gladly contribute this back to the repository, if someone could guide me towards implementing this correctly.
For Allreduce I'm thinking about adding a method to mpi-base.jl with this signature
Allreduce!(sendbuf::MPIBuffertype{T}, op::Union{Op,Function}, comm::Comm) where T =
Allreduce!(Ptr{Cvoid}(1), sendbuf, length(sendbuf), op, comm)
something similar can be done for Reduce.
Also, Ptr{Cvoid}(1) corresponds to the definition of MPI_IN_PLACE=(void*)1 taken from mpi.h.
I am uncertain on what is the correct way to include it so that it becomes available as MPI.MPI_IN_PLACE.
The text was updated successfully, but these errors were encountered:
If a maintainer confirms that you are interested in this, and helps me with a list of methods to support, I would gladly add those, along with tests, and submit a PR.
Hi,
I would like to implement functionality to perform reduction with
MPI_IN_PLACE
, so that the output buffer is the same as the input buffer.I would gladly contribute this back to the repository, if someone could guide me towards implementing this correctly.
For Allreduce I'm thinking about adding a method to
mpi-base.jl
with this signaturesomething similar can be done for
Reduce
.Also,
Ptr{Cvoid}(1)
corresponds to the definition ofMPI_IN_PLACE=(void*)1
taken frommpi.h
.I am uncertain on what is the correct way to include it so that it becomes available as
MPI.MPI_IN_PLACE
.The text was updated successfully, but these errors were encountered: