From 00b92a91b55e3861cfe46a90aac87d2736520515 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 28 Jul 2018 23:46:22 +0100 Subject: [PATCH] Optimising --- benchmarks/Benchmark_meson_field.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/benchmarks/Benchmark_meson_field.cc b/benchmarks/Benchmark_meson_field.cc index 9d7beeec..d007fc7b 100644 --- a/benchmarks/Benchmark_meson_field.cc +++ b/benchmarks/Benchmark_meson_field.cc @@ -507,8 +507,7 @@ void sliceInnerProductMesonFieldGammaMom(std::vector< std::vector > &m for(int n=0;n > phase(Nmom); - for(int m=0;m > &m }} // After getting the sitewise product do the mom phase loop + int base = Nmom*i+Nmom*Lblock*j+Nmom*Lblock*Rblock*r; + // Trigger unroll for ( int m=0;m mpi_layout = GridDefaultMpi(); GridCartesian Grid(latt_size,simd_layout,mpi_layout); - int Nmom=7; + const int Nmom=7; int nt = latt_size[Tp]; uint64_t vol = 1; for(int d=0;d