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

📄 querythread.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//*  $Id: querythread.c,v 1.6 2002/07/09 21:57:40 toonen Exp $ * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* -- Begin Profiling Symbol Block for routine MPI_Query_thread */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Query_thread = PMPI_Query_thread#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Query_thread  MPI_Query_thread#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Query_thread as PMPI_Query_thread#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_Query_thread PMPI_Query_thread#endif#undef FUNCNAME#define FUNCNAME MPI_Query_thread/*@   MPI_Query_thread - Return the level of thread support provided   Output Arguments:.  provided - Level of thread support provided.  This is the same value   that was returned in the 'provided' argument in 'MPI_Init_thread'.   Notes:   If 'MPI_Init' was called instead of 'MPI_Init_thread', the level of   thread support is defined by the implementation.  This routine allows   you to find out the provided level.  It is also useful for library    routines that discover that MPI has already been initialized and   wish to determine what level of thread support is available..N Fortran.N Errors.N MPI_SUCCESS.N ... others@*/int MPI_Query_thread( int *provided ){    static const char FCNAME[] = "MPI_Query_thread";    int mpi_errno = MPI_SUCCESS;    MPID_MPI_STATE_DECL(MPID_STATE_MPI_QUERY_THREAD);    MPID_MPI_FUNC_ENTER(MPID_STATE_MPI_QUERY_THREAD);#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {            if (MPIR_Process.initialized != MPICH_WITHIN_MPI) {                mpi_errno = MPIR_Err_create_code( MPI_ERR_OTHER,                            "**initialized", 0 );            }            if (mpi_errno) {                MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_QUERY_THREAD);                return MPIR_Err_return_comm( 0, FCNAME, mpi_errno );            }        }        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */    /* ... body of routine ...  */    *provided = MPIR_Process.thread_provided;    /* ... end of body of routine ... */    MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_QUERY_THREAD);    return MPI_SUCCESS;}

⌨️ 快捷键说明

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