mpid_comm_connect.c

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

C
54
字号
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpidimpl.h"/*@   MPID_Comm_connect - connect   Input Arguments:+  char *port_name - port name.  MPI_Info info - info.  int root - root-  MPI_Comm comm - communicator   Output Arguments:.  MPID_Comm *newcomm - new communicator   Notes:.N Fortran.N Errors.N MPI_SUCCESS.N ... others@*/int MPID_Comm_connect(char *port_name, MPID_Info *info_ptr, int root, MPID_Comm *comm_ptr, MPID_Comm **newcomm){    int conn;    MPIDI_STATE_DECL(MPID_STATE_MPID_COMM_CONNECT);    MPIDI_FUNC_ENTER(MPID_STATE_MPID_COMM_CONNECT);    if (comm_ptr->rank == root)    {	conn = mm_connect(info_ptr, port_name);	/* 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_CONNECT);    return MPI_SUCCESS;}

⌨️ 快捷键说明

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