From e5783abc2b37e2e960661546988ab1fb0a7bf860 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 11 Sep 2018 18:34:50 -0400 Subject: [PATCH] P4 to Git Change 1604468 by skudchad@skudchad_test2_win_opencl on 2018/09/11 18:28:45 SWDEV-145570 - [HIP] - Assert functionality for error != hipSuccess with LOG_LEVEL=3 ReviewBoardURL = http://ocltc.amd.com/reviews/r/15793/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#18 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/debug.hpp#8 edit --- hipamd/api/hip/hip_internal.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/api/hip/hip_internal.hpp b/hipamd/api/hip/hip_internal.hpp index 3897b599bf..ee046f4410 100644 --- a/hipamd/api/hip/hip_internal.hpp +++ b/hipamd/api/hip/hip_internal.hpp @@ -78,6 +78,7 @@ extern amd::Memory* getMemoryObject(const void* ptr, size_t& offset); #define HIP_RETURN(ret) \ hip::g_lastError = ret; \ + DebugInfoGuarantee(hip::g_lastError == hipSuccess); \ return hip::g_lastError; \