From bcefe0d2d707f567f8338a673890e9a97143fcd5 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Tue, 5 Oct 2021 17:50:03 +0200 Subject: [PATCH] Print dgemm and iteration flops at the end of the calculation --- atrip.org | 7 ++++--- src/atrip/Atrip.cxx | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/atrip.org b/atrip.org index f08a3df..4b783a8 100644 --- a/atrip.org +++ b/atrip.org @@ -1978,8 +1978,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { #endif WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n"; - LOG(0,"Atrip") << "#iterations: " - << nIterations << "\n"; + LOG(0,"Atrip") << "#iterations: " << nIterations << "\n"; // first abc const ABCTuple firstAbc = tuplesList[abcIndex.first]; @@ -2408,8 +2407,10 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { << pair.second.count() << std::endl; - LOG(0, "atrip:flops") + LOG(0, "atrip:flops(doubles)") << 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 return { - globalEnergy }; diff --git a/src/atrip/Atrip.cxx b/src/atrip/Atrip.cxx index d019d98..d33ee70 100644 --- a/src/atrip/Atrip.cxx +++ b/src/atrip/Atrip.cxx @@ -102,8 +102,7 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { #endif WITH_RANK << "abcIndex = " << pretty_print(abcIndex) << "\n"; - LOG(0,"Atrip") << "#iterations: " - << nIterations << "\n"; + LOG(0,"Atrip") << "#iterations: " << nIterations << "\n"; // first abc const ABCTuple firstAbc = tuplesList[abcIndex.first]; @@ -532,8 +531,10 @@ Atrip::Output Atrip::run(Atrip::Input const& in) { << pair.second.count() << std::endl; - LOG(0, "atrip:flops") + LOG(0, "atrip:flops(doubles)") << 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 return { - globalEnergy };