summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 79c33ae09caa..23b7a71b7faa 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -592,8 +592,9 @@ public:
throw OpenCLError(err);
// set kernel arg of reduction kernel
// TODO(Wei Wei): use unique name for kernel
+ cl_mem buf = Base::GetCLBuffer();
err = clSetKernelArg(redKernel, 0, sizeof(cl_mem),
- (void *)&(Base::mpClmem));
+ (void *)&buf);
if (CL_SUCCESS != err)
throw OpenCLError(err);