⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wait.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* -- Begin Profiling Symbol Block for routine MPI_Wait */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Wait = PMPI_Wait#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Wait  MPI_Wait#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Wait as PMPI_Wait#endif/* -- End Profiling Symbol Block *//* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build   the MPI routines */#ifndef MPICH_MPI_FROM_PMPI#define MPI_Wait PMPI_Wait#endif#undef FUNCNAME#define FUNCNAME MPI_Wait/*@    MPI_Wait  - Waits for an MPI send or receive to completeInput Parameter:. request - request (handle) Output Parameter:. status - status object (Status) .  May be 'MPI_STATUS_IGNORE'..N waitstatus.N fortran.N Errors.N MPI_SUCCESS.N MPI_ERR_REQUEST.N MPI_ERR_ARG@*/int MPI_Wait(MPI_Request *request, MPI_Status *status){    static const char FCNAME[] = "MPI_Wait";    MPID_Request * request_ptr = NULL;    int active_flag;    int mpi_errno = MPI_SUCCESS;    MPID_MPI_STATE_DECL(MPID_STATE_MPI_WAIT);    /* Verify that MPI has been initialized */#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {	    MPIR_ERRTEST_INITIALIZED(mpi_errno);	    if (request != NULL)	    {		MPIR_ERRTEST_REQUEST(*request, mpi_errno);	    }            if (mpi_errno) {                return MPIR_Err_return_comm( 0, FCNAME, mpi_errno );            }	}        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */	        MPID_MPI_PT2PT_FUNC_ENTER(MPID_STATE_MPI_WAIT);    /* Check the arguments */#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {	    MPIR_ERRTEST_REQUEST(request, mpi_errno);	    /* NOTE: MPI_STATUS_IGNORE != NULL */	    MPIR_ERRTEST_ARGNULL(status, "status", mpi_errno);	    if (mpi_errno) {		goto fn_exit;            }	}        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */        /* If this is a null request handle, then return an empty status */    if (*request == MPI_REQUEST_NULL)    {	MPIR_Status_set_empty(status);	goto fn_exit;    }        /* Convert MPI request handle to a request object pointer */    MPID_Request_get_ptr(*request, request_ptr);        /* Validate object pointers if error checking is enabled */#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {            MPID_Request_valid_ptr( request_ptr, mpi_errno );            if (mpi_errno) {		goto fn_exit;            }        }        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */    MPIR_Wait(request_ptr);    mpi_errno = MPIR_Request_complete(request, request_ptr, status,				      &active_flag);    if (mpi_errno == MPI_SUCCESS)    {	mpi_errno = request_ptr->status.MPI_ERROR;    }  fn_exit:    MPID_MPI_PT2PT_FUNC_EXIT(MPID_STATE_MPI_WAIT);    return (mpi_errno == MPI_SUCCESS) ? MPI_SUCCESS :	MPIR_Err_return_comm(request_ptr?request_ptr->comm:0, FCNAME, mpi_errno);}

⌨️ 快捷键说明

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