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
This commit is contained in:
Rakesh Roy
2023-10-05 19:37:28 +05:30
committato da Rakesh Roy
parent 28f0daa34f
commit 52001adf43
+2 -1
Vedi File
@@ -253,7 +253,8 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vector<hip::Devi
auto dev_it = unique_isa_names.find(device_name);
// If the size is 0, then COMGR API could not find the CO for this GPU device/ISA
if (dev_it->second.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;