From 73850c27d3e11f6bfaabfcbb44006c79bb5ca3a3 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
[ROCm/clr commit: f92ce11e65c95aed832570103b1a52ea925d4501]
---
projects/clr/hipamd/api/hip/hip_memory.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/hipamd/api/hip/hip_memory.cpp b/projects/clr/hipamd/api/hip/hip_memory.cpp
index 922b8abe8f..4d8e91250f 100644
--- a/projects/clr/hipamd/api/hip/hip_memory.cpp
+++ b/projects/clr/hipamd/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