mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-15 02:05:37 +00:00
Use normal reduction, configure flag to force deterministic
This commit is contained in:
parent
5ec879860a
commit
4d1aa134b5
@ -325,8 +325,8 @@ inline ComplexD innerProduct(const Lattice<vobj> &left,const Lattice<vobj> &righ
|
|||||||
assert(ok);
|
assert(ok);
|
||||||
}
|
}
|
||||||
FlightRecorder::StepLog("Start global sum");
|
FlightRecorder::StepLog("Start global sum");
|
||||||
grid->GlobalSumP2P(nrm);
|
// grid->GlobalSumP2P(nrm);
|
||||||
// grid->GlobalSum(nrm);
|
grid->GlobalSum(nrm);
|
||||||
FlightRecorder::StepLog("Finished global sum");
|
FlightRecorder::StepLog("Finished global sum");
|
||||||
// std::cout << " norm "<< nrm << " p2p norm "<<nrmck<<std::endl;
|
// std::cout << " norm "<< nrm << " p2p norm "<<nrmck<<std::endl;
|
||||||
FlightRecorder::ReductionLog(local,real(nrm));
|
FlightRecorder::ReductionLog(local,real(nrm));
|
||||||
@ -411,7 +411,7 @@ axpby_norm_fast(Lattice<vobj> &z,sobj a,sobj b,const Lattice<vobj> &x,const Latt
|
|||||||
ok = FlightRecorder::NormLog(real(nrm));
|
ok = FlightRecorder::NormLog(real(nrm));
|
||||||
assert(ok);
|
assert(ok);
|
||||||
RealD local = real(nrm);
|
RealD local = real(nrm);
|
||||||
grid->GlobalSumP2P(nrm);
|
grid->GlobalSum(nrm);
|
||||||
FlightRecorder::ReductionLog(local,real(nrm));
|
FlightRecorder::ReductionLog(local,real(nrm));
|
||||||
return nrm;
|
return nrm;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user