提交 9a10300d 编写于 作者: L liuqi

Rename CLCallback to OpenCLPrintfCallback.

上级 ea3ed9ae
......@@ -155,7 +155,7 @@ const std::string OpenCLErrorToString(cl_int error) {
}
namespace {
void CLCallback(const char *buffer,
void OpenCLPrintfCallback(const char *buffer,
size_t length,
size_t final,
void *user_data) {
......@@ -311,7 +311,7 @@ OpenCLRuntime::OpenCLRuntime(GPUPerfHint gpu_perf_hint,
if (is_profiling_enabled_ && gpu_type_ == GPUType::MALI) {
std::vector<cl_context_properties> 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<cl::Context>(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册