From 32762346ad61e46442a7468304b58caf00dd63ab Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 4 Nov 2015 03:25:34 -0800 Subject: [PATCH] Better run time on KNC --- benchmarks/Benchmark_memory_bandwidth.cc | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/benchmarks/Benchmark_memory_bandwidth.cc b/benchmarks/Benchmark_memory_bandwidth.cc index 4fd60a7d..cf6f642c 100644 --- a/benchmarks/Benchmark_memory_bandwidth.cc +++ b/benchmarks/Benchmark_memory_bandwidth.cc @@ -28,7 +28,7 @@ int main (int argc, char ** argv) std::cout< latt_size ({lat*mpi_layout[0],lat*mpi_layout[1],lat*mpi_layout[2],lat*mpi_layout[3]}); @@ -37,11 +37,11 @@ int main (int argc, char ** argv) uint64_t Nloop=NLOOP; - GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); + // GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); - LatticeVec z(&Grid); random(pRNG,z); - LatticeVec x(&Grid); random(pRNG,x); - LatticeVec y(&Grid); random(pRNG,y); + LatticeVec z(&Grid); //random(pRNG,z); + LatticeVec x(&Grid); //random(pRNG,x); + LatticeVec y(&Grid); //random(pRNG,y); double a=2.0; @@ -72,11 +72,11 @@ int main (int argc, char ** argv) int vol = latt_size[0]*latt_size[1]*latt_size[2]*latt_size[3]; GridCartesian Grid(latt_size,simd_layout,mpi_layout); - GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); + // GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); - LatticeVec z(&Grid); random(pRNG,z); - LatticeVec x(&Grid); random(pRNG,x); - LatticeVec y(&Grid); random(pRNG,y); + LatticeVec z(&Grid); //random(pRNG,z); + LatticeVec x(&Grid); //random(pRNG,x); + LatticeVec y(&Grid); //random(pRNG,y); double a=2.0; uint64_t Nloop=NLOOP; @@ -110,11 +110,11 @@ int main (int argc, char ** argv) GridCartesian Grid(latt_size,simd_layout,mpi_layout); - GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); + // GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); - LatticeVec z(&Grid); random(pRNG,z); - LatticeVec x(&Grid); random(pRNG,x); - LatticeVec y(&Grid); random(pRNG,y); + LatticeVec z(&Grid); //random(pRNG,z); + LatticeVec x(&Grid); //random(pRNG,x); + LatticeVec y(&Grid); //random(pRNG,y); RealD a=2.0; @@ -145,10 +145,10 @@ int main (int argc, char ** argv) uint64_t Nloop=NLOOP; GridCartesian Grid(latt_size,simd_layout,mpi_layout); - GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); - LatticeVec z(&Grid); random(pRNG,z); - LatticeVec x(&Grid); random(pRNG,x); - LatticeVec y(&Grid); random(pRNG,y); + // GridParallelRNG pRNG(&Grid); pRNG.SeedRandomDevice(); + LatticeVec z(&Grid); //random(pRNG,z); + LatticeVec x(&Grid); //random(pRNG,x); + LatticeVec y(&Grid); //random(pRNG,y); RealD a=2.0; Real nn; double start=usecond();