From 7db3b96d2d1f4317e58aaefa911f81cfeef78c6b Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 19 Aug 2026 19:49:26 -0400 Subject: [PATCH] Deprecate D2 fields --- benchmarks/Benchmark_prec_change.cc | 48 +---------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) 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(); }