From 86da1a2793b81866c4a5ecd61e35e27e382f331c Mon Sep 17 00:00:00 2001 From: Bartosz Kostrzewa Date: Wed, 16 Mar 2016 12:00:38 +0100 Subject: [PATCH] benchmark: estimate good number of iterations also for D_psi and give nicer output --- benchmark.c | 72 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/benchmark.c b/benchmark.c index 3579e580f..622f08f35 100644 --- a/benchmark.c +++ b/benchmark.c @@ -275,6 +275,7 @@ int main(int argc,char *argv[]) } } dt = gettime()-t1; + // division by g_nproc because we will average over processes j = (int)(ceil(j_max*31.0/dt/g_nproc)); #ifdef MPI MPI_Allreduce(&j,&j_max, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD); @@ -378,56 +379,75 @@ int main(int argc,char *argv[]) else { /* the non even/odd case now */ /*initialize the pseudo-fermion fields*/ - j_max=1; + j_max=128; sdt=0.; for (k=0;k