From 99bc0b1ba1c7e0d9c5d89ddfb8517c4a1f98b6a1 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 10 Nov 2016 11:02:24 -0500
Subject: [PATCH] P4 to Git Change 1339431 by gandryey@gera-w8 on 2016/11/10
10:47:43
SWDEV-86035 - Add PAL backend to OpenCL
- Fix a regression after LC path integration
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#24 edit
[ROCm/clr commit: a9885c5273adfca044a26c5861376af23a56f1ac]
---
projects/clr/rocclr/runtime/device/pal/palkernel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/pal/palkernel.cpp b/projects/clr/rocclr/runtime/device/pal/palkernel.cpp
index 2f3d1c1eab..a2140f4fe7 100644
--- a/projects/clr/rocclr/runtime/device/pal/palkernel.cpp
+++ b/projects/clr/rocclr/runtime/device/pal/palkernel.cpp
@@ -1122,7 +1122,7 @@ HSAILKernel::loadArguments(
cb->uploadDataToHw(arg->size_);
// Then use a pointer in aqlArgBuffer to CB1
uint64_t gpuPtr = cb->vmAddress() + cb->wrtOffset();
- WriteAqlArg(&aqlArgBuf, &gpuPtr, arg->size_, arg->alignment_);
+ WriteAqlArg(&aqlArgBuf, &gpuPtr, sizeof(void*));
memList.push_back(cb);
}
else if (arg->type_ == HSAIL_ARGTYPE_VALUE) {