diff options
author | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-11-16 02:09:18 -0600 |
---|---|---|
committer | I-Jui (Ray) Sung <ray@multicorewareinc.com> | 2013-11-16 21:47:28 -0600 |
commit | 886c5551396d07e8372c9b90562487d1dc69e9b9 (patch) | |
tree | 13a523ab19cc1c0d36b5a234cc1f06f7d12cc887 /sc | |
parent | 0adea894d6d55ead0ff58c76ce142f5d4e1014a4 (diff) |
GPU Calc: pass the right argument size for reduction kernels in SumIfs
Change-Id: Ib8fab8eacddbeb37795ad45f026559bdde0d43f7
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index c795a650d4f5..3af918d7b0fc 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -192,6 +192,7 @@ public: throw OpenCLError(err); return 1; } + virtual cl_mem GetCLBuffer(void) const { return NULL; } }; class DynamicKernelPiArgument: public DynamicKernelArgument @@ -1060,7 +1061,8 @@ public: // set kernel arg of reduction kernel for (size_t j=0; j< vclmem.size(); j++){ - err = clSetKernelArg(redKernel, j, sizeof(cl_mem), + err = clSetKernelArg(redKernel, j, + vclmem[j]?sizeof(cl_mem):sizeof(double), (void *)&vclmem[j]); if (CL_SUCCESS != err) throw OpenCLError(err); |