From 9a10300d86118704eade7e3d3ec2fa835c2d26e0 Mon Sep 17 00:00:00 2001 From: liuqi Date: Tue, 17 Apr 2018 15:55:47 +0800 Subject: [PATCH] Rename CLCallback to OpenCLPrintfCallback. --- mace/core/runtime/opencl/opencl_runtime.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index b6d51f9a..fda211d4 100644 --- a/mace/core/runtime/opencl/opencl_runtime.cc +++ b/mace/core/runtime/opencl/opencl_runtime.cc @@ -155,10 +155,10 @@ const std::string OpenCLErrorToString(cl_int error) { } namespace { -void CLCallback(const char *buffer, - size_t length, - size_t final, - void *user_data) { +void OpenCLPrintfCallback(const char *buffer, + size_t length, + size_t final, + void *user_data) { fwrite(buffer, 1, length, stdout); } } @@ -311,7 +311,7 @@ OpenCLRuntime::OpenCLRuntime(GPUPerfHint gpu_perf_hint, if (is_profiling_enabled_ && gpu_type_ == GPUType::MALI) { std::vector context_properties = { CL_CONTEXT_PLATFORM, (cl_context_properties)default_platform(), - CL_PRINTF_CALLBACK_ARM, (cl_context_properties)CLCallback, + CL_PRINTF_CALLBACK_ARM, (cl_context_properties)OpenCLPrintfCallback, CL_PRINTF_BUFFERSIZE_ARM, 0x1000, 0 }; context_ = std::shared_ptr( -- GitLab