📄 mpid_comm_accept.c
字号:
/* -*- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -