提交 46c7414d 编写于 作者: L liuqi

Fix opencl runtime code format.

上级 78bea4fc
...@@ -337,9 +337,9 @@ uint32_t OpenCLRuntime::GetKernelMaxWorkGroupSize(const cl::Kernel &kernel) { ...@@ -337,9 +337,9 @@ uint32_t OpenCLRuntime::GetKernelMaxWorkGroupSize(const cl::Kernel &kernel) {
// TODO(liuqi): not compatible with mali gpu. // TODO(liuqi): not compatible with mali gpu.
uint32_t OpenCLRuntime::GetKernelWaveSize(const cl::Kernel &kernel) { 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); kernel.getWorkGroupInfo(*device_, CL_KERNEL_WAVE_SIZE_QCOM, &size);
return static_cast<uint32_t>(size); return size;
} }
} // namespace mace } // namespace mace
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册