mpi.comm.disconnect: MPI\_Comm\_disconnect API

Description Usage Arguments Details Value Author(s) References See Also

View source: R/Rcomm.R

Description

mpi.comm.disconnect disconnects itself from a communicator and then deallocates the communicator so it points to MPI\_COMM\_NULL.

Usage

1

Arguments

comm

a communicator number

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.

Value

1 if success. Otherwise 0.

Author(s)

Hao Yu

References

http://www.openmpi.org/

See Also

mpi.comm.free


Rmpi documentation built on Nov. 13, 2018, 9:03 a.m.