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
cc_library(
7 8 9 10 11 12 13 14
  jit_function_utils
  SRCS function_utils.cc
  DEPS lod_tensor scope proto_desc)

cc_library(
  jit_serializer_utils
  SRCS serializer_utils.cc
  DEPS proto_desc)
15 16 17 18 19 20

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

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

26 27 28
cc_library(
  jit_layer
  SRCS layer.cc
29 30
  DEPS jit_serializer jit_function_utils jit_serializer_utils
       jit_compilation_unit jit_function_schema)
31

T
tianshuo78520a 已提交
32
if(WITH_TESTING AND NOT WIN32)
33 34
  add_custom_target(
    jit_download_program
35
    COMMAND wget -nc -q
36
            https://paddle-ci.gz.bcebos.com/dy2st/multi_program_load.tar.gz
37
    COMMAND tar zxf multi_program_load.tar.gz)
38 39
  set(JIT_DEPS
      phi
40
      phi_api
41 42 43 44 45 46 47
      elementwise_add_op
      matmul_v2_op
      activation_op
      reduce_mean_op
      feed_op
      fetch_op
      scale_op
48
      jit_layer)
49 50 51 52 53 54
  cc_test(
    layer_test
    SRCS layer_test.cc
    DEPS ${JIT_DEPS})
  add_dependencies(layer_test jit_download_program)
endif()