SWDEV-535490 - Improve logging (#441)

- Include HIP version/githash in the logs
- Add a new method to print library path

[ROCm/clr commit: 5d53c83806]
This commit is contained in:
Kudchadker, Saleel
2025-06-24 13:00:00 -07:00
committed by GitHub
parent 4383a50bd9
commit 3c9f80b4e4
6 changed files with 34 additions and 4 deletions
@@ -390,7 +390,6 @@ hsa_status_t Device::loaderQueryHostAddress(const void* device, const void** hos
// ================================================================================================
bool Device::init() {
ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Initializing HSA stack.");
hsa_status_t status = HSA_STATUS_SUCCESS;
// Initialize the compiler
if (!initCompiler(offlineDevice_)) {
@@ -476,7 +475,7 @@ bool Device::init() {
gpu_agents_ = valid_agents;
}
LogPrintfInfo("Enumerated GPU agents = %lu", gpu_agents_.size());
LogPrintfInfo("Initalizing runtime stack, Enumerated GPU agents = %lu", gpu_agents_.size());
for (auto agent : gpu_agents_) {
std::unique_ptr<Device> roc_device(new Device(agent));