Changed macros verbprintf and verbprintf_bare so they write to stdout… (#346)
Flush stdout when listing keys + bump verbose level for GPU count
[ROCm/rocprofiler-systems commit: 74ed76529a]
This commit is contained in:
@@ -338,7 +338,7 @@ main(int argc, char** argv)
|
|||||||
<< itr.description << "\n";
|
<< itr.description << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::cout << _msg.str();
|
std::cout << _msg.str() << std::flush;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
parser
|
parser
|
||||||
@@ -521,12 +521,12 @@ main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
verbprintf(0, "Retrieving the GPU HW counters failed: %s", _e.what());
|
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);
|
_num_metrics);
|
||||||
}
|
}
|
||||||
else
|
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
|
#endif
|
||||||
|
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user