From 46c7414dbea8484ffb74c7cde4469be7a41f16a7 Mon Sep 17 00:00:00 2001 From: liuqi Date: Wed, 21 Mar 2018 09:44:34 +0800 Subject: [PATCH] Fix opencl runtime code format. --- mace/core/runtime/opencl/opencl_runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index 37b4c59c..b39e28b8 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -337,9 +337,9 @@ uint32_t OpenCLRuntime::GetKernelMaxWorkGroupSize(const cl::Kernel &kernel) { // TODO(liuqi): not compatible with mali gpu. uint32_t OpenCLRuntime::GetKernelWaveSize(const cl::Kernel &kernel) { - unsigned long long size = 0; + uint32_t size = 0; kernel.getWorkGroupInfo(*device_, CL_KERNEL_WAVE_SIZE_QCOM, &size); - return static_cast(size); + return size; } } // namespace mace -- GitLab