📄 greq_complete.c
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* $Id: greq_complete.c,v 1.8 2002/09/16 20:52:36 toonen Exp $ * * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* -- Begin Profiling Symbol Block for routine MPI_Grequest_complete */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Grequest_complete = PMPI_Grequest_complete#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Grequest_complete MPI_Grequest_complete#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Grequest_complete as PMPI_Grequest_complete#endif/* -- End Profiling Symbol Block *//* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build the MPI routines. You can use USE_WEAK_SYMBOLS to see if MPICH is using weak symbols to implement the MPI routines. */#ifndef MPICH_MPI_FROM_PMPI#define MPI_Grequest_complete PMPI_Grequest_complete/* Any internal routines can go here. Make them static if possible. If they are used by both the MPI and PMPI versions, use PMPI_LOCAL instead of static; this macro expands into "static" if weak symbols are supported and into nothing otherwise. */#endif#undef FUNCNAME#define FUNCNAME MPI_Grequest_complete/*@ MPI_Grequest_complete - Notify MPI that a user-defined request is complete Input Arguments:. request - Generalized request to mark as complete Notes:.N Fortran.N Errors.N MPI_SUCCESS@*/int MPI_Grequest_complete( MPI_Request request ){ static const char FCNAME[] = "MPI_Grequest_complete"; int mpi_errno = MPI_SUCCESS; MPID_Request *request_ptr; MPID_MPI_STATE_DECL(MPID_STATE_MPI_GREQUEST_COMPLETE);# ifdef HAVE_ERROR_CHECKING { MPID_BEGIN_ERROR_CHECKS; { MPIR_ERRTEST_INITIALIZED(mpi_errno); MPIR_ERRTEST_REQUEST(request, mpi_errno); if (mpi_errno) { return MPIR_Err_return_comm( NULL, FCNAME, mpi_errno ); } } MPID_END_ERROR_CHECKS; }# endif /* HAVE_ERROR_CHECKING */ MPID_MPI_FUNC_ENTER(MPID_STATE_MPI_GREQUEST_COMPLETE); /* Get handles to MPI objects. */ MPID_Request_get_ptr( request, request_ptr );# ifdef HAVE_ERROR_CHECKING { MPID_BEGIN_ERROR_CHECKS; { MPID_Request_valid_ptr(request_ptr,mpi_errno); if (request_ptr && request_ptr->kind != MPID_UREQUEST) { mpi_errno = MPIR_Err_create_code( MPI_ERR_ARG, "**notgenreq", 0 ); } if (mpi_errno) { MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_GREQUEST_COMPLETE); return MPIR_Err_return_comm( NULL, FCNAME, mpi_errno ); } } MPID_END_ERROR_CHECKS; }# endif /* HAVE_ERROR_CHECKING */ /* ... body of routine ... */ MPID_Request_set_completed( request_ptr ); MPID_Request_release(request_ptr); /* ... end of body of routine ... */ MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_GREQUEST_COMPLETE); return MPI_SUCCESS;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -