From 8e39fd3cab18abdc070c356d4e7db41eb486d599 Mon Sep 17 00:00:00 2001 From: ajanicijamd Date: Fri, 14 Jun 2024 16:50:25 -0400 Subject: [PATCH] =?UTF-8?q?Changed=20macros=20verbprintf=20and=20verbprint?= =?UTF-8?q?f=5Fbare=20so=20they=20write=20to=20stdout=E2=80=A6=20(#346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flush stdout when listing keys + bump verbose level for GPU count [ROCm/rocprofiler-systems commit: 74ed76529aa8d4d94ed497a8dd54d31eb0476aa0] --- .../source/bin/omnitrace-avail/avail.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/rocprofiler-systems/source/bin/omnitrace-avail/avail.cpp b/projects/rocprofiler-systems/source/bin/omnitrace-avail/avail.cpp index 53031f2f4d..5fe5c446f9 100644 --- a/projects/rocprofiler-systems/source/bin/omnitrace-avail/avail.cpp +++ b/projects/rocprofiler-systems/source/bin/omnitrace-avail/avail.cpp @@ -338,7 +338,7 @@ main(int argc, char** argv) << itr.description << "\n"; } } - std::cout << _msg.str(); + std::cout << _msg.str() << std::flush; } }); parser @@ -521,12 +521,12 @@ main(int argc, char** argv) { verbprintf(0, "Retrieving the GPU HW counters failed: %s", _e.what()); } - verbprintf(0, "Found %i HIP devices and %zu GPU HW counters\n", gpu_count, + verbprintf(1, "Found %i HIP devices and %zu GPU HW counters\n", gpu_count, _num_metrics); } else { - verbprintf(0, "No HIP devices found. GPU HW counters will not be available\n"); + verbprintf(1, "No HIP devices found. GPU HW counters will not be available\n"); } #endif