From d1a89af8c9476ef1b322b83dc49261a5ac331e5f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 22 Nov 2019 10:49:10 -0500 Subject: [PATCH] Change to reporting --- Grid/stencil/Stencil.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Grid/stencil/Stencil.h b/Grid/stencil/Stencil.h index b361a19d..37b866cb 100644 --- a/Grid/stencil/Stencil.h +++ b/Grid/stencil/Stencil.h @@ -1233,7 +1233,7 @@ public: }; void Report(void) { -#define AVERAGE(A) _grid->GlobalSum(A);A/=NP; +#define AVERAGE(A) #define PRINTIT(A) AVERAGE(A); std::cout << GridLogMessage << " Stencil " << #A << " "<< A/calls<_Nprocessors; RealD NN = _grid->NodeCount(); @@ -1281,11 +1281,13 @@ public: std::cout << GridLogMessage << " Stencil SHM mem " << (membytes)/gatheralltime/1000. << " GB/s per rank"<