From 4059e16b1e9db445872bd11cf2e2d62b5d5a4bcc Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Mon, 22 Nov 2010 18:08:58 +0100 Subject: [PATCH] updated to D_p = T_Dp / T_p and avoid all D_p higher than the number of tasks used --- eo/test/t-openmp.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eo/test/t-openmp.cpp b/eo/test/t-openmp.cpp index 31aeeca0e..8b09bfad1 100644 --- a/eo/test/t-openmp.cpp +++ b/eo/test/t-openmp.cpp @@ -124,19 +124,24 @@ int main(int ac, char** av) double efficiency = speedup / nbtask; - double dynamicity = Tp / Tpd; - speedupFile << speedup << ' '; efficiencyFile << efficiency << ' '; - dynamicityFile << dynamicity << ' '; eo::log << eo::debug; eo::log << "Ts = " << Ts << std::endl; eo::log << "Tp = " << Tp << std::endl; - eo::log << "Tpd = " << Tpd << std::endl; eo::log << "S_p = " << speedup << std::endl; eo::log << "E_p = " << efficiency << std::endl; + + double dynamicity = Tpd / Tp; + + if ( dynamicity > nbtask ) { continue; } + + eo::log << "Tpd = " << Tpd << std::endl; eo::log << "D_p = " << dynamicity << std::endl; + + dynamicityFile << dynamicity << ' '; + } // end of runs speedupFile << std::endl;