From 10f7a17ae48c16276976024928c2facb39341c4a Mon Sep 17 00:00:00 2001 From: Daniel Richtmann Date: Thu, 11 Jan 2018 13:42:18 +0100 Subject: [PATCH] Make timing in VPGCR more detailed --- .../PrecGeneralisedConjugateResidual.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/algorithms/iterative/PrecGeneralisedConjugateResidual.h b/lib/algorithms/iterative/PrecGeneralisedConjugateResidual.h index fd11352e..c723c4a9 100644 --- a/lib/algorithms/iterative/PrecGeneralisedConjugateResidual.h +++ b/lib/algorithms/iterative/PrecGeneralisedConjugateResidual.h @@ -139,8 +139,11 @@ namespace Grid { MatTimer.Start(); Linop.HermOpAndNorm(psi,Az,zAz,zAAz); MatTimer.Stop(); + + LinalgTimer.Start(); r=src-Az; - + LinalgTimer.Stop(); + ///////////////////// // p = Prec(r) ///////////////////// @@ -152,8 +155,10 @@ namespace Grid { Linop.HermOp(z,tmp); MatTimer.Stop(); + LinalgTimer.Start(); ttmp=tmp; tmp=tmp-r; + LinalgTimer.Stop(); /* std::cout<