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

fix ninja problem (#50431)

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