未验证 提交 519aa0dd 编写于 作者: H hong19860320 提交者: GitHub

[Core] Fix compilation errors in kernel.h if profiling is enabled (#4023)

test=develop
上级 0e5e49c0
...@@ -66,7 +66,7 @@ class KernelBase { ...@@ -66,7 +66,7 @@ class KernelBase {
virtual void SetProfileRuntimeKernelInfo( virtual void SetProfileRuntimeKernelInfo(
paddle::lite::profile::OpCharacter* ch) { paddle::lite::profile::OpCharacter* ch) {
ch->kernel_func_name = std::string("NotImpl"); ch->kernel_func_name = std::string("NotImpl");
#ifdef LITE_WITH_ARM #ifdef LITE_WITH_OPENCL
ch->cl_event = event_; ch->cl_event = event_;
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册