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
Bu işleme şunda yer alıyor:
Rakesh Roy
2023-08-03 19:55:31 +05:30
işlemeyi yapan: Rakesh Roy
ebeveyn c1126fc727
işleme 76c8b3157b
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
+1 -1
Dosyayı Görüntüle
@@ -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;