SWDEV-415265 - Fix segfault when library isn't built with current GPU arch

- Return error code instead of segfault during kernel launch when library isn't built with current gpu arch
- Fix string print bug

Change-Id: I91aaa50150fee220317cd2eb4e075d825cc448b2


[ROCm/clr commit: 76c8b3157b]
This commit is contained in:
Rakesh Roy
2023-08-03 19:55:31 +05:30
committed by Rakesh Roy
parent 7792716dcf
commit b3e340eb5d
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ 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);
LogPrintfError("Cannot find CO in the bundle for ISA: %s \n", device_name.c_str());
hip_status = hipErrorNoBinaryForGpu;
ListAllDeviceWithNoCOFromBundle(unique_isa_names);
break;