Skip to content

Commit

Permalink
Changed macros verbprintf and verbprintf_bare so they write to stdout… (
Browse files Browse the repository at this point in the history
ROCm#346)

Flush stdout when listing keys + bump verbose level for GPU count
  • Loading branch information
ajanicijamd authored and samjwu committed Jul 29, 2024
1 parent 197f03d commit b730366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/bin/omnitrace-avail/avail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ main(int argc, char** argv)
<< itr.description << "\n";
}
}
std::cout << _msg.str();
std::cout << _msg.str() << std::flush;
}
});
parser
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b730366

Please sign in to comment.