提交 fb93a8be 编写于 作者: L Liu Yiqun

Add paddle_pserver back to c-api library, because it is used in Evaluator.h.

上级 36fc4052
...@@ -155,11 +155,9 @@ endif(USE_NNPACK) ...@@ -155,11 +155,9 @@ endif(USE_NNPACK)
add_subdirectory(proto) add_subdirectory(proto)
if(NOT ANDROID AND NOT IOS) # "add_subdirectory(go)" should be placed after the following loine,
# "add_subdirectory(go)" should be placed after the following loine, # because it depends on paddle/optimizer.
# because it depends on paddle/optimizer. add_subdirectory(paddle/optimizer)
add_subdirectory(paddle/optimizer)
endif()
# "add_subdirectory(paddle)" and "add_subdirectory(python)" should be # "add_subdirectory(paddle)" and "add_subdirectory(python)" should be
# placed after this block, because they depends on it. # placed after this block, because they depends on it.
......
...@@ -49,8 +49,6 @@ if(NOT IOS) ...@@ -49,8 +49,6 @@ if(NOT IOS)
endif() endif()
set(CMAKE_SYSTEM_NAME Darwin) set(CMAKE_SYSTEM_NAME Darwin)
#set(UNIX ON)
#set(APPLE ON)
# Get the Xcode version being used. # Get the Xcode version being used.
execute_process(COMMAND xcodebuild -version execute_process(COMMAND xcodebuild -version
......
...@@ -71,25 +71,20 @@ function(link_paddle_exe TARGET_NAME) ...@@ -71,25 +71,20 @@ function(link_paddle_exe TARGET_NAME)
generate_rdma_links() generate_rdma_links()
endif() endif()
if(NOT ANDROID AND NOT IOS)
set(PADDLE_TRAIN_LIBS
paddle_pserver
paddle_network
paddle_trainer_lib
paddle_optimizer)
endif()
target_circle_link_libraries(${TARGET_NAME} target_circle_link_libraries(${TARGET_NAME}
ARCHIVE_START ARCHIVE_START
paddle_gserver paddle_gserver
paddle_function paddle_function
ARCHIVE_END ARCHIVE_END
paddle_pserver
paddle_trainer_lib
paddle_network
paddle_math paddle_math
paddle_utils paddle_utils
paddle_parameter paddle_parameter
paddle_proto paddle_proto
paddle_cuda paddle_cuda
${PADDLE_TRAIN_LIBS} paddle_optimizer
${EXTERNAL_LIBS} ${EXTERNAL_LIBS}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS} ${CMAKE_DL_LIBS}
......
...@@ -5,12 +5,8 @@ add_subdirectory(testing) ...@@ -5,12 +5,8 @@ add_subdirectory(testing)
add_subdirectory(math) add_subdirectory(math)
add_subdirectory(parameter) add_subdirectory(parameter)
add_subdirectory(gserver) add_subdirectory(gserver)
add_subdirectory(pserver)
if(NOT ANDROID AND NOT IOS) add_subdirectory(trainer)
add_subdirectory(pserver)
add_subdirectory(trainer)
endif()
add_subdirectory(scripts) add_subdirectory(scripts)
add_subdirectory(string) add_subdirectory(string)
...@@ -23,7 +19,7 @@ if(Boost_FOUND) ...@@ -23,7 +19,7 @@ if(Boost_FOUND)
endif() endif()
if(WITH_C_API) if(WITH_C_API)
add_subdirectory(capi) add_subdirectory(capi)
endif() endif()
if(WITH_SWIG_PY) if(WITH_SWIG_PY)
......
...@@ -38,9 +38,8 @@ set(PADDLE_CAPI_INFER_LIBS ...@@ -38,9 +38,8 @@ set(PADDLE_CAPI_INFER_LIBS
paddle_function paddle_function
paddle_gserver paddle_gserver
paddle_proto paddle_proto
) paddle_pserver
paddle_network)
set(PADDLE_CAPI_TRAIN_LIBS paddle_pserver paddle_network)
cc_library(paddle_capi_whole DEPS paddle_capi ${PADDLE_CAPI_INFER_LIBS}) cc_library(paddle_capi_whole DEPS paddle_capi ${PADDLE_CAPI_INFER_LIBS})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册