CMakeLists.txt 1.1 KB
Newer Older
1 2 3 4 5
cc_library(
  jit_serializer
  SRCS serializer.cc
  DEPS lod_tensor device_context)

6 7 8 9 10 11 12 13 14 15
cc_library(
  jit_layer_utils
  SRCS layer_utils.cc
  DEPS scope proto_desc)

cc_library(
  jit_compilation_unit
  SRCS compilation_unit.cc
  DEPS proto_desc executor parallel_executor executor_cache)

16 17 18
cc_library(
  jit_layer
  SRCS layer.cc
19
  DEPS jit_compilation_unit)
20 21

cc_library(
22 23 24
  jit_function_schema
  SRCS function_schema.cc
  DEPS jit_layer_utils)
25

W
WangZhen 已提交
26 27 28
if(WITH_TESTING
   AND NOT WIN32
   AND NOT "$ENV{CI_SKIP_CPP_TEST}" STREQUAL "ON")
29 30
  add_custom_target(
    jit_download_program
W
WangZhen 已提交
31 32
    COMMAND wget -nc https://paddle-ci.gz.bcebos.com/dy2st/Testing.tar.gz
    COMMAND tar zxvf Testing.tar.gz)
33 34 35 36 37 38 39 40 41 42 43
  set(JIT_DEPS
      phi
      elementwise_add_op
      matmul_v2_op
      activation_op
      reduce_mean_op
      feed_op
      fetch_op
      scale_op
      jit_serializer
      jit_layer
44 45 46
      jit_layer_utils
      jit_function_schema
      jit_compilation_unit)
47 48 49 50 51 52
  cc_test(
    layer_test
    SRCS layer_test.cc
    DEPS ${JIT_DEPS})
  add_dependencies(layer_test jit_download_program)
endif()