Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
2acc420
add
gongweibao Jun 12, 2018
19cb300
add files
gongweibao Jun 12, 2018
b5eb369
add files
gongweibao Jun 12, 2018
68cd387
add serialize
gongweibao Jun 12, 2018
b3a6973
compile bserial
gongweibao Jun 13, 2018
9cd6f21
add brpc_serde_test
gongweibao Jun 13, 2018
b436597
fix
gongweibao Jun 13, 2018
fa0158a
add configure file
gongweibao Jun 13, 2018
10ad682
fix
gongweibao Jun 13, 2018
8e079b2
cleanup
gongweibao Jun 13, 2018
ddee50f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jun 14, 2018
a52adb8
add sendcomplete
gongweibao Jun 14, 2018
3123576
fix send recv
gongweibao Jun 14, 2018
166a79f
brpc_server_test passed
gongweibao Jun 14, 2018
18e1743
fix grpc
gongweibao Jun 14, 2018
8888078
fix
gongweibao Jun 14, 2018
5032b93
fix
gongweibao Jun 14, 2018
baf17e2
fix
gongweibao Jun 14, 2018
1bf3783
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jun 14, 2018
4544329
add framework_proto
gongweibao Jun 14, 2018
8cc2fbe
fix complation error
gongweibao Jun 14, 2018
d7023bb
merge
gongweibao Jun 14, 2018
8c51dd1
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jun 14, 2018
f806963
merge
gongweibao Jun 14, 2018
2fe5b68
fix unittest
gongweibao Jun 14, 2018
0355764
add assert
gongweibao Jun 14, 2018
8780c08
clean up
gongweibao Jun 15, 2018
f8662a1
follow comments
gongweibao Jun 17, 2018
20bef4f
add grpc comments
gongweibao Jun 20, 2018
cb31718
fix brpc complation error!
gongweibao Jun 20, 2018
1f49a32
add openssl static lib
gongweibao Jun 20, 2018
1c5fe25
add openssl static lib
gongweibao Jun 20, 2018
c7dba8e
fix deps
gongweibao Jun 20, 2018
6c84d2c
fix cmake
gongweibao Jun 20, 2018
18b0274
fix cmake
gongweibao Jun 21, 2018
a6c7ae3
fix fetch barrier
gongweibao Jun 21, 2018
efe8abb
fix fetch bug
gongweibao Jun 21, 2018
b1c8a6d
add logs
gongweibao Jun 21, 2018
41f62a4
fix get error
gongweibao Jun 21, 2018
4ccd5b1
change 131072
gongweibao Jun 25, 2018
3e4fada
add zero copy
gongweibao Jun 25, 2018
a77340d
add
gongweibao Jun 25, 2018
66e2d44
clean up
gongweibao Jun 25, 2018
d2cd653
clean up
gongweibao Jun 25, 2018
12ab36d
merge
gongweibao Jun 26, 2018
f8f0fe0
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jun 26, 2018
3bb4c13
fix merge
gongweibao Jun 26, 2018
c1ebb7c
brpc cmake
gongweibao Jun 26, 2018
700c15b
add
gongweibao Jun 28, 2018
0680a27
add brpc rdma
gongweibao Jun 28, 2018
b2a5c94
fix compile
gongweibao Jun 28, 2018
b0fc28f
add
gongweibao Jun 28, 2018
1f97756
fix cmake
gongweibao Jun 29, 2018
1ee917e
merge
gongweibao Jun 29, 2018
aad877a
add fix
gongweibao Jun 29, 2018
a1a3899
add log
gongweibao Jun 29, 2018
ee3c7dd
fix local variable bug
gongweibao Jun 30, 2018
9965ac2
fix test
gongweibao Jun 30, 2018
f26322a
fix core
gongweibao Jun 30, 2018
0c2a211
rm openssl.cmake
gongweibao Jun 30, 2018
aa8a03a
fix bug
gongweibao Jul 2, 2018
6e109ac
add
gongweibao Jul 2, 2018
d5c5ec0
modify brpc branch
gongweibao Jul 5, 2018
f079aea
test
gongweibao Jul 9, 2018
65397b3
test dist
gongweibao Jul 9, 2018
1fb0793
merge
gongweibao Jul 9, 2018
a1a59db
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jul 13, 2018
30d9b11
fix rpc_client_t
gongweibao Jul 13, 2018
8f7904f
merge
gongweibao Jul 16, 2018
8aa933c
merge
gongweibao Jul 16, 2018
3834fa3
clean up
gongweibao Jul 16, 2018
b27585f
merge
gongweibao Jul 16, 2018
c52b365
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
gongweibao Jul 17, 2018
d4665bb
fix config
gongweibao Jul 17, 2018
6fa5ac6
fix fluid benchmark
gongweibao Jul 20, 2018
22140d8
add
gongweibao Jul 31, 2018
e57d380
merge
gongweibao Jul 31, 2018
b77ee81
add
gongweibao Jul 31, 2018
397b453
fix
gongweibao Jul 31, 2018
c690f15
merge
gongweibao Sep 7, 2018
56a6a15
fix channel num
gongweibao Sep 7, 2018
6b638e0
fix inference compile
gongweibao Sep 7, 2018
0a4e750
fix anysis compile
gongweibao Sep 7, 2018
e9adf66
fix dist se
gongweibao Sep 7, 2018
839ef46
add checkpoint
gongweibao Sep 7, 2018
633718a
change initial conn num
gongweibao Sep 7, 2018
a4d489b
add sendcomplete
gongweibao Sep 28, 2018
dc07543
fix compile
gongweibao Sep 28, 2018
36df67d
fix
gongweibao Sep 29, 2018
0be5ca9
add
gongweibao Sep 29, 2018
949389f
Merge branch 'develop' of https://github.com/PaddlePaddle/paddle into…
gongweibao Sep 29, 2018
03476da
test=develop
gongweibao Sep 29, 2018
0154434
cleanup test=develop
gongweibao Sep 29, 2018
830079b
pre-commit tests=develop
gongweibao Sep 29, 2018
9afdf93
pre-commit test=develop
gongweibao Sep 29, 2018
cb087e4
Merge branch 'brpcserial' of https://github.com/gongweibao/Paddle int…
gongweibao Sep 29, 2018
a096876
fix gtest dependency test=develop
gongweibao Oct 8, 2018
8a5068a
Merge branch 'develop' of https://github.com/PaddlePaddle/paddle into…
gongweibao Oct 8, 2018
3309437
fix ci error test=develop
gongweibao Oct 8, 2018
fef1097
fix compile
gongweibao Oct 9, 2018
f5deaec
Merge branch 'develop' of https://github.com/PaddlePaddle/paddle into…
gongweibao Oct 9, 2018
c391d49
follow comments
gongweibao Oct 9, 2018
af74a19
add brpc
gongweibao Oct 11, 2018
cc46b3c
mrege
gongweibao Dec 6, 2018
e3ddd9a
fix ssl error
gongweibao Dec 6, 2018
92fb011
add some feature
gongweibao Dec 7, 2018
d260d5a
rm glob depends
gongweibao Dec 7, 2018
1fd988e
add record
gongweibao Dec 7, 2018
eecab31
fix trainer_id
gongweibao Dec 7, 2018
3585308
add checkpointnotify
gongweibao Dec 7, 2018
046c360
fix compile errors
gongweibao Dec 9, 2018
4a06e90
Merge branch 'develop' of https://github.com/PaddlePaddle/paddle into…
gongweibao Dec 11, 2018
eda4e36
add brpc collective server support
gongweibao Dec 11, 2018
2dd12aa
add collective server support
gongweibao Dec 11, 2018
f6bd695
fix grpc compile
gongweibao Dec 11, 2018
a76dc4e
fix cmake test=develop
gongweibao Dec 11, 2018
a7c7bf2
fix memory leak test=develop
gongweibao Dec 11, 2018
bc082c7
fix total limit warning test=develop
gongweibao Dec 11, 2018
13ca9c0
add more log
gongweibao Dec 12, 2018
7a4adad
split selected rows op should always init output selected rows
jacquesqiao Dec 10, 2018
a5534e1
test zero output of split_selected_rows_op
jacquesqiao Dec 11, 2018
c916534
fix the wrong format
tink2123 Nov 16, 2018
c559cd9
Fix the issue to run on AVX2 and AVX512F machines (#14851)
yihuaxu Dec 11, 2018
5a93241
Fix Eigen macro when using GPU
reyoung Dec 11, 2018
65c7d83
Fix compile error
reyoung Dec 11, 2018
f6b4015
Add gperftools supports for PE
reyoung Dec 10, 2018
db22ddc
Speed up SizeOfType
reyoung Dec 10, 2018
88acffc
Revert data_type
reyoung Dec 11, 2018
89394e2
Move ngraph compile control to cmake
baojun-nervana Dec 7, 2018
b5b1f90
Rename class
baojun-nervana Dec 7, 2018
d492699
Rename argument
baojun-nervana Dec 7, 2018
d6278a3
add async io
gongweibao Dec 13, 2018
e86f86b
clean up update mail fresh cla
gongweibao Dec 13, 2018
8c58ede
fresh test=develop
gongweibao Dec 14, 2018
f459d4a
fix
gongweibao Dec 14, 2018
842747a
follow comments test=develop
gongweibao Dec 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion benchmark/fluid/fluid_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ def dist_transpile(trainer_id, args, train_prog, startup_prog):
# the role, should be either PSERVER or TRAINER
training_role = os.getenv("PADDLE_TRAINING_ROLE")

config = distribute_transpiler.DistributeTranspilerConfig()
config = fluid.DistributeTranspilerConfig()
config.slice_var_up = not args.no_split_var
config.min_block_size = 1048576
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the default for benchmark?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Large block size can get better performance.

t = distribute_transpiler.DistributeTranspiler(config=config)

t.transpile(
trainer_id,
# NOTE: *MUST* use train_prog, for we are using with guard to
Expand Down
20 changes: 12 additions & 8 deletions cmake/external/brpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@

INCLUDE(ExternalProject)

find_library(SSL_LIBRARY NAMES ssl)
find_package(OpenSSL REQUIRED)

message(STATUS "ssl:" ${OPENSSL_SSL_LIBRARY})
message(STATUS "crypto:" ${OPENSSL_CRYPTO_LIBRARY})

ADD_LIBRARY(ssl SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET ssl PROPERTY IMPORTED_LOCATION ${SSL_LIBRARY})
SET_PROPERTY(TARGET ssl PROPERTY IMPORTED_LOCATION ${OPENSSL_SSL_LIBRARY})

find_library(CRYPTO_LIBRARY NAMES crypto)
ADD_LIBRARY(crypto SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET crypto PROPERTY IMPORTED_LOCATION ${CRYPTO_LIBRARY})

SET_PROPERTY(TARGET crypto PROPERTY IMPORTED_LOCATION ${OPENSSL_CRYPTO_LIBRARY})

SET(BRPC_SOURCES_DIR ${THIRD_PARTY_PATH}/brpc)
SET(BRPC_INSTALL_DIR ${THIRD_PARTY_PATH}/install/brpc)
Expand All @@ -31,14 +33,15 @@ SET(BRPC_LIBRARIES "${BRPC_INSTALL_DIR}/lib/libbrpc.a" CACHE FILEPATH "brpc libr
INCLUDE_DIRECTORIES(${BRPC_INCLUDE_DIR})

# Reference https://stackoverflow.com/questions/45414507/pass-a-list-of-prefix-paths-to-externalproject-add-in-cmake-args
set(prefix_path "${THIRD_PARTY_PATH}/install/gflags|${THIRD_PARTY_PATH}/install/leveldb|${THIRD_PARTY_PATH}/install/snappy|${THIRD_PARTY_PATH}/install/gtest|${THIRD_PARTY_PATH}/install/protobuf|${THIRD_PARTY_PATH}/install/zlib")
set(prefix_path "${THIRD_PARTY_PATH}/install/gflags|${THIRD_PARTY_PATH}/install/leveldb|${THIRD_PARTY_PATH}/install/snappy|${THIRD_PARTY_PATH}/install/gtest|${THIRD_PARTY_PATH}/install/protobuf|${THIRD_PARTY_PATH}/install/zlib|${THIRD_PARTY_PATH}/install/glog")

# If minimal .a is need, you can set WITH_DEBUG_SYMBOLS=OFF
ExternalProject_Add(
extern_brpc
${EXTERNAL_PROJECT_LOG_ARGS}
# TODO(gongwb): change to de newst repo when they changed.
GIT_REPOSITORY "https://github.com/gongweibao/brpc"
GIT_TAG "7dc04defad1fd4173aae170c3fcbde131b65155a"
GIT_TAG "e9b67ec1b7458f2af5fae76451afe1e27e01b4b4"
PREFIX ${BRPC_SOURCES_DIR}
UPDATE_COMMAND ""
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
Expand All @@ -50,7 +53,7 @@ ExternalProject_Add(
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_BUILD_TYPE=${THIRD_PARTY_BUILD_TYPE}
-DCMAKE_PREFIX_PATH=${prefix_path}
-DBRPC_WITH_GLOG=ON
-DWITH_GLOG=ON
-DIOBUF_WITH_HUGE_BLOCK=ON
-DBRPC_WITH_RDMA=${WITH_BRPC_RDMA}
${EXTERNAL_OPTIONAL_ARGS}
Expand All @@ -65,5 +68,6 @@ ADD_LIBRARY(brpc STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET brpc PROPERTY IMPORTED_LOCATION ${BRPC_LIBRARIES})
ADD_DEPENDENCIES(brpc extern_brpc)

add_definitions(-DBRPC_WITH_GLOG)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brpc use this macro to distinguish glog with brpc's own log.
So when we use brpc headerfiles ,we should add this.


LIST(APPEND external_project_dependencies brpc)
10 changes: 7 additions & 3 deletions cmake/external/gtest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

IF(WITH_TESTING)
ENABLE_TESTING()
#FIXME:(gongwb) Move brpc's gtest dependency.
IF(WITH_TESTING OR (WITH_DISTRIBUTE AND NOT WITH_GRPC))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems not safe. fix it now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gtest is needed by brpc now.

IF(WITH_TESTING)
ENABLE_TESTING()
ENDIF(WITH_TESTING)

INCLUDE(ExternalProject)

SET(GTEST_SOURCES_DIR ${THIRD_PARTY_PATH}/gtest)
Expand Down Expand Up @@ -76,4 +80,4 @@ IF(WITH_TESTING)
ADD_DEPENDENCIES(gtest_main extern_gtest)

LIST(APPEND external_project_dependencies gtest gtest_main)
ENDIF(WITH_TESTING)
ENDIF(WITH_TESTING OR (WITH_DISTRIBUTE AND NOT WITH_GRPC))
4 changes: 2 additions & 2 deletions cmake/external/leveldb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ExternalProject_Add(
extern_leveldb
${EXTERNAL_PROJECT_LOG_ARGS}
PREFIX ${LEVELDB_SOURCES_DIR}
URL "https://github.com/google/leveldb/archive/v1.18.tar.gz"
URL_MD5 "73770de34a2a5ab34498d2e05b2b7fa0"
GIT_REPOSITORY "https://github.com/google/leveldb"
GIT_TAG v1.18
CONFIGURE_COMMAND ""
BUILD_COMMAND CXXFLAGS=-fPIC make -j ${NUM_OF_PROCESSOR} libleveldb.a
INSTALL_COMMAND mkdir -p ${LEVELDB_INSTALL_DIR}/lib/
Expand Down
9 changes: 6 additions & 3 deletions paddle/fluid/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,12 @@ cc_library(variable_helper SRCS variable_helper.cc DEPS lod_tensor)
cc_library(naive_executor SRCS naive_executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method graph_to_program_pass variable_helper)

if(WITH_DISTRIBUTE)
cc_library(executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog lod_rank_table feed_fetch_method sendrecvop_grpc cares grpc++_unsecure grpc_unsecure gpr graph_to_program_pass variable_helper)
set(DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor")
set_source_files_properties(executor.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
cc_library(executor SRCS executor.cc DEPS op_registry device_context scope framework_proto glog
lod_rank_table feed_fetch_method sendrecvop_rpc ${GLOB_DISTRIBUTE_DEPS} graph_to_program_pass variable_helper)

set(DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor")
set_source_files_properties(executor.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})

else()
if(WITH_NGRAPH)
if(NOT WIN32)
Expand Down
11 changes: 9 additions & 2 deletions paddle/fluid/framework/details/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ cc_library(multi_devices_graph_check_pass SRCS multi_devices_graph_check_pass.cc

cc_library(variable_visitor SRCS variable_visitor.cc DEPS lod_tensor selected_rows)

if(WITH_DISTRIBUTE)
if(NOT WITH_GRPC)
set(DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor")
set_source_files_properties(reduce_op_handle.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
endif()
endif()

if(WITH_GPU)
nv_library(all_reduce_op_handle SRCS all_reduce_op_handle.cc DEPS op_handle_base scope lod_tensor ddim memory
dynload_cuda variable_visitor)
if(WITH_DISTRIBUTE)
nv_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope
ddim dynload_cuda selected_rows_functor sendrecvop_grpc)
ddim dynload_cuda selected_rows_functor sendrecvop_rpc)
else()
nv_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope
ddim dynload_cuda selected_rows_functor)
Expand All @@ -30,7 +37,7 @@ else()
variable_visitor)
if(WITH_DISTRIBUTE)
cc_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope
ddim selected_rows_functor sendrecvop_grpc)
ddim selected_rows_functor sendrecvop_rpc)
else()
cc_library(reduce_op_handle SRCS reduce_op_handle.cc DEPS op_handle_base variable_visitor scope
ddim selected_rows_functor)
Expand Down
6 changes: 3 additions & 3 deletions paddle/fluid/framework/executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ void Executor::Close() {
#ifdef PADDLE_WITH_DISTRIBUTE
// TODO(typhoonzero): complete message will need to use real trainer_id,
// except 0.
::paddle::operators::distributed::RPCClient::GetInstance<
::paddle::operators::distributed::GRPCClient>(0)
->SendComplete();
auto client =
paddle::operators::distributed::RPCClient::GetInstance<RPCCLIENT_T>(0);
client->SendComplete();
#endif
}

Expand Down
31 changes: 19 additions & 12 deletions paddle/fluid/operators/distributed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,51 @@ configure_file(send_recv.proto.in ${CMAKE_CURRENT_SOURCE_DIR}/send_recv.proto @O
set(DISTRIBUTE_COMPILE_FLAGS "-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor")

if(WITH_GRPC)
grpc_library(sendrecvop_grpc SRCS grpc_bytebuffer_stream.cc sendrecvop_utils.cc grpc_client.cc
grpc_library(sendrecvop_rpc SRCS grpc_bytebuffer_stream.cc sendrecvop_utils.cc grpc_client.cc
request_handler_impl.cc rpc_client.cc rpc_server.cc grpc_server.cc variable_response.cc grpc_variable_response.cc grpc_serde.cc collective_client.cc collective_server.cc
PROTO send_recv.proto
DEPS lod_tensor selected_rows_functor memory)

set_source_files_properties(grpc_serde_test.cc rpc_server_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})

cc_test(grpc_serde_test SRCS grpc_serde_test.cc
DEPS grpc++_unsecure grpc_unsecure gpr cares zlib protobuf sendrecvop_grpc scope profiler math_function SERIAL)
DEPS grpc++_unsecure grpc_unsecure gpr cares zlib protobuf sendrecvop_rpc scope profiler math_function SERIAL)

cc_test(rpc_server_test SRCS rpc_server_test.cc
DEPS sendrecvop_grpc grpc++_unsecure grpc_unsecure gpr cares zlib protobuf executor proto_desc lookup_sparse_table_op SERIAL)
DEPS sendrecvop_rpc grpc++_unsecure grpc_unsecure gpr cares zlib protobuf executor proto_desc lookup_sparse_table_op SERIAL)

cc_test(varhandle_test SRCS varhandle_test.cc DEPS profiler)

if(WITH_GPU)
cc_test(collective_server_test SRCS collective_server_test.cc
DEPS sendrecvop_grpc grpc++_unsecure grpc_unsecure gpr cares zlib protobuf executor
DEPS sendrecvop_rpc grpc++_unsecure grpc_unsecure gpr cares zlib protobuf executor
selected_rows_functor scope math_function SERIAL)
endif()

cc_library(parameter_prefetch SRCS parameter_prefetch.cc DEPS sendrecvop_grpc memory)
cc_library(parameter_prefetch SRCS parameter_prefetch.cc DEPS sendrecvop_rpc memory)
else()
set_source_files_properties(brpc_server.cc brpc_client.cc rpc_server_test.cc brpc_serde_test.cc
brpc_variable_response.cc brpc_sendrecvop_utils.cc brpc_rdma_pool.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
set_source_files_properties(brpc_server.cc parameter_prefetch.cc brpc_client.cc rpc_server_test.cc brpc_serde_test.cc
brpc_variable_response.cc brpc_sendrecvop_utils.cc brpc_rdma_pool.cc collective_server.cc collective_server_test.cc
collective_client.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})

brpc_library(sendrecvop_brpc SRCS brpc_client.cc brpc_server.cc rpc_server.cc rpc_client.cc request_handler_impl.cc brpc_sendrecvop_utils.cc
brpc_variable_response.cc variable_response.cc sendrecvop_utils.cc brpc_rdma_pool.cc
brpc_library(sendrecvop_rpc SRCS brpc_client.cc brpc_server.cc rpc_server.cc rpc_client.cc request_handler_impl.cc brpc_sendrecvop_utils.cc
brpc_variable_response.cc variable_response.cc sendrecvop_utils.cc brpc_rdma_pool.cc collective_client.cc collective_server.cc
PROTO send_recv.proto
DEPS lod_tensor selected_rows memory)

cc_library(parameter_prefetch SRCS parameter_prefetch.cc DEPS sendrecvop_brpc memory)
cc_library(parameter_prefetch SRCS parameter_prefetch.cc DEPS sendrecvop_rpc memory)

set(brpc_test_depends sendrecvop_brpc brpc ssl crypto protobuf leveldb gflags glog executor proto_desc lookup_table_op snappystream snappy)
set(brpc_test_depends sendrecvop_rpc brpc ssl crypto protobuf leveldb gflags glog executor
proto_desc lookup_sparse_table_op snappystream snappy zlib)

cc_test(brpc_server_test SRCS rpc_server_test.cc
cc_test(rpc_server_test SRCS rpc_server_test.cc
DEPS ${brpc_test_depends} SERIAL)

cc_test(brpc_serde_test SRCS brpc_serde_test.cc
DEPS ${brpc_test_depends} SERIAL)

if(WITH_GPU)
cc_test(collective_server_test SRCS collective_server_test.cc
DEPS ${brpc_test_depends} selected_rows_functor scope math_function SERIAL)
endif()
endif()
Loading