diff --git a/lite/CMakeLists.txt b/lite/CMakeLists.txt index fd20cc2ce28ad99a13215a8e8aff7ea4ddea4858..f88043a41b366bceb82a5578723d9f26ea193c26 100644 --- a/lite/CMakeLists.txt +++ b/lite/CMakeLists.txt @@ -12,6 +12,7 @@ message(STATUS "LITE_WITH_PROFILE:\t${LITE_WITH_PROFILE}") set(LITE_MODEL_DIR "${THIRD_PARTY_PATH}/install") set(LITE_ON_MOBILE ${LITE_WITH_LIGHT_WEIGHT_FRAMEWORK}) +add_subdirectory(backends) add_subdirectory(utils) add_subdirectory(operators) add_subdirectory(kernels) @@ -19,7 +20,6 @@ add_subdirectory(core) add_subdirectory(model_parser) add_subdirectory(api) add_subdirectory(fluid) -add_subdirectory(backends) if (NOT LITE_ON_TINY_PUBLISH) add_subdirectory(tests) diff --git a/lite/backends/CMakeLists.txt b/lite/backends/CMakeLists.txt index 80dc574de894280575837584dadd8024660c6dc6..70b4f0bbf794ed7ca537177f48fee34a5955aba5 100644 --- a/lite/backends/CMakeLists.txt +++ b/lite/backends/CMakeLists.txt @@ -1,7 +1,7 @@ +add_subdirectory(opencl) add_subdirectory(arm) add_subdirectory(x86) add_subdirectory(cuda) add_subdirectory(fpga) add_subdirectory(host) -add_subdirectory(opencl) add_subdirectory(npu) diff --git a/lite/backends/arm/math/CMakeLists.txt b/lite/backends/arm/math/CMakeLists.txt index f17928cc2935089fd4d9925d9791f0190f1e5c85..4f59a0541c8bf1d39ec67ea04e9b021ebe524af4 100644 --- a/lite/backends/arm/math/CMakeLists.txt +++ b/lite/backends/arm/math/CMakeLists.txt @@ -104,8 +104,8 @@ if (NOT HAS_ARM_MATH_LIB_DIR) slice.cc reduce_mean.cc stack.cc - affine_channel.cc - anchor_generator.cc - DEPS ${lite_kernel_deps}) + affine_channel.cc + anchor_generator.cc + DEPS ${lite_kernel_deps} context tensor) endif() diff --git a/lite/backends/arm/math/gemm_prepacked_int8.cc b/lite/backends/arm/math/gemm_prepacked_int8.cc index 9efae1115772a17b73565ffd886dd0dcbda5df34..136a0f7ef19813c5106c1180dc9d8628d69b3aa9 100644 --- a/lite/backends/arm/math/gemm_prepacked_int8.cc +++ b/lite/backends/arm/math/gemm_prepacked_int8.cc @@ -1924,6 +1924,7 @@ void gemm_prepack_oth_int8(const int8_t* A_packed, auto* zerobuf = static_cast(malloc(x_block * \ (sizeof(int8_t) + sizeof(Dtype)))); memset(zerobuf, 0, x_block * sizeof(int8_t)); + auto* trash_ptr = reinterpret_cast(zerobuf + \ x_block * sizeof(int8_t)); diff --git a/lite/core/arena/CMakeLists.txt b/lite/core/arena/CMakeLists.txt index 854d2f4172544a4170d19cd8a77fd2ea8fc4753e..127e2ea11c159217e6d943d852af5849d85a74b3 100644 --- a/lite/core/arena/CMakeLists.txt +++ b/lite/core/arena/CMakeLists.txt @@ -3,7 +3,7 @@ if(NOT WITH_TESTING) return() endif() -lite_cc_library(arena_framework SRCS framework.cc DEPS program) +lite_cc_library(arena_framework SRCS framework.cc DEPS program gtest) if(NOT LITE_WITH_OPENCL AND (LITE_WITH_X86 OR LITE_WITH_ARM)) lite_cc_test(test_arena_framework SRCS framework_test.cc DEPS arena_framework ${x86_kernels} ${fpga_kernels} ${arm_kernels} ${lite_ops} ${host_kernels})