CMakeLists.txt 1.1 KB
Newer Older
Y
Yan Chunwei 已提交
1 2
core_gather_headers()

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
gather_srcs(
  infrt_src
  SRCS
  kernel_frame.cc
  kernel_registry.cc
  value.cc
  kernel_utils.cc
  symbol_table.cc
  op_executable.cc
  core_runtime.cc
  mlir_to_runtime_translate.cc
  function.cc
  mlir_function_executable.cc
  mlir_program_executor.cc
  paddle_mlir.cc)
Y
Yan Chunwei 已提交
18

19 20 21 22 23 24 25 26 27 28 29 30
cc_test_tiny(test_infrt_host_context_value SRCS value_test.cc DEPS infrt
             ${MLIR_IR_LIBS})
cc_test_tiny(test_infrt_kernel_utils SRCS kernel_utils_test.cc DEPS infrt
             ${MLIR_IR_LIBS})
cc_test_tiny(test_infrt_kernel_registry SRCS kernel_registry_test.cc DEPS infrt
             ${MLIR_IR_LIBS})
cc_test_tiny(test_infrt_op_executable SRCS op_executable_test.cc DEPS infrt
             ${MLIR_IR_LIBS})
cc_test_tiny(test_infrt_core_runtime SRCS core_runtime_test.cc DEPS infrt
             ${MLIR_IR_LIBS})
cc_test_tiny(test_infrt_mlir_to_runtime_translate SRCS
             mlir_to_runtime_translate_test.cc DEPS infrt ${MLIR_IR_LIBS})
Y
Yan Chunwei 已提交
31

32
add_executable(paddle-mlir-convert paddle_mlir_converter.cc)
33
target_link_libraries(paddle-mlir-convert infrt ${MLIR_IR_LIBS})
34 35
add_executable(infrtexec mlir_exec.cc)
target_link_libraries(infrtexec infrt ${MLIR_IR_LIBS})