From 6dc881e976e9d5f7099ef4686235db3c08104eeb Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Thu, 14 Apr 2022 17:40:29 +0800 Subject: [PATCH] fix bug of ps_py_proto cant find path for the folder not created (#41793) --- paddle/fluid/distributed/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/distributed/CMakeLists.txt b/paddle/fluid/distributed/CMakeLists.txt index 0091c14bfd1..107a19cb7de 100644 --- a/paddle/fluid/distributed/CMakeLists.txt +++ b/paddle/fluid/distributed/CMakeLists.txt @@ -4,6 +4,7 @@ if(WITH_PYTHON) 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) if (NOT WIN32) add_custom_command(TARGET ps_py_proto POST_BUILD COMMAND mv the_one_ps_pb2.py ${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/) -- GitLab