From 14f00dc5336b3d8fc637fd089b9fc6588e95c66a Mon Sep 17 00:00:00 2001 From: chen2016013 <111894720+chen2016013@users.noreply.github.com> Date: Fri, 8 Sep 2023 10:10:49 +0800 Subject: [PATCH] fix pd_ops.yaml generation bug (#57041) --- paddle/fluid/ir/dialect/paddle_dialect/ir/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/fluid/ir/dialect/paddle_dialect/ir/CMakeLists.txt b/paddle/fluid/ir/dialect/paddle_dialect/ir/CMakeLists.txt index 08cc463c34c..64e3e982133 100644 --- a/paddle/fluid/ir/dialect/paddle_dialect/ir/CMakeLists.txt +++ b/paddle/fluid/ir/dialect/paddle_dialect/ir/CMakeLists.txt @@ -58,8 +58,12 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E make_directory ${parsed_op_dir} COMMAND ${PYTHON_EXECUTABLE} ${op_gen_parsed_yaml_file} --op_yaml_path ${pd_op_forward_yaml_file} --output_path ${op_yaml_file3} + COMMENT "Generate pd_ops.parsed.yaml" COMMAND ${PYTHON_EXECUTABLE} ${op_gen_parsed_yaml_file} --op_yaml_path ${pd_op_backward_yaml_file} --output_path ${op_yaml_file4} --backward + COMMENT "Generate pd_ops_backward.parsed.yaml" + DEPENDS ${op_gen_parsed_yaml_file} ${pd_op_forward_yaml_file} + ${pd_op_backward_yaml_file} VERBATIM) add_custom_command( -- GitLab