From 9682f81a75c06fd479a827113239b0ae30d8bcf3 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 --- hipamd/api/hip/hip_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/api/hip/hip_memory.cpp b/hipamd/api/hip/hip_memory.cpp index ab6b788921..f20b26aaa0 100644 --- a/hipamd/api/hip/hip_memory.cpp +++ b/hipamd/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;