From e4784042915d5f622fefa7e7f4189c11943ae11f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 17 Dec 2019 05:03:25 -0500 Subject: [PATCH] Tuned up significantly on GPU, but another 10x in coarse space required --- tests/solver/Test_dwf_hdcr.cc | 54 ++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/tests/solver/Test_dwf_hdcr.cc b/tests/solver/Test_dwf_hdcr.cc index 74adc417..3e603a26 100644 --- a/tests/solver/Test_dwf_hdcr.cc +++ b/tests/solver/Test_dwf_hdcr.cc @@ -1,4 +1,4 @@ - /************************************************************************************* +/************************************************************************************* Grid physics library, www.github.com/paboyle/Grid @@ -33,7 +33,6 @@ Author: paboyle using namespace std; using namespace Grid; - ; class myclass: Serializable { public: @@ -126,7 +125,7 @@ public: CoarseVector Csol(_CoarseOperator.Grid()); ConjugateGradient CG(1.0e-10,100000); - ConjugateGradient fCG(3.0e-2,1000); + ConjugateGradient fCG(1.0e-3,1000); HermitianLinearOperator HermOp(_CoarseOperator); MdagMLinearOperator MdagMOp(_CoarseOperator); @@ -191,7 +190,7 @@ public: CoarseVector Csol(_CoarseOperator.Grid()); Csol=Zero(); ConjugateGradient CG(1.0e-10,100000); - ConjugateGradient fCG(3.0e-2,1000); + ConjugateGradient fCG(1.0e-3,1000); HermitianLinearOperator HermOp(_CoarseOperator); MdagMLinearOperator MdagMOp(_CoarseOperator); @@ -279,8 +278,7 @@ public: Chebyshev Cheby (params.lo,params.hi,params.order,InverseApproximation); Chebyshev ChebyAccu(params.lo,params.hi,params.order,InverseApproximation); - _Aggregates.ProjectToSubspace (Csrc,in); - + // _Aggregates.ProjectToSubspace (Csrc,in); // _Aggregates.PromoteFromSubspace(Csrc,out); // std::cout< PosdefLdop(LDOp); - ConjugateGradient CG(1.0e-6,100000); + ConjugateGradient CG(1.0e-2,100000); CG(PosdefLdop,c_src,c_res); + /* std::cout< HermIndefLdop(LDOp); // ConjugateResidual MCR(1.0e-6,100000); // MCR(HermIndefLdop,c_src,c_res); @@ -489,10 +503,10 @@ int main (int argc, char ** argv) // HermIndefOpDD,DdwfDD); // TrivialPrecon simple; - std::cout< fCG(1.0e-8,100000); // fCG(HermDefOp,src,result); - std::cout< HermOpEO(Ddwf); - ConjugateGradient pCG(1.0e-8,10000); + // std::cout< HermOpEO(Ddwf); + // ConjugateGradient pCG(1.0e-8,10000); // pCG(HermOpEO,src_o,result_o); // std::cout<