MPI\_Comm\_disconnect API
MPI \ _Comm \ _disconnect API
译者:生物统计家园网 机器人LoveR
描述----------Description----------
mpi.comm.disconnect disconnects itself from a communicator and then deallocates the communicator so it points to MPI\_COMM\_NULL.
mpi.comm.disconnect断开本身的传播者,然后释放的传播者,它指向MPI \ _COMM的\ _NULL所以。
用法----------Usage----------
mpi.comm.disconnect(comm=1)
参数----------Arguments----------
参数:comm
a communicator number
一个通信号
Details
详细信息----------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.
当会员的传播者完成作业或退出,他们必须调用“mpi.comm.disconnect来释放资源,如果通信从intercommunicator创建mpi.intercomm.merge。如果mpi.comm.free来代替,mpi.finalize调用的奴隶可能会导致不确定的影响,主希望留。