未验证 提交 abf7af22 编写于 作者: W WangZhen 提交者: GitHub

Fix ci build error (#56936)

上级 c089a2af
......@@ -88,6 +88,9 @@ add_custom_command(
${op_yaml_file4}
VERBATIM)
set(api_gen_yaml_files
${op_forward_yaml_file1},${op_forward_yaml_file2},${op_backward_yaml_file1},${op_backward_yaml_file2},${op_yaml_file3},${op_yaml_file4}
)
set(api_gen_file
${PADDLE_SOURCE_DIR}/paddle/fluid/ir/dialect/op_generator/api_gen.py)
set(api_header_file ${PD_DIALECT_BINARY_DIR}/pd_api.h)
......@@ -98,7 +101,7 @@ set(api_source_file_tmp ${api_source_file}.tmp)
add_custom_command(
OUTPUT ${api_header_file} ${api_source_file}
COMMAND
${PYTHON_EXECUTABLE} ${api_gen_file} --op_yaml_files ${op_yaml_files}
${PYTHON_EXECUTABLE} ${api_gen_file} --op_yaml_files ${api_gen_yaml_files}
--op_compat_yaml_file ${op_compat_yaml_file} --namespaces ${op_namespace}
--api_def_h_file ${api_header_file_tmp} --api_def_cc_file
${api_source_file_tmp}
......@@ -129,9 +132,10 @@ set(python_c_source_file_tmp ${python_c_source_file}.tmp)
add_custom_command(
OUTPUT ${python_c_header_file} ${python_c_source_file}
COMMAND
${PYTHON_EXECUTABLE} ${python_c_gen_file} --op_yaml_files ${op_yaml_files}
--op_compat_yaml_file ${op_compat_yaml_file} --namespaces "paddle,pybind"
--python_c_def_h_file ${python_c_header_file_tmp} --python_c_def_cc_file
${PYTHON_EXECUTABLE} ${python_c_gen_file} --op_yaml_files
${api_gen_yaml_files} --op_compat_yaml_file ${op_compat_yaml_file}
--namespaces "paddle,pybind" --python_c_def_h_file
${python_c_header_file_tmp} --python_c_def_cc_file
${python_c_source_file_tmp}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${python_c_header_file_tmp}
${python_c_header_file}
......@@ -159,9 +163,9 @@ set(ops_api_source_file_tmp ${ops_api_source_file}.tmp)
add_custom_command(
OUTPUT ${ops_api_source_file}
COMMAND
${PYTHON_EXECUTABLE} ${ops_api_gen_file} --op_yaml_files ${op_yaml_files}
--op_compat_yaml_file ${op_compat_yaml_file} --namespaces "paddle,pybind"
--ops_api_file ${ops_api_source_file_tmp}
${PYTHON_EXECUTABLE} ${ops_api_gen_file} --op_yaml_files
${api_gen_yaml_files} --op_compat_yaml_file ${op_compat_yaml_file}
--namespaces "paddle,pybind" --ops_api_file ${ops_api_source_file_tmp}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${ops_api_source_file_tmp}
${ops_api_source_file}
COMMENT "copy_if_different ${ops_api_source_file}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册