From 6f1328160c92ff25d04026f275552e34d7e5a7a5 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 25 Jul 2024 18:05:40 +0000 Subject: [PATCH] Remove SVM use --- Grid/lattice/Lattice_reduction.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Grid/lattice/Lattice_reduction.h b/Grid/lattice/Lattice_reduction.h index 7b66c31d..a0abddd4 100644 --- a/Grid/lattice/Lattice_reduction.h +++ b/Grid/lattice/Lattice_reduction.h @@ -264,24 +264,8 @@ inline ComplexD rankInnerProduct(const Lattice &left,const Lattice & const uint64_t sites = grid->oSites(); // Might make all code paths go this way. -#if 0 - typedef decltype(innerProductD(vobj(),vobj())) inner_t; - Vector inner_tmp(sites); - auto inner_tmp_v = &inner_tmp[0]; - { - autoView( left_v , left, AcceleratorRead); - autoView( right_v,right, AcceleratorRead); - // This code could read coalesce - // GPU - SIMT lane compliance... - accelerator_for( ss, sites, nsimd,{ - auto x_l = left_v(ss); - auto y_l = right_v(ss); - coalescedWrite(inner_tmp_v[ss],innerProductD(x_l,y_l)); - }); - } -#else typedef decltype(innerProduct(vobj(),vobj())) inner_t; - Vector inner_tmp(sites); + deviceVector inner_tmp(sites); auto inner_tmp_v = &inner_tmp[0]; { @@ -295,7 +279,6 @@ inline ComplexD rankInnerProduct(const Lattice &left,const Lattice & coalescedWrite(inner_tmp_v[ss],innerProduct(x_l,y_l)); }); } -#endif // This is in single precision and fails some tests auto anrm = sumD(inner_tmp_v,sites); nrm = anrm;