From 4ed2c7eb47072e4cf93b566496fa7f3e3eae0e72 Mon Sep 17 00:00:00 2001
From: foreman
Date: Sun, 29 Apr 2018 14:59:10 -0400
Subject: [PATCH] P4 to Git Change 1547668 by lmoriche@lmoriche_opencl_dev2 on
2018/04/29 14:51:30
SWDEV-145570 - [HIP] - Set SVM pointer arguments by passing a reference to the value to match other T_POINTER arguments.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#25 edit
---
rocclr/runtime/platform/kernel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/platform/kernel.cpp b/rocclr/runtime/platform/kernel.cpp
index 3a6fd1ab49..ed82706fe2 100644
--- a/rocclr/runtime/platform/kernel.cpp
+++ b/rocclr/runtime/platform/kernel.cpp
@@ -75,7 +75,7 @@ void KernelParameters::set(size_t index, size_t size, const void* value, bool sv
if (desc.type_ == T_POINTER && desc.size_ != 0) {
if (svmBound) {
- LP64_SWITCH(uint32_value, uint64_value) = (LP64_SWITCH(uint32_t, uint64_t))value;
+ LP64_SWITCH(uint32_value, uint64_value) = *(LP64_SWITCH(uint32_t*, uint64_t*))value;
svmBound_[index] = true;
} else if ((value == NULL) || (static_cast(value) == NULL)) {
LP64_SWITCH(uint32_value, uint64_value) = 0;