未验证 提交 96006f77 编写于 作者: R risemeup1 提交者: GitHub

fix ninja problem (#50431)

上级 055d0c2d
......@@ -4,11 +4,8 @@ add_subdirectory(fleet_executor)
if(WITH_PYTHON)
py_proto_compile(pslib_py_proto SRCS ps.proto)
py_proto_compile(ps_py_proto SRCS the_one_ps.proto)
add_custom_target(
ps_py_proto_init ALL
COMMAND ${CMAKE_COMMAND} -E make_directory
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto)
add_dependencies(ps_py_proto ps_py_proto_init)
file(MAKE_DIRECTORY
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto)
set(PSLIB_PROTO_DSTPATH
"${PADDLE_SOURCE_DIR}/python/paddle/fluid/incubate/fleet/parameter_server/pslib/"
)
......
......@@ -581,13 +581,10 @@ if(WITH_PYTHON)
py_proto_compile(pass_desc_py_proto SRCS pass_desc.proto)
#Generate an empty \
#__init__.py to make framework_py_proto as a valid python module.
add_custom_target(
fleet_proto_init ALL
COMMAND ${CMAKE_COMMAND} -E make_directory
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto
COMMAND
${CMAKE_COMMAND} -E touch
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/__init__.py)
file(MAKE_DIRECTORY
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto)
file(TOUCH
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/__init__.py)
add_custom_target(framework_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E
touch __init__.py)
add_dependencies(
......@@ -595,10 +592,8 @@ if(WITH_PYTHON)
framework_py_proto_init
trainer_py_proto
distributed_strategy_py_proto
fleet_proto_init
pass_desc_py_proto
ps_py_proto
ps_py_proto_init
pslib_py_proto)
if(NOT WIN32)
add_custom_command(
......@@ -614,7 +609,7 @@ if(WITH_PYTHON)
if(NOT WITH_ROCM)
add_custom_target(
fleet_executor_proto_init ALL
DEPENDS fleet_proto_init fleet_executor_desc_py_proto
DEPENDS fleet_executor_desc_py_proto
COMMAND
cp
${PADDLE_BINARY_DIR}/paddle/fluid/distributed/fleet_executor/fleet_executor_*.py
......@@ -646,7 +641,7 @@ endif()
if(WITH_PSCORE)
add_custom_target(
index_dataset_proto_init ALL
DEPENDS fleet_proto_init index_dataset_py_proto
DEPENDS index_dataset_py_proto
COMMAND
cp
${PADDLE_BINARY_DIR}/paddle/fluid/distributed/index_dataset/index_dataset_*.py
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册