From eab4ea236c5cc65e97a2b01893a085c854e9db8e Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 5 Jul 2022 21:09:07 +0000 Subject: [PATCH] SWDEV-340506 - Unit_hipMalloc3DArray_Negative fix Change-Id: I1fbf4be8aaef83b36749f1e253b5dba025e7f3cd --- hipamd/src/hip_conversions.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hipamd/src/hip_conversions.hpp b/hipamd/src/hip_conversions.hpp index 528443222f..1a6f69a304 100644 --- a/hipamd/src/hip_conversions.hpp +++ b/hipamd/src/hip_conversions.hpp @@ -114,10 +114,8 @@ cl_mem_object_type getCLMemObjectType(const unsigned int hipWidth, return CL_MEM_OBJECT_IMAGE2D_ARRAY; } } - - ShouldNotReachHere(); - - return {}; + // error scenario. ShouldNotReachHere() + return CL_MEM_OBJECT_ALLOCATION_FAILURE; } inline