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

📄 getpname.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//*  $Id: getpname.c,v 1.3 2002/07/30 21:20:24 toonen Exp $ * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* -- Begin Profiling Symbol Block for routine MPI_Get_processor_name */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Get_processor_name = PMPI_Get_processor_name#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Get_processor_name  MPI_Get_processor_name#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Get_processor_name as PMPI_Get_processor_name#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_Get_processor_name PMPI_Get_processor_name/* 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_Get_processor_name/*@  MPI_Get_processor_name - Gets the name of the processor  Output Parameters:+ name - A unique specifier for the actual (as opposed to virtual) node. This  must be an array of size at least 'MPI_MAX_PROCESSOR_NAME'.- resultlen - Length (in characters) of the name   Notes:  The name returned should identify a particular piece of hardware;   the exact format is implementation defined.  This name may or may not  be the same as might be returned by 'gethostname', 'uname', or 'sysinfo'..N fortran.N Errors.N MPI_SUCCESS@*/int MPI_Get_processor_name( char *name, int *resultlen){    static const char FCNAME[] = "MPI_Get_processor_name";    int mpi_errno = MPI_SUCCESS;    MPID_MPI_STATE_DECL(MPID_STATE_MPI_GET_PROCESSOR_NAME);    MPID_MPI_FUNC_ENTER(MPID_STATE_MPI_GET_PROCESSOR_NAME);#   ifdef HAVE_ERROR_CHECKING    {        MPID_BEGIN_ERROR_CHECKS;        {            MPIR_ERRTEST_INITIALIZED(mpi_errno);	    MPIR_ERRTEST_ARGNULL(name,"name",mpi_errno);	    MPIR_ERRTEST_ARGNULL(resultlen,"resultlen",mpi_errno);            if (mpi_errno) {                MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_GET_PROCESSOR_NAME);                return MPIR_Err_return_comm( NULL, FCNAME, mpi_errno );            }        }        MPID_END_ERROR_CHECKS;    }#   endif /* HAVE_ERROR_CHECKING */    /* ... body of routine ...  */    mpi_errno = MPID_Get_processor_name( name, resultlen );    /* ... end of body of routine ... */    MPID_MPI_FUNC_EXIT(MPID_STATE_MPI_GET_PROCESSOR_NAME);    if (mpi_errno == MPI_SUCCESS)    {	return MPI_SUCCESS;    }    else    {	return MPIR_Err_return_comm( NULL, FCNAME, mpi_errno );    }}

⌨️ 快捷键说明

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