Learn R Programming

Rmpi (version 0.7-2.1)

mpi.comm.disconnect: MPI_Comm_disconnect API

Description

mpi.comm.disconnect disconnects itself from a communicator and then deallocates the communicator so it points to MPI_COMM_NULL.

Usage

mpi.comm.disconnect(comm=1)

Value

1 if success. Otherwise 0.

Arguments

comm

a communicator number

Author

Hao Yu

Details

When members associated with a communicator finish jobs or exit, they have to call mpi.comm.disconnect to release resource if the communicator was created from an intercommunicator by mpi.intercomm.merge. If mpi.comm.free is used instead, mpi.finalize called by slaves may cause undefined impacts on master who wishes to stay.

References

https://www.open-mpi.org/

See Also

mpi.comm.free