diff --git a/benchmarks/Benchmark_prec_change.cc b/benchmarks/Benchmark_prec_change.cc index ba34f87ef..d27d5e3cc 100644 --- a/benchmarks/Benchmark_prec_change.cc +++ b/benchmarks/Benchmark_prec_change.cc @@ -33,6 +33,7 @@ using namespace Grid; int main (int argc, char ** argv) { + Grid_init(&argc,&argv); int Ls = 12; @@ -61,9 +62,6 @@ int main (int argc, char ** argv) LatticeFermionD field_d(FGridD), tmp_d(FGridD); random(RNG5,field_d); tmp_d = field_d; - LatticeFermionD2 field_d2(FGridF), tmp_d2(FGridF); - precisionChange(field_d2, field_d); tmp_d2 = field_d2; - LatticeFermionF field_f(FGridF), tmp_f(FGridF); precisionChange(field_f, field_d); tmp_f = field_f; @@ -141,49 +139,5 @@ int main (int argc, char ** argv) } std::cout << "d->s " << time_ds/N << "us" << " s->d " << time_sd/N << "us" << std::endl; - - std::cout<double2 (fields initially device-resident)" << std::endl; - time_sd = time_ds = 0; - for(int i=0;is " << time_ds/N << "us" << " s->d " << time_sd/N << "us" << std::endl; - - - std::cout<double2 through standard precisionChange call(fields initially device-resident) [NB: perf should be the same as the previous test!]" << std::endl; - time_sd = time_ds = 0; - for(int i=0;is " << time_ds/N << "us" << " s->d " << time_sd/N << "us" << std::endl; - Grid_finalize(); }