From 01bd9ba8440999914f874e72022b7aaa53df127d Mon Sep 17 00:00:00 2001 From: Payam Date: Wed, 16 Feb 2022 04:52:07 -0500 Subject: [PATCH] SWDEV-316050, SWDEV-316292 - Graph api matching error with Cuda Change-Id: I80c9358e9ad3a2d57fca53e6ff7679f1e3953328 [ROCm/clr commit: c0b859641feb46b952898c00b1fdfb19e57e1a08] --- projects/clr/hipamd/src/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_memory.cpp b/projects/clr/hipamd/src/hip_memory.cpp index 1921416f08..1369a2176b 100644 --- a/projects/clr/hipamd/src/hip_memory.cpp +++ b/projects/clr/hipamd/src/hip_memory.cpp @@ -1054,7 +1054,7 @@ inline hipError_t ihipMemcpySymbol_validate(const void* symbol, size_t sizeBytes if ((offset + sizeBytes) > sym_size) { LogPrintfError("Trying to access out of bounds, offset: %u sizeBytes: %u sym_size: %u \n", offset, sizeBytes, sym_size); - HIP_RETURN(hipErrorInvalidDevicePointer); + HIP_RETURN(hipErrorInvalidValue); } device_ptr = reinterpret_cast
(device_ptr) + offset;