Skip to content

Commit

Permalink
【CMake opt No.10】Remove all paddle_test DEPS in test/cpp/pir/cinn/CMa…
Browse files Browse the repository at this point in the history
…keLists.txt (#60239)

* rm deps in pir/cinn

* fix

* fix

---------

Co-authored-by: 张春乔 <[email protected]>
  • Loading branch information
zrr1999 and Liyulingyue authored Dec 26, 2023
1 parent 3d2b2de commit 4f84c58
Showing 1 changed file with 12 additions and 65 deletions.
77 changes: 12 additions & 65 deletions test/cpp/pir/cinn/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,82 +1,29 @@
add_subdirectory(adt)

if(WITH_TESTING AND WITH_CINN)
paddle_test(test_pir_compiler SRCS pir_compiler_test.cc DEPS pir_compiler
cinn_runtime_dialect)
paddle_test(test_pir_compiler SRCS pir_compiler_test.cc)

paddle_test(test_jit_instruction SRCS jit_instruction_test.cc DEPS
cinn_runtime_dialect pir_compiler)
paddle_test(test_jit_instruction SRCS jit_instruction_test.cc)

paddle_test(
test_dialect_convert
SRCS
dialect_convert_test.cc
DEPS
drr
pd_to_cinn_pass
op_dialect_vjp
cinn_op_dialect
pir)
paddle_test(test_dialect_convert SRCS dialect_convert_test.cc)

paddle_test(
test_add_broadcast_to_elementwise
SRCS
add_broadcast_to_elementwise_test.cc
DEPS
drr
pd_to_cinn_pass
op_dialect_vjp
cinn_op_dialect
add_broadcast_to_elementwise_pass
pir)
paddle_test(test_add_broadcast_to_elementwise SRCS
add_broadcast_to_elementwise_test.cc)

paddle_test(
test_sub_graph_extract
SRCS
sub_graph_extract_test.cc
DEPS
drr
pd_to_cinn_pass
cinn_op_dialect
op_dialect_vjp
pir_transforms
pir)
paddle_test(test_sub_graph_extract SRCS sub_graph_extract_test.cc DEPS
pir_transforms)

paddle_test(test_ir_op_fusion SRCS ir_op_fusion_test.cc)

paddle_test(
test_pir_all_path
SRCS
pir_all_path_test.cc
DEPS
pir_transforms
cinn_op_dialect
pd_to_cinn_pass
add_broadcast_to_elementwise_pass)
paddle_test(test_pir_all_path SRCS pir_all_path_test.cc)

paddle_test(
test_group_op
SRCS
group_op_test.cc
DEPS
pd_to_cinn_pass
add_broadcast_to_elementwise_pass
cinn_op_dialect
pir_transforms)
paddle_test(test_group_op SRCS group_op_test.cc)

paddle_test(
dynamic_reshape_test
SRCS
dynamic_reshape_test.cc
DEPS
pd_to_cinn_pass
cinn_op_dialect
pir_transforms)
paddle_test(dynamic_reshape_test SRCS dynamic_reshape_test.cc)

paddle_test(test_pir_build_cinn_pass SRCS build_cinn_pass_test.cc DEPS
pir_transforms pir)
paddle_test(test_pir_build_cinn_pass SRCS build_cinn_pass_test.cc)

paddle_test(test_compilation_task SRCS compilation_task_test.cc DEPS pir)
paddle_test(test_compilation_task SRCS compilation_task_test.cc)

# DO NOT forget add test name here, otherwise it will not be executed in
# CINN CI.
Expand Down

0 comments on commit 4f84c58

Please sign in to comment.