From 715f7c8bdffd92ca436d906effbdecd17d3d8672 Mon Sep 17 00:00:00 2001 From: yangfei Date: Wed, 24 Oct 2018 15:03:16 +0800 Subject: [PATCH] change feed kernel --- src/operators/kernel/cl/feed_kernel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operators/kernel/cl/feed_kernel.cpp b/src/operators/kernel/cl/feed_kernel.cpp index f1f13df96c..886b535bbc 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}; -- GitLab