From e861f8605bd55e55fae4850649367fc8c9cec39f Mon Sep 17 00:00:00 2001 From: Jiansong Wang Date: Tue, 8 Sep 2020 15:31:51 +0800 Subject: [PATCH] 1, Fix undefined reference of symbol about context; 2, Fix benchmark_bin link error that caused by missing deps; --- cmake/lite.cmake | 2 +- lite/core/context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/lite.cmake b/cmake/lite.cmake index 590243dc76..1b45818652 100644 --- a/cmake/lite.cmake +++ b/cmake/lite.cmake @@ -22,7 +22,7 @@ endfunction() function (lite_deps TARGET) set(options "") set(oneValueArgs "") - set(multiValueArgs DEPS X86_DEPS CUDA_DEPS ARM_DEPS PROFILE_DEPS LIGHT_DEPS HVY_DEPS CL_DEPS FPGA_DEPS BM_DEPS RKNPU_DEPS NPU_DEPS XPU_DEPS MLU_DEPS HUAWEI_ASCEND_NPU_DEPS APU_DEPS CV_DEPS ARGS) + set(multiValueArgs DEPS X86_DEPS CUDA_DEPS ARM_DEPS PROFILE_DEPS LIGHT_DEPS HVY_DEPS CL_DEPS FPGA_DEPS BM_DEPS RKNPU_DEPS NPU_DEPS XPU_DEPS MLU_DEPS HUAWEI_ASCEND_NPU_DEPS NNA_DEPS APU_DEPS CV_DEPS ARGS) cmake_parse_arguments(lite_deps "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) set(deps ${lite_deps_DEPS}) diff --git a/lite/core/context.h b/lite/core/context.h index 1cfdf435a3..8f6910df34 100644 --- a/lite/core/context.h +++ b/lite/core/context.h @@ -179,7 +179,7 @@ template <> class Context { public: Context() {} - explicit Context(const NNAContext& ctx); + // explicit Context(const NNAContext& ctx); // NOTE: InitOnce should only be used by ContextScheduler void InitOnce() {} void CopySharedTo(NNAContext* ctx) {} -- GitLab