mpid_comm_accept.c

来自「刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件」· C语言 代码 · 共 57 行

C
57
字号
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpidimpl.h"/*@   MPID_Comm_accept - communicator accept   Arguments:+  char *port_name - port name.  MPI_Info info - info.  int root - root.  MPI_Comm comm - communicator-  MPI_Comm *newcomm - new communicator   Notes:.N Fortran.N Errors.N MPI_SUCCESS@*/int MPID_Comm_accept(char *port_name, MPID_Info *info_ptr, int root, MPID_Comm *comm_ptr, MPID_Comm **newcomm){    int conn;/*    char value[10];    int same_domain;*/    MPIDI_STATE_DECL(MPID_STATE_MPID_COMM_ACCEPT);    MPIDI_FUNC_ENTER(MPID_STATE_MPID_COMM_ACCEPT);    if (comm_ptr->rank == root)    {	conn = mm_accept(info_ptr, port_name);	/*PMPI_Info_get(info, MPICH_PMI_SAME_DOMAIN_KEY, 10, value, &same_domain);*/	/* Transfer stuff */	mm_close(conn);	/* Bcast resulting intercommunicator stuff to the rest of this communicator */    }    else    {	/* Bcast resulting intercommunicator stuff */    }    MPIDI_FUNC_EXIT(MPID_STATE_MPID_COMM_ACCEPT);    return MPI_SUCCESS;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?