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

📄 wtimef.c

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 C
字号:
/* wtime.c *//* Custom Fortran interface file */#include "mpi_fortimpl.h"#if defined(MPI_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_PRAGMA_WEAK)#if defined(F77_NAME_UPPER)#pragma weak MPI_WTIME = PMPI_WTIMEdouble MPI_WTIME ( void );#elif defined(F77_NAME_LOWER_2USCORE)#pragma weak mpi_wtime__ = pmpi_wtime__double mpi_wtime__ ( void );#elif !defined(F77_NAME_LOWER_USCORE)#pragma weak mpi_wtime = pmpi_wtimedouble mpi_wtime ( void );#else#pragma weak mpi_wtime_ = pmpi_wtime_double mpi_time_ ( void );#endif#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#if defined(F77_NAME_UPPER)#pragma _HP_SECONDARY_DEF PMPI_WTIME  MPI_WTIME#elif defined(F77_NAME_LOWER_2USCORE)#pragma _HP_SECONDARY_DEF pmpi_wtime__  mpi_wtime__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _HP_SECONDARY_DEF pmpi_wtime  mpi_wtime#else#pragma _HP_SECONDARY_DEF pmpi_wtime_  mpi_wtime_#endif#elif defined(HAVE_PRAGMA_CRI_DUP)#if defined(F77_NAME_UPPER)#pragma _CRI duplicate MPI_WTIME as PMPI_WTIME#elif defined(F77_NAME_LOWER_2USCORE)#pragma _CRI duplicate mpi_wtime__ as pmpi_wtime__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _CRI duplicate mpi_wtime as pmpi_wtime#else#pragma _CRI duplicate mpi_wtime_ as pmpi_wtime_#endif/* end of weak pragmas */#endif/* Include mapping from MPI->PMPI */#include "mpiprof.h"/* Insert the prototypes for the PMPI routines */#undef __MPI_BINDINGS#include "binding.h"#endif#ifdef F77_NAME_UPPER#define mpi_wtime_ PMPI_WTIME#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_wtime_ pmpi_wtime__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_wtime_ pmpi_wtime#else#define mpi_wtime_ pmpi_wtime_#endif#else#ifdef F77_NAME_UPPER#define mpi_wtime_ MPI_WTIME#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_wtime_ mpi_wtime__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_wtime_ mpi_wtime#endif#endif/* Prototype to suppress warnings about missing prototypes */FORTRAN_API double FORT_CALL mpi_wtime_ ( void );FORTRAN_API double FORT_CALL mpi_wtime_(){    return MPI_Wtime();}

⌨️ 快捷键说明

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