From 519aa0dd48eed923e21524ecb0b5b3b70712c6ec Mon Sep 17 00:00:00 2001 From: hong19860320 <9973393+hong19860320@users.noreply.github.com> Date: Sat, 1 Aug 2020 07:59:13 +0800 Subject: [PATCH] [Core] Fix compilation errors in kernel.h if profiling is enabled (#4023) test=develop --- lite/core/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/core/kernel.h b/lite/core/kernel.h index 4fd9996c0a..e9d989d492 100644 --- a/lite/core/kernel.h +++ b/lite/core/kernel.h @@ -66,7 +66,7 @@ class KernelBase { virtual void SetProfileRuntimeKernelInfo( paddle::lite::profile::OpCharacter* ch) { ch->kernel_func_name = std::string("NotImpl"); -#ifdef LITE_WITH_ARM +#ifdef LITE_WITH_OPENCL ch->cl_event = event_; #endif } -- GitLab