From 0c52fe623474e91a7a514ed9c30693eb4a75d2e0 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 3 May 2018 18:56:01 -0400
Subject: [PATCH] P4 to Git Change 1549971 by skudchad@skudchad_rocm on
2018/05/03 18:39:37
SWDEV-145570 - [HIP] - Fix build
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#21 edit
[ROCm/hip commit: 99d3444f004abcdd6b7df03129ab1c3af2b2a874]
---
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 c1d00c096f..9be5f5745f 100644
--- a/projects/hip/api/hip/hip_memory.cpp
+++ b/projects/hip/api/hip/hip_memory.cpp
@@ -301,7 +301,7 @@ hipError_t ihipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t heigh
*pitch = width * imageFormat.getElementSize();
size_t sizeBytes = *pitch * height * depth;
- *ptr = amd::SvmBuffer::malloc(*hip::getCurrentContext(), CL_MEM_SVM_COARSE_GRAIN_BUFFER, sizeBytes,
+ *ptr = amd::SvmBuffer::malloc(*hip::getCurrentContext(), 0, sizeBytes,
device->info().memBaseAddrAlign_);
if (*ptr == nullptr) {