From d0ee38d1da4631aa8d218ff6580511907d4ea2e0 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 22 Oct 2025 21:44:51 -0400 Subject: [PATCH] Clean up --- tests/debug/Test_icosahedron.cc | 84 ++++++++------------------------- 1 file changed, 19 insertions(+), 65 deletions(-) diff --git a/tests/debug/Test_icosahedron.cc b/tests/debug/Test_icosahedron.cc index 1c7c4127..c75046d1 100644 --- a/tests/debug/Test_icosahedron.cc +++ b/tests/debug/Test_icosahedron.cc @@ -97,14 +97,10 @@ public: autoView(stencil_v,FaceStencil,AcceleratorRead); accelerator_for(ss,EdgeGrid->oSites(),vComplex::Nsimd(),{ - - const int x = IcosahedronPatchX; - const int y = IcosahedronPatchY; - const int d = IcosahedronPatchDiagonal; - auto Lx = Umu_v(ss)(x); - auto Ly = Umu_v(ss)(y); - auto Ld = Umu_v(ss)(d); + auto Lx = Umu_v(ss)(IcosahedronPatchX); + auto Ly = Umu_v(ss)(IcosahedronPatchY); + auto Ld = Umu_v(ss)(IcosahedronPatchDiagonal); // for trace [ U_x(z) U_y(z+\hat x) adj(U_d(z)) ] { @@ -119,8 +115,6 @@ public: coalescedWrite(plaq1_v[ss](),trace(Lx*L1*adj(Ld) ) ); } - // This was wrong after GT - // Could be EITHER the GT or the the plaq / stencil // for trace [ U_y(z) U_x(z+\hat y) adj(U_d(z)) ] { auto SE2 = stencil_v.GetEntry(1,ss); @@ -131,7 +125,6 @@ public: if(doAdj) L2 = adj(L2); coalescedWrite(plaq2_v[ss](),trace(Ly*L2*adj(Ld) ) ); - // std::cout << "site "<< ss<<" plaq "<< plaq2_v[ss] << " doAdj "<< (int) doAdj<<" pol "<<(int) pol <oSites(),vComplex::Nsimd(),{ - const int ent_Xp = 0; - const int ent_Yp = 1; - const int ent_Xm = 3; - const int ent_Ym = 4; - - Integer lexXp = ss*np+ent_Xp; - Integer lexYp = ss*np+ent_Yp; - Integer lexXm = ss*np+ent_Xm; - Integer lexYm = ss*np+ent_Ym; - // Integer lexDp = ss*np+2; // Not touched by staples. - // Integer lexDm = ss*np+5; - - const int x = IcosahedronPatchX; - const int y = IcosahedronPatchY; - const int d = IcosahedronPatchDiagonal; - // Three forward links from this site - auto Lx = Umu_v(ss)(x); - auto Ly = Umu_v(ss)(y); - auto Ld = Umu_v(ss)(d); + auto Lx = Umu_v(ss)(IcosahedronPatchX); + auto Ly = Umu_v(ss)(IcosahedronPatchY); + auto Ld = Umu_v(ss)(IcosahedronPatchDiagonal); /////////////////////////////////////////////////////////////////// // Terms for the staple orthog to PlusDiagonal @@ -283,9 +265,6 @@ public: const int np = NNvv._npoints; - std::cout << GridLogMessage<< "Free Laplacian via STENCIL "<oSites(),vComplex::Nsimd(),{ - const int ent_Xp = 0; - const int ent_Yp = 1; - const int ent_Dp = 2; - - Integer lexXp = ss*np+ent_Xp; - Integer lexYp = ss*np+ent_Yp; - Integer lexDp = ss*np+ent_Dp; - // Three forward links from this site auto Lx = Umu_v(ss)(IcosahedronPatchX); auto Ly = Umu_v(ss)(IcosahedronPatchY); @@ -389,7 +364,6 @@ public: } /* * This routine is slow and single threaded on CPU - */ void GaugeTransformCPU(GaugeLinkField >, GaugeField &Umu) { assert(gt.Grid()==VertexGrid); @@ -407,9 +381,7 @@ public: uint64_t Spole_sites = grid->SouthPoleOsites(); Coordinate pcoor = grid->ThisProcessorCoor(); Coordinate pgrid = grid->ProcessorGrid(); - /* - * resize the stencil entries array and set npoints - */ + autoView(g_v,gt,CpuRead); autoView(Umu_v,Umu,CpuWrite); for(uint64_t site=0;site