提交 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)
add_subdirectory(proto)
if(NOT ANDROID AND NOT IOS)
# "add_subdirectory(go)" should be placed after the following loine,
# because it depends on paddle/optimizer.
add_subdirectory(paddle/optimizer)
endif()
# "add_subdirectory(go)" should be placed after the following loine,
# because it depends on paddle/optimizer.
add_subdirectory(paddle/optimizer)
# "add_subdirectory(paddle)" and "add_subdirectory(python)" should be
# placed after this block, because they depends on it.
......
......@@ -49,8 +49,6 @@ if(NOT IOS)
endif()
set(CMAKE_SYSTEM_NAME Darwin)
#set(UNIX ON)
#set(APPLE ON)
# Get the Xcode version being used.
execute_process(COMMAND xcodebuild -version
......
......@@ -71,25 +71,20 @@ function(link_paddle_exe TARGET_NAME)
generate_rdma_links()
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}
ARCHIVE_START
paddle_gserver
paddle_function
ARCHIVE_END
paddle_pserver
paddle_trainer_lib
paddle_network
paddle_math
paddle_utils
paddle_parameter
paddle_proto
paddle_cuda
${PADDLE_TRAIN_LIBS}
paddle_optimizer
${EXTERNAL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
......
......@@ -5,12 +5,8 @@ add_subdirectory(testing)
add_subdirectory(math)
add_subdirectory(parameter)
add_subdirectory(gserver)
if(NOT ANDROID AND NOT IOS)
add_subdirectory(pserver)
add_subdirectory(trainer)
endif()
add_subdirectory(pserver)
add_subdirectory(trainer)
add_subdirectory(scripts)
add_subdirectory(string)
......@@ -23,7 +19,7 @@ if(Boost_FOUND)
endif()
if(WITH_C_API)
add_subdirectory(capi)
add_subdirectory(capi)
endif()
if(WITH_SWIG_PY)
......
......@@ -38,9 +38,8 @@ set(PADDLE_CAPI_INFER_LIBS
paddle_function
paddle_gserver
paddle_proto
)
set(PADDLE_CAPI_TRAIN_LIBS paddle_pserver paddle_network)
paddle_pserver
paddle_network)
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.
先完成此消息的编辑!
想要评论请 注册