From e2e169f47cf0f3805ef9eac7cb708ab097c759d5 Mon Sep 17 00:00:00 2001 From: Rakesh Roy Date: Thu, 5 Oct 2023 19:37:28 +0530 Subject: [PATCH] SWDEV-421667 - Print shared library name which doesn't contain CO for current device - ML Frameworks link many ROCm component libraries - It becomes a tedious task to figure out which library HIP is complaining about - To improve debuggability print out the shared library name Change-Id: I53c4d66393670356b8cafd3e48075e430f0a45ce [ROCm/clr commit: 52001adf4330665abfb34c83829d32647f7d4fb3] --- projects/clr/hipamd/src/hip_fatbin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_fatbin.cpp b/projects/clr/hipamd/src/hip_fatbin.cpp index dc76883f28..fb95993cfd 100644 --- a/projects/clr/hipamd/src/hip_fatbin.cpp +++ b/projects/clr/hipamd/src/hip_fatbin.cpp @@ -253,7 +253,8 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vectorsecond.first == 0) { - LogPrintfError("Cannot find CO in the bundle for ISA: %s \n", device_name.c_str()); + LogPrintfError("Cannot find CO in the bundle %s for ISA: %s \n", + fname_.c_str(), device_name.c_str()); hip_status = hipErrorNoBinaryForGpu; ListAllDeviceWithNoCOFromBundle(unique_isa_names); break;