diff --git a/ggml/src/ggml-opencl/ggml-opencl.cpp b/ggml/src/ggml-opencl/ggml-opencl.cpp index b3da7e3f30..f9e3f46195 100644 --- a/ggml/src/ggml-opencl/ggml-opencl.cpp +++ b/ggml/src/ggml-opencl/ggml-opencl.cpp @@ -10686,7 +10686,6 @@ static void ggml_cl_cumsum(ggml_backend_t backend, const ggml_tensor * src0, con CL_CHECK(clSetKernelArg(kernel, 8, sizeof(int), &axis)); CL_CHECK(clSetKernelArg(kernel, 9, sizeof(int), &exclusive)); CL_CHECK(clSetKernelArg(kernel, 10, sizeof(int), &reverse)); - CL_CHECK(clSetKernelArg(kernel, 11, sizeof(int), &lines)); size_t global_work_size[1] = { (size_t)lines }; size_t local_work_val = 256; diff --git a/ggml/src/ggml-opencl/kernels/cumsum.cl b/ggml/src/ggml-opencl/kernels/cumsum.cl index ecfeabd393..7f6d539850 100644 --- a/ggml/src/ggml-opencl/kernels/cumsum.cl +++ b/ggml/src/ggml-opencl/kernels/cumsum.cl @@ -14,8 +14,7 @@ kernel void kernel_cumsum_f32( int ne3, int axis, int exclusive, - int reverse, - int lines + int reverse ) { src0 = (global float*)((global char*)src0 + offset0); dst = (global float*)((global char*)dst + offsetd);