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

📄 init.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//*  $Id: init.c,v 1.20 2002/07/25 23:10:53 thakur Exp $ * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"#include "mpi_init.h"/* -- Begin Profiling Symbol Block for routine MPI_Init */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Init = PMPI_Init#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Init  MPI_Init#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Init as PMPI_Init#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_Init PMPI_Init/* Fortran logical values. extern'd in mpiimpl.h */MPI_Fint MPIR_F_TRUE, MPIR_F_FALSE;/* Any internal routines can go here.  Make them static if possible */#endif#undef FUNCNAME#define FUNCNAME MPI_Init/*@   MPI_Init - Initialize the MPI execution environment   Input Parameters:+  argc - Pointer to the number of arguments -  argv - Pointer to the argument vector   Notes:.N Errors.N MPI_SUCCESS@*/int MPI_Init( int *argc, char ***argv ){    static const char FCNAME[] = "MPI_Init";    int mpi_errno = MPI_SUCCESS;    MPID_MPI_INIT_STATE_DECL(MPID_STATE_MPI_INIT);    MPID_MPI_INIT_FUNC_ENTER(MPID_STATE_MPI_INIT);#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {            if (MPIR_Process.initialized != MPICH_PRE_INIT) {                mpi_errno = MPIR_Err_create_code( MPI_ERR_OTHER,                            "**inittwice", 0 );	    }            if (mpi_errno) {                MPID_MPI_INIT_FUNC_EXIT(MPID_STATE_MPI_INIT);                return MPIR_Err_return_comm( 0, FCNAME, mpi_errno );            }        }        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */    mpi_errno = MPIR_Init_thread( argc, argv, MPI_THREAD_SINGLE, (int *)0 );#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {            if (mpi_errno) {                MPID_MPI_INIT_FUNC_EXIT(MPID_STATE_MPI_INIT);                return MPIR_Err_return_comm( 0, FCNAME, mpi_errno );            }        }        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */    MPID_MPI_INIT_FUNC_EXIT(MPID_STATE_MPI_INIT);    return MPI_SUCCESS;}

⌨️ 快捷键说明

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