CMakeLists.txt 1.1 KB
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
core_gather_headers()

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
15
    paddle_mlir.cc
Y
Yan Chunwei 已提交
16 17 18 19 20 21 22 23 24
    )

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})

25
add_executable(paddle-mlir-convert paddle_mlir_converter.cc)
26
target_link_libraries(paddle-mlir-convert infrt ${MLIR_IR_LIBS})
27 28
add_executable(infrtexec mlir_exec.cc)
target_link_libraries(infrtexec infrt ${MLIR_IR_LIBS})