1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Add timing

This commit is contained in:
Azusa Yamaguchi 2018-05-04 10:58:01 +01:00
parent 587bfcc0f4
commit 9ada378e38

View File

@ -207,7 +207,10 @@ void operator() (LinearOperatorBase<Field> &Linop, const Field &src, std::vector
cp=c;
MatrixTimer.Start();
Linop.HermOpAndNorm(p,mmp,d,qq);
//Linop.HermOpAndNorm(p,mmp,d,qq); // d is used
Linop.HermOp(p,mmp);
d=real(innerProduct(p,mmp));
MatrixTimer.Stop();
AXPYTimer.Start();
@ -253,11 +256,9 @@ void operator() (LinearOperatorBase<Field> &Linop, const Field &src, std::vector
// Before: 3 x npole + 3 x npole
// After : 2 x npole (ps[s]) => 3x speed up of multishift CG.
AXPYTimer.Start();
if( (!converged[s]) ) {
axpy(psi[ss],-bs[s]*alpha[s],ps[s],psi[ss]);
}
AXPYTimer.Stop();
}
// Convergence checks