diff --git a/mace/core/runtime/opencl/opencl_runtime.cc b/mace/core/runtime/opencl/opencl_runtime.cc index b6d51f9a2b363cdfee20caaba9986a06b83afa77..fda211d4860a32fc3bec56152b06eefb6b3a386f 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(