From 027f8d9108ff371f2662bf5f071c53e94991de23 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 26 Jan 2017 14:52:51 -0500
Subject: [PATCH] P4 to Git Change 1366502 by gandryey@gera-lnx-rcf-lc on
2017/01/26 14:44:13
SWDEV-112016 - [ROCm CQE][OCLonLC][QR][G] Seg fault observed with "sub_buffers_read_write" of Buffers, due to CL#1364923
- Take the host pointer for CPU access in bufferfill.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#8 edit
---
rocclr/runtime/device/rocm/rocblit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/rocm/rocblit.cpp b/rocclr/runtime/device/rocm/rocblit.cpp
index ba8cf926fd..fe3851b163 100644
--- a/rocclr/runtime/device/rocm/rocblit.cpp
+++ b/rocclr/runtime/device/rocm/rocblit.cpp
@@ -2063,7 +2063,7 @@ KernelBlitManager::fillBuffer(
if (gpuCB == NULL) {
return false;
}
- void* constBuf = gpuCB->getDeviceMemory();
+ void* constBuf = constantBuffer_->getHostMem();
memcpy(constBuf, pattern, patternSize);
mem = as_cl(gpuCB->owner());