From 3b470cb0678e850a9efa06b94f697a1abf1163e0 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 [ROCm/clr commit: 68e5aeb93d11a0d6bdf6c61197e683d9171a1cbc] --- projects/clr/hipamd/src/hip_fatbin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_fatbin.cpp b/projects/clr/hipamd/src/hip_fatbin.cpp index b26377135e..1df29fcf24 100644 --- a/projects/clr/hipamd/src/hip_fatbin.cpp +++ b/projects/clr/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.