CMakeLists.txt 1.2 KB
Newer Older
1
if(NOT (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM))
2 3 4
    return()
endif()

S
update  
superjomn 已提交
5
message(STATUS "compile with lite ARM kernels")
6

T
tensor-tang 已提交
7
cc_library(fc_compute_arm SRCS fc_compute.cc DEPS ${lite_kernel_deps} math_arm)
8 9
cc_library(relu_compute_arm SRCS relu_compute.cc DEPS ${lite_kernel_deps})
cc_library(mul_compute_arm SRCS mul_compute.cc DEPS ${lite_kernel_deps} eigen3)
10
cc_library(scale_compute_arm SRCS scale_compute.cc DEPS ${lite_kernel_deps} math_arm)
11
cc_library(softmax_compute_arm SRCS softmax_compute.cc DEPS ${lite_kernel_deps} math_arm)
12
cc_library(elementwise_add_compute_arm SRCS elementwise_add_compute.cc DEPS ${lite_kernel_deps} math_arm)
13

14
lite_cc_test(test_fc_compute_arm SRCS fc_compute_test.cc DEPS fc_compute_arm math_arm)
15
lite_cc_test(test_scale_compute_arm SRCS scale_compute_test.cc DEPS scale_compute_arm)
16
lite_cc_test(test_softmax_compute_arm SRCS softmax_compute_test.cc DEPS softmax_compute_arm)
17
lite_cc_test(test_elementwise_add_compute_arm SRCS elementwise_add_compute_test.cc DEPS elementwise_add_compute_arm)
T
tensor-tang 已提交
18

19 20 21 22
set(arm_kernels
    fc_compute_arm
    relu_compute_arm
    mul_compute_arm
23
    scale_compute_arm
24 25
    softmax_compute_arm
	elementwise_add_compute_arm)
26 27

set(arm_kernels "${arm_kernels}" CACHE INTERNAL "arm kernels")