diff --git a/benchmarks/Benchmark_dwf_sweep.cc b/benchmarks/Benchmark_dwf_sweep.cc index 2166d657..3dd02962 100644 --- a/benchmarks/Benchmark_dwf_sweep.cc +++ b/benchmarks/Benchmark_dwf_sweep.cc @@ -30,7 +30,6 @@ Author: paboyle using namespace std; using namespace Grid; - ; template struct scal { @@ -60,7 +59,7 @@ int main (int argc, char ** argv) if ( WilsonKernelsStatic::Opt == WilsonKernelsStatic::OptInlineAsm ) std::cout << GridLogMessage<< "* Using Asm Nc=3 WilsonKernels" < latt4(4,16); std::cout< & latt4, int Ls, int threads,int report ) if (ncall < 5 ) exit(0); Dw.Dhop(src,result,0); - +#ifdef PERFCOUNT PerformanceCounter Counter(8); Counter.Start(); +#endif t0=usecond(); for(int i=0;i & latt4, int Ls, int threads, int report ) int ncall =1+(int) ((5.0*1000*1000)/(t1-t0)); #endif +#ifdef PERFCOUNT PerformanceCounter Counter(8); Counter.Start(); +#endif t0=usecond(); for(int i=0;i & latt4, int Ls, int threads, int report ) sr_o = Zero(); sDw.DhopEO(ssrc_o,sr_e,DaggerNo); +#ifdef PERFCOUNT PerformanceCounter CounterSdw(8); CounterSdw.Start(); +#endif t0=usecond(); for(int i=0;i & latt4, int Ls, int threads, int report ) __SSC_STOP; } t1=usecond(); +#ifdef PERFCOUNT CounterSdw.Stop(); - if ( report ) { CounterSdw.Report(); - } else { + } +#endif + + if ( ! report ) { double volume=Ls; for(int mu=0;mu