Skip to content

Commit

Permalink
SWDEV-418360 - Continue parsing modules even when some module don't have
Browse files Browse the repository at this point in the history
right binaries built for current device

Change-Id: Icc6a4233fbcede9b2dc6feb78e6bfbd761684c7f
  • Loading branch information
gargrahul authored and zhang2amd committed Sep 8, 2023
1 parent f4e6f2b commit d1770ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hipamd/src/hip_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,9 @@ void PlatformState::init() {
initialized_ = true;
for (auto& it : statCO_.modules_) {
hipError_t err = digestFatBinary(it.first, it.second);
if (err != hipSuccess) {
if (err == hipErrorNoBinaryForGpu) {
HIP_ERROR_PRINT(err, "continue parsing remaining modules");
} else if (err != hipSuccess) {
HIP_ERROR_PRINT(err);
return;
}
Expand Down

0 comments on commit d1770ee

Please sign in to comment.