From 9d351947ec582a1e7849937aec29a246d24ca495 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/clr commit: d6ffa28a5f7b9e0e1b6218c10e9a082dcf06a4f9] --- 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 c1d00c096f..9be5f5745f 100644 --- a/projects/clr/hipamd/api/hip/hip_memory.cpp +++ b/projects/clr/hipamd/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) {