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