From 88dc5cd386ff482002cec5fd8ebf4dc634cd7b9b Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Thu, 23 Feb 2023 01:17:58 +0000 Subject: [PATCH] SWDEV-378778 - Returns with error logged when compiled for a diffferent gpu arch Change-Id: I34fb03c4f76d08278246d29028db0eb21a7aa529 --- hipamd/src/hip_platform.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hipamd/src/hip_platform.cpp b/hipamd/src/hip_platform.cpp index aecf506448..84ba32ffb8 100644 --- a/hipamd/src/hip_platform.cpp +++ b/hipamd/src/hip_platform.cpp @@ -662,7 +662,10 @@ void PlatformState::init() { initialized_ = true; for (auto& it : statCO_.modules_) { hipError_t err = digestFatBinary(it.first, it.second); - assert(err == hipSuccess); + if (err != hipSuccess) { + HIP_ERROR_PRINT(err); + return; + } } for (auto& it : statCO_.vars_) { it.second->resize_dVar(g_devices.size());