From 1f1b922edcbaf101bdc71c09edb550f20cd57cf4 Mon Sep 17 00:00:00 2001 From: JOAN VINYALS YLLA CATALA Date: Fri, 14 Jun 2024 16:20:47 +0200 Subject: [PATCH] Check DLB error code at collect POP metrics --- src/backends/dlb/dlb_talp_tree/dlb_talp_tree.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backends/dlb/dlb_talp_tree/dlb_talp_tree.cpp b/src/backends/dlb/dlb_talp_tree/dlb_talp_tree.cpp index 4a39a40..c13e29a 100644 --- a/src/backends/dlb/dlb_talp_tree/dlb_talp_tree.cpp +++ b/src/backends/dlb/dlb_talp_tree/dlb_talp_tree.cpp @@ -176,14 +176,15 @@ void DLBTalpTreeStrategy::Finalize() noexcept { int error = DLB_TALP_CollectPOPMetrics(handle, &pop_metrics); if (error != DLB_SUCCESS) { - + std::cerr << "neSmiK:: DLB_TALP_CollectPOPMetrics failed for region " + << current_region.name << " [" << name << "]" << std::endl; } std::string name_with_tree_lines = current_region.tree_lines + current_region.name; region_stream_stdout << std::setw(max_width+3) << std::left << name_with_tree_lines; region_stream_stdout << std::fixed << std::setprecision(2); - region_stream_stdout << std::setw(15) << std::right << 100 * pop_metrics.elapsed_time/1000000000 << "s"; + region_stream_stdout << std::setw(15) << std::right << pop_metrics.elapsed_time/1000000000 << "s"; region_stream_stdout << std::setw(8) << std::right << 100 * pop_metrics.parallel_efficiency; region_stream_stdout << std::setw(8) << std::right << 100 * pop_metrics.mpi_parallel_efficiency; region_stream_stdout << std::setw(8) << std::right << 100 * pop_metrics.mpi_communication_efficiency; -- GitLab