CMakeLists.txt 1.6 KB
Newer Older
1
cc_library(
Y
Yan Chunwei 已提交
2
  ir_graph_build_pass
3 4 5
  SRCS ir_graph_build_pass.cc
  DEPS analysis_pass argument ir_pass_manager)
cc_library(
Y
Yan Chunwei 已提交
6
  ir_analysis_pass
7 8 9 10 11 12
  SRCS ir_analysis_pass.cc
  DEPS analysis_pass argument ir_pass_manager)
cc_library(
  memory_optim_pass
  SRCS memory_optimize_pass.cc
  DEPS analysis_pass zero_copy_tensor)
13 14 15 16
cc_library(
  convert_to_mixed_precision
  SRCS convert_to_mixed_precision.cc
  DEPS analysis_pass ir_graph_build_pass)
17
cc_library(
Y
Yan Chunwei 已提交
18
  ir_params_sync_among_devices_pass
19 20 21 22 23 24 25
  SRCS ir_params_sync_among_devices_pass.cc
  DEPS analysis_pass argument ir_pass_manager)
cc_library(
  ir_graph_to_program_pass
  SRCS ir_graph_to_program_pass.cc
  DEPS analysis_pass graph_to_program_pass)
cc_library(
Z
Zhaolong Xing 已提交
26
  adjust_cudnn_workspace_size_pass
27 28 29
  SRCS adjust_cudnn_workspace_size_pass.cc
  DEPS analysis_pass graph_to_program_pass)
cc_library(
30
  inference_op_replace_pass
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
  SRCS inference_op_replace_pass.cc
  DEPS analysis_pass graph_to_program_pass)
if(WITH_TESTING)
  cc_library(
    ir_graph_clean_pass
    SRCS ir_graph_clean_pass.cc
    DEPS analysis_pass gtest)
else()
  cc_library(
    ir_graph_clean_pass
    SRCS ir_graph_clean_pass.cc
    DEPS analysis_pass)
endif()

cc_library(
  analysis_passes
  SRCS passes.cc
  DEPS ir_graph_build_pass
       ir_analysis_pass
       ir_params_sync_among_devices_pass
       adjust_cudnn_workspace_size_pass
       memory_optim_pass
53
       convert_to_mixed_precision
54 55 56
       inference_op_replace_pass
       ir_graph_to_program_pass
       ir_graph_clean_pass)
57

58 59 60
set(analysis_deps
    ${analysis_deps} analysis_passes subgraph_detector
    CACHE INTERNAL "")