mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
enable counters in Benchmark_wilson
This commit is contained in:
parent
250008372f
commit
5cb3530c34
@ -153,6 +153,11 @@ int main (int argc, char ** argv)
|
||||
std::cout<<GridLogMessage << "Calling Dw"<<std::endl;
|
||||
int ncall=1000;
|
||||
//int ncall=1;
|
||||
|
||||
// Counters
|
||||
Dw.ZeroCounters();
|
||||
FGrid->Barrier();
|
||||
|
||||
double t0=usecond();
|
||||
for(int i=0;i<ncall;i++){
|
||||
Dw.Dhop(src,result,0);
|
||||
@ -181,10 +186,15 @@ int main (int argc, char ** argv)
|
||||
std::cout<<GridLogMessage << "norm result "<< norm2(result)<<std::endl;
|
||||
std::cout<<GridLogMessage << "norm ref "<< norm2(ref)<<std::endl;
|
||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t1-t0)<<std::endl;
|
||||
std::cout<<GridLogMessage << "GiB/s (base 2) = "<< 1000000. * data/((t1-t0))<<std::endl;
|
||||
//std::cout<<GridLogMessage << "GiB/s (base 2) = "<< 1000000. * data/((t1-t0))<<std::endl;
|
||||
err = ref-result;
|
||||
std::cout<<GridLogMessage << "norm diff "<< norm2(err)<<std::endl;
|
||||
|
||||
// Counters
|
||||
FGrid->Barrier();
|
||||
Dw.report();
|
||||
|
||||
|
||||
// guard
|
||||
double err0 = norm2(err);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user