From 35a69a513365d7cdca79510f8925cdb91b8ebe71 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 6 Oct 2020 21:48:35 -0400 Subject: [PATCH] SU4 x SU4 --- benchmarks/Benchmark_ITT.cc | 78 ++++++++++++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 5 deletions(-) diff --git a/benchmarks/Benchmark_ITT.cc b/benchmarks/Benchmark_ITT.cc index dc09549c..5e1e1f66 100644 --- a/benchmarks/Benchmark_ITT.cc +++ b/benchmarks/Benchmark_ITT.cc @@ -202,6 +202,8 @@ public: return; } + + static void Memory(void) { const int Nvec=8; @@ -266,6 +268,66 @@ public: }; + static void SU4(void) + { + const int Nc4=4; + typedef Lattice< iMatrix< vComplexF,Nc4> > LatticeSU4; + + Coordinate simd_layout = GridDefaultSimd(Nd,vComplexF::Nsimd()); + Coordinate mpi_layout = GridDefaultMpi(); + + std::cout<({45,12,81,9})); + for(int lat=8;lat<=lmax;lat+=8){ + + Coordinate latt_size ({lat*mpi_layout[0],lat*mpi_layout[1],lat*mpi_layout[2],lat*mpi_layout[3]}); + int64_t vol= latt_size[0]*latt_size[1]*latt_size[2]*latt_size[3]; + + GridCartesian Grid(latt_size,simd_layout,mpi_layout); + + NN =Grid.NodeCount(); + + + LatticeSU4 z(&Grid); z=Zero(); + LatticeSU4 x(&Grid); x=Zero(); + LatticeSU4 y(&Grid); y=Zero(); + double a=2.0; + + uint64_t Nloop=NLOOP; + + double start=usecond(); + for(int i=0;i L_list({16,24,32}); + int sel=4; + std::vector L_list({8,12,16,24,32}); int selm1=sel-1; std::vector wilson; @@ -624,7 +687,6 @@ int main (int argc, char ** argv) dwf4.push_back(result); } - /* std::cout<1) ) { std::cout<