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

📄 wtime.c

📁 刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件
💻 C
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//*  $Id: wtime.c,v 1.6 2002/07/17 07:23:17 ashton Exp $ * *  (C) 2001 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. */#include "mpiimpl.h"/* -- Begin Profiling Symbol Block for routine MPI_Wtime */#if defined(HAVE_PRAGMA_WEAK)#pragma weak MPI_Wtime = PMPI_Wtime#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#pragma _HP_SECONDARY_DEF PMPI_Wtime  MPI_Wtime#elif defined(HAVE_PRAGMA_CRI_DUP)#pragma _CRI duplicate MPI_Wtime as PMPI_Wtime#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_Wtime PMPI_Wtime#endif#include "timerconf.h"/*@  MPI_Wtime - Returns an elapsed time on the calling processor  Return value:  Time in seconds since an arbitrary time in the past.  Notes:  This is intended to be a high-resolution, elapsed (or wall) clock.  See 'MPI_WTICK' to determine the resolution of 'MPI_WTIME'.  If the attribute 'MPI_WTIME_IS_GLOBAL' is defined and true, then the  value is synchronized across all processes in 'MPI_COMM_WORLD'.    Notes for Fortran:  This is a function, declared as 'DOUBLE PRECISION MPI_WTIME()' in Fortran..see also: MPI_Wtick, MPI_Comm_get_attr, MPI_Attr_get@*/double MPI_Wtime( void ){    double d;    MPID_Time_t t;    MPID_Wtime( &t );    MPID_Wtime_todouble( &t, &d );    return d;}

⌨️ 快捷键说明

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