1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
#if defined(TIME_PER_TIMESTEP) || defined(USE_PAPI_FLOPS) || defined(USE_PCL_FLOPS) |
5 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
6 |
#ifdef TIME_PER_TIMESTEP |
7 |
CCE107 common block for per timestep timing |
8 |
C !TIMING VARIABLES |
9 |
C == Timing variables == |
10 |
REAL*8 utnew, utold, stnew, stold, wtnew, wtold |
11 |
DATA utnew, utold, stnew, stold, wtnew, wtold /6*0.0D0/ |
12 |
#endif |
13 |
#ifdef USE_PAPI_FLOPS |
14 |
CCE107 common block for PAPI summary performance |
15 |
#include <fpapi.h> |
16 |
INTEGER*8 flpops, instr |
17 |
DATA flpops, instr /2*0/ |
18 |
INTEGER check |
19 |
REAL*4 real_time, proc_time, mflops, ipc |
20 |
DATA real_time, proc_time, mflops, ipc /4*0.0E0/ |
21 |
#else |
22 |
#ifdef USE_PCL_FLOPS |
23 |
CCE107 common block for PCL summary performance |
24 |
#include <pclh.f> |
25 |
INTEGER pcl_counter_list(5), flags, nevents, res, ipcl |
26 |
INTEGER*8 i_result(5), descr |
27 |
REAL*8 fp_result(5) |
28 |
COMMON /pclvars/ i_result, descr, fp_result, pcl_counter_list, |
29 |
$ flags, nevents |
30 |
INTEGER nmaxevents |
31 |
PARAMETER (nmaxevents = 61) |
32 |
CHARACTER*22 pcl_counter_name(0:nmaxevents-1) |
33 |
COMMON /pclnames/ pcl_counter_name |
34 |
#endif |
35 |
#endif |
36 |
#endif |