MPI函数MPI_Comm_split_type

int MPI_Comm_split_type(MPI_Comm comm, int split_type, int key,
MPI_Info info, MPI_Comm *newcomm)

INPUT PARAMETERS

  comm      Communicator (handle).

   split_type
             Type of processes to be grouped together (integer).

   key       Control of rank assignment (integer).

   info      Info argument (handle).

此函数根据split_type指定的类型将与comm关联的组划分为不相交的子组。 每个子组包含相同类型的所有进程。
        在每个子组中,进程按参数键的值定义的顺序排列,并根据它们在旧组中的排名来断开。 为每个子组创建一个新的通信器,并在newcomm中返回。 这是一个集体呼吁; 所有进程必须提供相同的split_type,但允许每个进程为key提供不同的值。 此规则的一个例外是进程可能提供类型值MPI_UNDEFINED,在这种情况下newcomm返回MPI_COMM_NULL。

猜你喜欢

转载自blog.csdn.net/TH_NUM/article/details/81171101
mpi