Print dgemm and iteration flops at the end of the calculation

This commit is contained in:
Alejandro Gallo 2021-10-05 17:50:03 +02:00
parent 44977bd186
commit bcefe0d2d7
2 changed files with 8 additions and 6 deletions

View File

@ -1978,8 +1978,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
#endif #endif
WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n"; WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n";
LOG(0,"Atrip") << "#iterations: " LOG(0,"Atrip") << "#iterations: " << nIterations << "\n";
<< nIterations << "\n";
// first abc // first abc
const ABCTuple firstAbc = tuplesList[abcIndex.first]; const ABCTuple firstAbc = tuplesList[abcIndex.first];
@ -2408,8 +2407,10 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
<< pair.second.count() << std::endl; << pair.second.count() << std::endl;
LOG(0, "atrip:flops") LOG(0, "atrip:flops(doubles)")
<< nIterations * doublesFlops / chrono["doubles"].count() << "\n"; << nIterations * doublesFlops / chrono["doubles"].count() << "\n";
LOG(0, "atrip:flops(iterations)")
<< nIterations * doublesFlops / chrono["iterations"].count() << "\n";
// TODO: change the sign in the getEnergy routines // TODO: change the sign in the getEnergy routines
return { - globalEnergy }; return { - globalEnergy };

View File

@ -102,8 +102,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
#endif #endif
WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n"; WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n";
LOG(0,"Atrip") << "#iterations: " LOG(0,"Atrip") << "#iterations: " << nIterations << "\n";
<< nIterations << "\n";
// first abc // first abc
const ABCTuple firstAbc = tuplesList[abcIndex.first]; const ABCTuple firstAbc = tuplesList[abcIndex.first];
@ -532,8 +531,10 @@ Atrip::Output Atrip::run(Atrip::Input const& in) {
<< pair.second.count() << std::endl; << pair.second.count() << std::endl;
LOG(0, "atrip:flops") LOG(0, "atrip:flops(doubles)")
<< nIterations * doublesFlops / chrono["doubles"].count() << "\n"; << nIterations * doublesFlops / chrono["doubles"].count() << "\n";
LOG(0, "atrip:flops(iterations)")
<< nIterations * doublesFlops / chrono["iterations"].count() << "\n";
// TODO: change the sign in the getEnergy routines // TODO: change the sign in the getEnergy routines
return { - globalEnergy }; return { - globalEnergy };