mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Add timing
This commit is contained in:
parent
587bfcc0f4
commit
9ada378e38
@ -207,7 +207,10 @@ void operator() (LinearOperatorBase<Field> &Linop, const Field &src, std::vector
|
|||||||
|
|
||||||
cp=c;
|
cp=c;
|
||||||
MatrixTimer.Start();
|
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();
|
MatrixTimer.Stop();
|
||||||
|
|
||||||
AXPYTimer.Start();
|
AXPYTimer.Start();
|
||||||
@ -253,11 +256,9 @@ void operator() (LinearOperatorBase<Field> &Linop, const Field &src, std::vector
|
|||||||
// Before: 3 x npole + 3 x npole
|
// Before: 3 x npole + 3 x npole
|
||||||
// After : 2 x npole (ps[s]) => 3x speed up of multishift CG.
|
// After : 2 x npole (ps[s]) => 3x speed up of multishift CG.
|
||||||
|
|
||||||
AXPYTimer.Start();
|
|
||||||
if( (!converged[s]) ) {
|
if( (!converged[s]) ) {
|
||||||
axpy(psi[ss],-bs[s]*alpha[s],ps[s],psi[ss]);
|
axpy(psi[ss],-bs[s]*alpha[s],ps[s],psi[ss]);
|
||||||
}
|
}
|
||||||
AXPYTimer.Stop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convergence checks
|
// Convergence checks
|
||||||
|
Loading…
Reference in New Issue
Block a user