CMakeLists.txt 1.7 KB
Newer Older
1 2
core_gather_headers()

3 4 5 6 7 8 9 10 11
gather_srcs(
  cinnapi_src
  SRCS
  tensor.cc
  scope.cc
  variable.cc
  buffer.cc
  memory.cc
  instruction.cc
12
  program.cc
13 14 15 16 17 18 19 20 21 22
  parallel_compiler.cc
  graph_compiler.cc
  graph.cc
  node.cc
  pass.cc
  op_strategy.cc
  op_lowering.cc
  op_lowering_util.cc
  accuracy_checker.cc
  visualize_helper.cc)
23

24 25 26 27 28 29 30
# TODO(Aurelius84): new_ir_compiler depends on pd_dialect and could
# not found under CINN_ONLY mode
if(NOT CINN_ONLY)
  cinn_cc_library(new_ir_compiler SRCS new_ir_compiler.cc DEPS cinncore
                  pd_dialect)
endif()

31 32
if(WITH_CUDA)
  cinn_nv_test(test_hlir_framework_buffer SRCS buffer_test.cc DEPS cinncore)
33 34 35 36
  cinn_cc_test(test_hlir_framework_accuracy_checker SRCS
               accuracy_checker_test.cc DEPS cinncore)
  cinn_cc_test(test_hlir_framework_parallel_compiler SRCS
               parallel_compiler_test.cc DEPS cinncore)
37 38 39 40
else()
  cinn_cc_test(test_hlir_framework_buffer SRCS buffer_test.cc DEPS cinncore)
endif()

41 42 43
if(WITH_CUDA)
  cinn_cc_test(test_hlir_framework_op_lowering SRCS op_lowering_test.cc DEPS
               cinncore decomposer_test_helper)
44 45 46
endif()
cinn_cc_test(test_hlir_framework_tensor SRCS tensor_test.cc DEPS cinncore)
cinn_cc_test(test_hlir_framework_scope SRCS scope_test.cc DEPS cinncore)
47 48
cinn_cc_test(test_hlir_framework_instruction SRCS instruction_test.cc DEPS
             cinncore)
49
cinn_cc_test(test_hlir_framework_op SRCS op_test.cc DEPS cinncore)
50 51
cinn_cc_test(test_hlir_framework_print_graph_pass SRCS print_graph_pass_test.cc
             DEPS cinncore)
52 53 54
cinn_cc_test(test_hlir_framework_graph SRCS graph_test.cc DEPS cinncore)

#cinn_cc_test(test_hlir_framework_graph_compiler SRCS graph_compiler_test.cc DEPS cinncore)