From 2f1c2532316859e5a5df1ec7a3076dd2b97701fa Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 5 Jun 2018 19:43:49 -0400 Subject: [PATCH] P4 to Git Change 1564420 by skudchad@skudchad_rocm on 2018/06/05 19:38:52 SWDEV-145570 - [HIP] - Find memobj in correct class Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#31 edit --- api/hip/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/hip/hip_memory.cpp b/api/hip/hip_memory.cpp index 922b8abe8f..4d8e91250f 100644 --- a/api/hip/hip_memory.cpp +++ b/api/hip/hip_memory.cpp @@ -1302,7 +1302,7 @@ hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, hipChannel hipError_t hipHostGetDevicePointer(void** devicePointer, void* hostPointer, unsigned flags) { HIP_INIT_API(devicePointer, hostPointer, flags); - if (!amd::SvmBuffer::malloced(hostPointer)) { + if (!amd::MemObjMap::FindMemObj(hostPointer)) { return hipErrorInvalidValue; } // right now we have SVM