1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01:00

Extra hardware test hook

This commit is contained in:
Peter Boyle 2024-03-12 20:09:37 +00:00
parent 2704b82084
commit 95f3d69cf9

View File

@ -286,9 +286,10 @@ template<class vobj>
inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &right) { inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &right) {
GridBase *grid = left.Grid(); GridBase *grid = left.Grid();
ComplexD nrm = rankInnerProduct(left,right); ComplexD nrm = rankInnerProduct(left,right);
// GridNormLog(real(nrm)); // Could log before and after global sum to distinguish local and MPI RealD local = real(nrm);
GridNormLog(real(nrm)); // Could log before and after global sum to distinguish local and MPI
grid->GlobalSum(nrm); grid->GlobalSum(nrm);
// GridNormLog(real(nrm)); GridMPINormLog(local,real(nrm));
return nrm; return nrm;
} }