From b1f57774e1c5d3739c6f5941850862e80d57407a 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
[ROCm/clr commit: 02e28ed9755b807ab2737e4588ca15ff0f700fab]
---
projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp
index a0c3ecee5b..9703cf5953 100644
--- a/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp
+++ b/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp
@@ -928,7 +928,7 @@ RUNTIME_ENTRY(cl_int, clSetKernelArgSVMPointer,
// -verifying system pointers (if supported) requires matching the pointer
// against the address space of the current process.
- as_amd(kernel)->parameters().set(static_cast(arg_index), sizeof(arg_value), arg_value,
+ as_amd(kernel)->parameters().set(static_cast(arg_index), sizeof(arg_value), &arg_value,
true);
return CL_SUCCESS;
}