1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00

more digits

This commit is contained in:
Peter Boyle 2015-05-16 04:33:40 +01:00
parent 9e29fb2c6a
commit aff5254208

View File

@ -40,7 +40,7 @@ int main (int argc, char ** argv)
double bytes=3.0*lat*lat*lat*lat*Nc*Nc*sizeof(Complex); double bytes=3.0*lat*lat*lat*lat*Nc*Nc*sizeof(Complex);
double footprint=2.0*lat*lat*lat*lat*Nc*Nc*sizeof(Complex); double footprint=2.0*lat*lat*lat*lat*Nc*Nc*sizeof(Complex);
double flops=Nc*Nc*(6.0+8.0+8.0)*lat*lat*lat*lat; double flops=Nc*Nc*(6.0+8.0+8.0)*lat*lat*lat*lat;
std::cout<<std::setprecision(2) << lat<<"\t\t"<<footprint<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl; std::cout<<std::setprecision(3) << lat<<"\t\t"<<footprint<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl;
} }
@ -71,7 +71,7 @@ int main (int argc, char ** argv)
double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex); double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex);
double flops=Nc*Nc*(6+8+8)*lat*lat*lat*lat; double flops=Nc*Nc*(6+8+8)*lat*lat*lat*lat;
std::cout<<std::setprecision(2) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl; std::cout<<std::setprecision(3) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl;
} }
@ -101,7 +101,7 @@ int main (int argc, char ** argv)
double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex); double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex);
double flops=Nc*Nc*(6+8+8)*lat*lat*lat*lat; double flops=Nc*Nc*(6+8+8)*lat*lat*lat*lat;
std::cout<<std::setprecision(2) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl; std::cout<<std::setprecision(3) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl;
} }
@ -131,7 +131,7 @@ int main (int argc, char ** argv)
double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex); double bytes=3*lat*lat*lat*lat*Nc*Nc*sizeof(Complex);
double flops=Nc*Nc*(8+8+8)*lat*lat*lat*lat; double flops=Nc*Nc*(8+8+8)*lat*lat*lat*lat;
std::cout<<std::setprecision(2) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl; std::cout<<std::setprecision(3) << lat<<"\t\t"<<bytes<<"\t\t"<<bytes/time<<"\t\t" << flops/time<<std::endl;
} }