mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-04 19:25:56 +01:00
Make tests all compile ccurrent Grid, mostly MdagM removal of norms fixes but a few minor
issues fiixed too
This commit is contained in:
parent
0e3c49f687
commit
8b5b55b682
@ -28,13 +28,12 @@ See the full license in the file "LICENSE" in the top level distribution directo
|
|||||||
|
|
||||||
#include <Grid/Grid.h>
|
#include <Grid/Grid.h>
|
||||||
|
|
||||||
#if defined(GRID_COMMS_NONE)
|
|
||||||
#error This test requires Grid compiled with MPI
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
#if !defined(GRID_COMMS_NONE)
|
||||||
Grid_init(&argc, &argv);
|
Grid_init(&argc, &argv);
|
||||||
|
|
||||||
auto simd_layout = GridDefaultSimd(Nd, vComplex::Nsimd());
|
auto simd_layout = GridDefaultSimd(Nd, vComplex::Nsimd());
|
||||||
@ -81,4 +80,5 @@ int main(int argc, char** argv) {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
Grid_finalize();
|
Grid_finalize();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -238,11 +238,11 @@ void TestWhat(What & Ddwf,
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<What,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<What,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -218,11 +218,11 @@ int main (int argc, char ** argv)
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<DomainWallEOFAFermionR,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<DomainWallEOFAFermionR,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e, dchi_e, t1, t2);
|
HermOpEO.MpcDagMpc(chi_e, dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o, dchi_o, t1, t2);
|
HermOpEO.MpcDagMpc(chi_o, dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e, dphi_e, t1, t2);
|
HermOpEO.MpcDagMpc(phi_e, dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o, dphi_o, t1, t2);
|
HermOpEO.MpcDagMpc(phi_o, dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e, dchi_e);
|
pDce = innerProduct(phi_e, dchi_e);
|
||||||
pDco = innerProduct(phi_o, dchi_o);
|
pDco = innerProduct(phi_o, dchi_o);
|
||||||
|
@ -216,11 +216,11 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
|
|
||||||
SchurDiagMooeeOperator<DomainWallFermionR,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<DomainWallFermionR,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -201,11 +201,11 @@ int main (int argc, char ** argv)
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<GparityWilsonFermionR,FermionField> HermOpEO(Dw);
|
SchurDiagMooeeOperator<GparityWilsonFermionR,FermionField> HermOpEO(Dw);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -220,11 +220,11 @@ int main (int argc, char ** argv)
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<MobiusEOFAFermionR,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<MobiusEOFAFermionR,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e, dchi_e, t1, t2);
|
HermOpEO.MpcDagMpc(chi_e, dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o, dchi_o, t1, t2);
|
HermOpEO.MpcDagMpc(chi_o, dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e, dphi_e, t1, t2);
|
HermOpEO.MpcDagMpc(phi_e, dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o, dphi_o, t1, t2);
|
HermOpEO.MpcDagMpc(phi_o, dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e, dchi_e);
|
pDce = innerProduct(phi_e, dchi_e);
|
||||||
pDco = innerProduct(phi_o, dchi_o);
|
pDco = innerProduct(phi_o, dchi_o);
|
||||||
|
@ -266,11 +266,11 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
|
|
||||||
SchurDiagMooeeOperator<MobiusFermionR,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<MobiusFermionR,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -270,11 +270,11 @@ int main (int argc, char ** argv)
|
|||||||
pickCheckerboard(Odd ,phi_o,phi);
|
pickCheckerboard(Odd ,phi_o,phi);
|
||||||
|
|
||||||
SchurDiagMooeeOperator<ImprovedStaggeredFermionR,FermionField> HermOpEO(Ds);
|
SchurDiagMooeeOperator<ImprovedStaggeredFermionR,FermionField> HermOpEO(Ds);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -289,11 +289,11 @@ int main (int argc, char ** argv)
|
|||||||
pickCheckerboard(Odd ,phi_o,phi);
|
pickCheckerboard(Odd ,phi_o,phi);
|
||||||
|
|
||||||
SchurDiagMooeeOperator<ImprovedStaggeredFermion5DR,FermionField> HermOpEO(Ds);
|
SchurDiagMooeeOperator<ImprovedStaggeredFermion5DR,FermionField> HermOpEO(Ds);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -207,11 +207,11 @@ int main (int argc, char ** argv)
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<WilsonFermionR,LatticeFermion> HermOpEO(Dw);
|
SchurDiagMooeeOperator<WilsonFermionR,LatticeFermion> HermOpEO(Dw);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -208,11 +208,11 @@ int main (int argc, char ** argv)
|
|||||||
RealD t1,t2;
|
RealD t1,t2;
|
||||||
|
|
||||||
SchurDiagMooeeOperator<WilsonTMFermionR,LatticeFermion> HermOpEO(Dw);
|
SchurDiagMooeeOperator<WilsonTMFermionR,LatticeFermion> HermOpEO(Dw);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -280,11 +280,11 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
|
|
||||||
SchurDiagMooeeOperator<ZMobiusFermionR,LatticeFermion> HermOpEO(Ddwf);
|
SchurDiagMooeeOperator<ZMobiusFermionR,LatticeFermion> HermOpEO(Ddwf);
|
||||||
HermOpEO.MpcDagMpc(chi_e,dchi_e,t1,t2);
|
HermOpEO.MpcDagMpc(chi_e,dchi_e);
|
||||||
HermOpEO.MpcDagMpc(chi_o,dchi_o,t1,t2);
|
HermOpEO.MpcDagMpc(chi_o,dchi_o);
|
||||||
|
|
||||||
HermOpEO.MpcDagMpc(phi_e,dphi_e,t1,t2);
|
HermOpEO.MpcDagMpc(phi_e,dphi_e);
|
||||||
HermOpEO.MpcDagMpc(phi_o,dphi_o,t1,t2);
|
HermOpEO.MpcDagMpc(phi_o,dphi_o);
|
||||||
|
|
||||||
pDce = innerProduct(phi_e,dchi_e);
|
pDce = innerProduct(phi_e,dchi_e);
|
||||||
pDco = innerProduct(phi_o,dchi_o);
|
pDco = innerProduct(phi_o,dchi_o);
|
||||||
|
@ -57,6 +57,7 @@ public:
|
|||||||
// Support for coarsening to a multigrid
|
// Support for coarsening to a multigrid
|
||||||
void OpDiag (const Field &in, Field &out) {};
|
void OpDiag (const Field &in, Field &out) {};
|
||||||
void OpDir (const Field &in, Field &out,int dir,int disp){};
|
void OpDir (const Field &in, Field &out,int dir,int disp){};
|
||||||
|
void OpDirAll (const Field &in, std::vector<Field> &out) {}; // Abstract base
|
||||||
|
|
||||||
void Op (const Field &in, Field &out){
|
void Op (const Field &in, Field &out){
|
||||||
out = scale * in;
|
out = scale * in;
|
||||||
|
@ -70,9 +70,6 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
SU3::HotConfiguration(RNG4,Umu);
|
SU3::HotConfiguration(RNG4,Umu);
|
||||||
|
|
||||||
TrivialPrecon<LatticeFermion> simple;
|
|
||||||
|
|
||||||
PrecGeneralisedConjugateResidual<LatticeFermion> PGCR(1.0e-6,10000,simple,4,160);
|
|
||||||
|
|
||||||
ConjugateResidual<LatticeFermion> CR(1.0e-6,10000);
|
ConjugateResidual<LatticeFermion> CR(1.0e-6,10000);
|
||||||
|
|
||||||
@ -86,15 +83,19 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage<<"* Solving with MdagM VPGCR "<<std::endl;
|
std::cout<<GridLogMessage<<"* Solving with MdagM VPGCR "<<std::endl;
|
||||||
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
||||||
MdagMLinearOperator<DomainWallFermionR,LatticeFermion> HermOp(Ddwf);
|
MdagMLinearOperator<DomainWallFermionR,LatticeFermion> HermOp(Ddwf);
|
||||||
|
TrivialPrecon<LatticeFermion> simple;
|
||||||
|
PrecGeneralisedConjugateResidual<LatticeFermion> PGCR(1.0e-6,10000,HermOp,simple,4,160);
|
||||||
|
|
||||||
result=Zero();
|
result=Zero();
|
||||||
PGCR(HermOp,src,result);
|
PGCR(src,result);
|
||||||
|
|
||||||
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
||||||
std::cout<<GridLogMessage<<"* Solving with g5-VPGCR "<<std::endl;
|
std::cout<<GridLogMessage<<"* Solving with g5-VPGCR "<<std::endl;
|
||||||
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
||||||
Gamma5R5HermitianLinearOperator<DomainWallFermionR,LatticeFermion> g5HermOp(Ddwf);
|
Gamma5R5HermitianLinearOperator<DomainWallFermionR,LatticeFermion> g5HermOp(Ddwf);
|
||||||
|
PrecGeneralisedConjugateResidual<LatticeFermion> PGCR5(1.0e-6,10000,g5HermOp,simple,4,160);
|
||||||
result=Zero();
|
result=Zero();
|
||||||
PGCR(g5HermOp,src,result);
|
PGCR5(src,result);
|
||||||
|
|
||||||
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
std::cout<<GridLogMessage<<"*********************************************************"<<std::endl;
|
||||||
std::cout<<GridLogMessage<<"* Solving with MdagM-CR "<<std::endl;
|
std::cout<<GridLogMessage<<"* Solving with MdagM-CR "<<std::endl;
|
||||||
|
@ -128,9 +128,7 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
HermOp4d.Report();
|
|
||||||
}
|
}
|
||||||
Ds4d.Report();
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
|
|
||||||
|
|
||||||
@ -148,9 +146,7 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
HermOp.Report();
|
|
||||||
}
|
}
|
||||||
Ds.Report();
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
@ -167,10 +163,8 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
HermOp.Report();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ds.Report();
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
@ -187,9 +181,7 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
HermOp.Report();
|
|
||||||
}
|
}
|
||||||
Ds.Report();
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
@ -206,9 +198,7 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
HermOp.Report();
|
|
||||||
}
|
}
|
||||||
Ds.Report();
|
|
||||||
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
std::cout << GridLogMessage << "************************************************************************ "<<std::endl;
|
||||||
|
|
||||||
std::cout << GridLogMessage << "****************************************************************** "<<std::endl;
|
std::cout << GridLogMessage << "****************************************************************** "<<std::endl;
|
||||||
@ -232,7 +222,6 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "usec = "<< (t2-t1)<<std::endl;
|
||||||
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
std::cout<<GridLogMessage << "flops = "<< flops<<std::endl;
|
||||||
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
std::cout<<GridLogMessage << "mflop/s = "<< flops/(t2-t1)<<std::endl;
|
||||||
// HermOp4d.Report();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ void run(const TestParams ¶ms){
|
|||||||
|
|
||||||
GridStopWatch CGTimer;
|
GridStopWatch CGTimer;
|
||||||
|
|
||||||
typename RunParamsOuter::HermOpType<MobiusFermionD> HermOpEO_outer(D_outer);
|
typename RunParamsOuter::template HermOpType<MobiusFermionD> HermOpEO_outer(D_outer);
|
||||||
|
|
||||||
CGTimer.Start();
|
CGTimer.Start();
|
||||||
CG_outer(HermOpEO_outer, src_o_outer, result_o_outer);
|
CG_outer(HermOpEO_outer, src_o_outer, result_o_outer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user