diff --git a/src/operators/kernel/cl/feed_kernel.cpp b/src/operators/kernel/cl/feed_kernel.cpp index f1f13df96c2bd784d42b41c387b1d09b6cd5b74f..886b535bbc655139d3d6fcc87fa2900c435ad744 100644 --- a/src/operators/kernel/cl/feed_kernel.cpp +++ b/src/operators/kernel/cl/feed_kernel.cpp @@ -41,13 +41,13 @@ void FeedKernel::Compute(const FeedParam ¶m) { input_cl_tensor.Resize(input->dims()); cl_mem inputBuffer = input_cl_tensor.mutable_with_data(input_data); - status = clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *)&inputBuffer); + status = clSetKernelArg(kernel, 0, sizeof(cl_mem), &inputBuffer); CL_CHECK_ERRORS(status); - status = clSetKernelArg(kernel, 1, sizeof(cl_mem), (void *)&cl_image); + status = clSetKernelArg(kernel, 1, sizeof(cl_mem), &cl_image); CL_CHECK_ERRORS(status); - status = clSetKernelArg(kernel, 2, sizeof(cl_int), (void *)&width); + status = clSetKernelArg(kernel, 2, sizeof(cl_int), &width); CL_CHECK_ERRORS(status); - status = clSetKernelArg(kernel, 3, sizeof(cl_int), (void *)&height); + status = clSetKernelArg(kernel, 3, sizeof(cl_int), &height); CL_CHECK_ERRORS(status); size_t global_work_size[2] = {width, height};