From 4d1aa134b5555131a43882a4d580d4ecb06234d8 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 15 Oct 2024 14:32:11 +0000 Subject: [PATCH] Use normal reduction, configure flag to force deterministic --- Grid/lattice/Lattice_reduction.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Grid/lattice/Lattice_reduction.h b/Grid/lattice/Lattice_reduction.h index dffcae92..c7da2945 100644 --- a/Grid/lattice/Lattice_reduction.h +++ b/Grid/lattice/Lattice_reduction.h @@ -325,8 +325,8 @@ inline ComplexD innerProduct(const Lattice &left,const Lattice &righ assert(ok); } FlightRecorder::StepLog("Start global sum"); - grid->GlobalSumP2P(nrm); - // grid->GlobalSum(nrm); + // grid->GlobalSumP2P(nrm); + grid->GlobalSum(nrm); FlightRecorder::StepLog("Finished global sum"); // std::cout << " norm "<< nrm << " p2p norm "< &z,sobj a,sobj b,const Lattice &x,const Latt ok = FlightRecorder::NormLog(real(nrm)); assert(ok); RealD local = real(nrm); - grid->GlobalSumP2P(nrm); + grid->GlobalSum(nrm); FlightRecorder::ReductionLog(local,real(nrm)); return nrm; }