mpid_recv_init.c

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

C
49
字号
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpidimpl.h"/* * MPID_Recv_init() */#undef FUNCNAME#define FUNCNAME MPID_Recv_init#undef FCNAME#define FCNAME MPIDI_QUOTE(FUNCNAME)int MPID_Recv_init(void * buf, int count, MPI_Datatype datatype, int rank, int tag, MPID_Comm * comm, int context_offset,		   MPID_Request ** request){    MPID_Request * rreq;    int mpi_errno = MPI_SUCCESS;    MPIDI_STATE_DECL(MPID_STATE_MPID_RECV_INIT);    MPIDI_FUNC_ENTER(MPID_STATE_MPID_RECV_INIT);        rreq = MPIDI_CH3_Request_create();    if (rreq == NULL)    {	goto fn_exit;    }        MPIU_Object_set_ref(rreq, 1);    rreq->kind = MPID_PREQUEST_RECV;    rreq->comm = comm;    rreq->ch3.match.rank = rank;    rreq->ch3.match.tag = tag;    rreq->ch3.match.context_id = comm->context_id + context_offset;    rreq->ch3.user_buf = (void *) buf;    rreq->ch3.user_count = count;    rreq->ch3.datatype = datatype;    rreq->partner_request = NULL;    MPIDI_Request_set_type(rreq, MPIDI_REQUEST_TYPE_RECV);	    *request = rreq;  fn_exit:    MPIDI_FUNC_EXIT(MPID_STATE_MPID_RECV_INIT);    return mpi_errno;}

⌨️ 快捷键说明

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