CMakeLists.txt 1.3 KB
Newer Older
1 2 3 4 5 6 7
proto_library(paddle_jit_property_proto SRCS property.proto)

cc_library(
  jit_property
  SRCS property.cc
  DEPS paddle_jit_property_proto tensor)

8 9 10
cc_library(
  jit_serializer
  SRCS serializer.cc
11
  DEPS lod_tensor device_context jit_property)
12

13
cc_library(
14 15 16 17 18 19 20 21
  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)
22 23 24 25 26 27

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

28 29 30 31 32
cc_library(
  jit_function_schema
  SRCS function_schema.cc
  DEPS jit_function_utils)

33 34 35
cc_library(
  jit_layer
  SRCS layer.cc
36 37
  DEPS jit_serializer jit_function_utils jit_serializer_utils
       jit_compilation_unit jit_function_schema)
38

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