diff --git a/lite/core/kernel.h b/lite/core/kernel.h index 4fd9996c0abe322fc6a726a83f2dc74865f567e8..e9d989d492fb759d9d7f04ec5d7a9fe43afc92be 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 }