SWDEV-378778 - Returns with error logged when compiled for a diffferent gpu arch
Change-Id: I34fb03c4f76d08278246d29028db0eb21a7aa529
This commit is contained in:
committed by
Sourabh Betigeri
parent
08c8972d97
commit
88dc5cd386
@@ -662,7 +662,10 @@ void PlatformState::init() {
|
|||||||
initialized_ = true;
|
initialized_ = true;
|
||||||
for (auto& it : statCO_.modules_) {
|
for (auto& it : statCO_.modules_) {
|
||||||
hipError_t err = digestFatBinary(it.first, it.second);
|
hipError_t err = digestFatBinary(it.first, it.second);
|
||||||
assert(err == hipSuccess);
|
if (err != hipSuccess) {
|
||||||
|
HIP_ERROR_PRINT(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (auto& it : statCO_.vars_) {
|
for (auto& it : statCO_.vars_) {
|
||||||
it.second->resize_dVar(g_devices.size());
|
it.second->resize_dVar(g_devices.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user