33 #ifdef SGI_HW_COUNTERS
34 extern "C" int start_counters(
int e0,
int e1);
35 extern "C" int read_counters(
int e0,
long long *c0,
int e1,
long long *c21);
42 : totalcyc_m(0), totalinst_m(0), c0_m(0), c21_m(0),
43 #ifdef SGI_HW_COUNTERS
46 gen_start_m(0), gen_read_m(0),
47 category_m(category), msg_m(
"Counter")
61 #ifdef SGI_HW_COUNTERS
71 #ifdef SGI_HW_COUNTERS
76 msg_m <<
"Lost counters! MFLOPS Counters not working." <<
endl;
88 double cpu_mhz = 195.0, totalmflops = 0.0, totalsofar = 0.0;
89 double maxmflops = 0.0, minmflops = 0.0;
90 double mflops = 0.0, runMflops = 0.0;
93 mflops = double(
c21_m) / double(
c0_m) * cpu_mhz;
105 msg_m <<
", min = " << minmflops <<
", max = " << maxmflops;
106 msg_m <<
", duration = " << totalsofar <<
endl;
bool reduce(Communicate &, InputIterator, InputIterator, OutputIterator, const ReduceOp &, bool *IncludeVal=0)
Inform & endl(Inform &inf)
IpplCounter(const char *category)