SWDEV-500201 - UUID deduction logic ends up accessing empty map/nullptr on Phoenix2 APU as it finds GFX-XX which is ignored in logic.

Change-Id: Ieed60dc4665d2b87ea994834457b026a3f58cb49


[ROCm/hip-tests commit: 9be5380d40]
Этот коммит содержится в:
Jaydeep Patel
2024-12-02 12:32:50 +00:00
коммит произвёл Rakesh Roy
родитель b543624e2c
Коммит d43cc9ab7d
+6 -4
Просмотреть файл
@@ -459,10 +459,12 @@ void ChkUUID() {
#else
uuid_map = getUUIDlistWithoutRocmInfo();
#endif
std::string uuid = uuid_map[0].data();
std::string t_uuid = uuid.substr(4, 19);
if (memcmp(d_uuid.bytes, t_uuid.c_str(), 16) == 0) {
REQUIRE(true);
if (!uuid_map.empty()) {
std::string uuid = uuid_map[0].data();
std::string t_uuid = uuid.substr(4, 19);
if (memcmp(d_uuid.bytes, t_uuid.c_str(), 16) == 0) {
REQUIRE(true);
}
}
}