From 38dce09c242965e8ef149b956939fad852a507df Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 20 Mar 2019 19:18:10 -0400
Subject: [PATCH] P4 to Git Change 1759248 by cpaquot@cpaquot-ocl-lc-lnx on
2019/03/20 18:32:19
SWDEV-183452 - [HIP] Typo of | instead of &
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#47 edit
[ROCm/hip commit: 636dadc1aaaa02f42cb9ee3c9e3d7797b51ac513]
---
projects/hip/api/hip/hip_memory.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/hip/api/hip/hip_memory.cpp b/projects/hip/api/hip/hip_memory.cpp
index ab6b788921..f20b26aaa0 100644
--- a/projects/hip/api/hip/hip_memory.cpp
+++ b/projects/hip/api/hip/hip_memory.cpp
@@ -1438,7 +1438,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void
int device = 0;
if (memObj != nullptr) {
- attributes->memoryType = (CL_MEM_SVM_FINE_GRAIN_BUFFER | memObj->getMemFlags())? hipMemoryTypeHost : hipMemoryTypeDevice;
+ attributes->memoryType = (CL_MEM_SVM_FINE_GRAIN_BUFFER & memObj->getMemFlags())? hipMemoryTypeHost : hipMemoryTypeDevice;
attributes->hostPointer = memObj->getSvmPtr();
attributes->devicePointer = memObj->getSvmPtr();
attributes->isManaged = 0;