From 68e5aeb93d11a0d6bdf6c61197e683d9171a1cbc Mon Sep 17 00:00:00 2001 From: Branislav Brzak Date: Mon, 10 Jun 2024 15:25:53 +0200 Subject: [PATCH] SWDEV-465201 - Match negative hipModuleLoad return with Cuda Change-Id: Id6c682e7f9ec8d34e9c8d5d5933f31e003c67e27 --- hipamd/src/hip_fatbin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_fatbin.cpp b/hipamd/src/hip_fatbin.cpp index b26377135e..1df29fcf24 100644 --- a/hipamd/src/hip_fatbin.cpp +++ b/hipamd/src/hip_fatbin.cpp @@ -148,7 +148,7 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vectorfsize_ == 0) { - return hipErrorInvalidValue; + return hipErrorInvalidImage; } // If image_ is nullptr, then file path is passed via hipMod* APIs, so map the file.