-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 67e02b0.
- Loading branch information
Showing
21 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 66 additions & 34 deletions
100
test/cpp/fluid/distributed/CMakeLists.txt → paddle/fluid/distributed/test/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,116 @@ | ||
set(DISTRIBUTE_COMPILE_FLAGS | ||
"-Wno-error=unused-value -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor -Wno-error=return-type -Wno-error=unused-but-set-variable -Wno-error=parentheses -Wno-error=unused-result" | ||
) | ||
|
||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) | ||
set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new") | ||
endif() | ||
|
||
get_property(RPC_DEPS GLOBAL PROPERTY RPC_DEPS) | ||
|
||
set_source_files_properties( | ||
table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(table_test SRCS table_test.cc DEPS ${RPC_DEPS}) | ||
cc_test( | ||
table_test | ||
SRCS table_test.cc | ||
DEPS common_table table ps_framework_proto ${COMMON_DEPS} ${RPC_DEPS}) | ||
|
||
set_source_files_properties( | ||
dense_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(dense_table_test SRCS dense_table_test.cc DEPS ${RPC_DEPS}) | ||
cc_test( | ||
dense_table_test | ||
SRCS dense_table_test.cc | ||
DEPS common_table table ps_framework_proto ${COMMON_DEPS} ${RPC_DEPS}) | ||
|
||
set_source_files_properties( | ||
barrier_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(barrier_table_test SRCS barrier_table_test.cc) | ||
cc_test( | ||
barrier_table_test | ||
SRCS barrier_table_test.cc | ||
DEPS common_table table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
brpc_service_dense_sgd_test.cc PROPERTIES COMPILE_FLAGS | ||
${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(brpc_service_dense_sgd_test SRCS brpc_service_dense_sgd_test.cc | ||
DEPS scope) | ||
cc_test( | ||
brpc_service_dense_sgd_test | ||
SRCS brpc_service_dense_sgd_test.cc | ||
DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
brpc_service_sparse_sgd_test.cc PROPERTIES COMPILE_FLAGS | ||
${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(brpc_service_sparse_sgd_test SRCS brpc_service_sparse_sgd_test.cc | ||
DEPS scope) | ||
cc_test( | ||
brpc_service_sparse_sgd_test | ||
SRCS brpc_service_sparse_sgd_test.cc | ||
DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
brpc_utils_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test( | ||
cc_test( | ||
brpc_utils_test | ||
SRCS | ||
brpc_utils_test.cc | ||
DEPS | ||
scope | ||
phi | ||
common | ||
${RPC_DEPS}) | ||
SRCS brpc_utils_test.cc | ||
DEPS brpc_utils | ||
scope | ||
phi | ||
common | ||
sendrecv_rpc | ||
ps_service | ||
${COMMON_DEPS} | ||
${RPC_DEPS}) | ||
|
||
set_source_files_properties( | ||
graph_node_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(graph_node_test SRCS graph_node_test.cc DEPS scope) | ||
cc_test( | ||
graph_node_test | ||
SRCS graph_node_test.cc | ||
DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
graph_node_split_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(graph_node_split_test SRCS graph_node_split_test.cc DEPS scope) | ||
cc_test( | ||
graph_node_split_test | ||
SRCS graph_node_split_test.cc | ||
DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
graph_table_sample_test.cc PROPERTIES COMPILE_FLAGS | ||
${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(graph_table_sample_test SRCS graph_table_sample_test.cc) | ||
cc_test( | ||
graph_table_sample_test | ||
SRCS graph_table_sample_test.cc | ||
DEPS table ps_framework_proto ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
feature_value_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
|
||
paddle_test(feature_value_test SRCS feature_value_test.cc) | ||
cc_test( | ||
feature_value_test | ||
SRCS feature_value_test.cc | ||
DEPS table common_table sendrecv_rpc ${COMMON_DEPS}) | ||
|
||
set_source_files_properties( | ||
sparse_sgd_rule_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(sparse_sgd_rule_test SRCS sparse_sgd_rule_test.cc) | ||
cc_test( | ||
sparse_sgd_rule_test | ||
SRCS sparse_sgd_rule_test.cc | ||
DEPS ${COMMON_DEPS} table) | ||
|
||
set_source_files_properties( | ||
ctr_accessor_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(ctr_accessor_test SRCS ctr_accessor_test.cc) | ||
cc_test( | ||
ctr_accessor_test | ||
SRCS ctr_accessor_test.cc | ||
DEPS ${COMMON_DEPS} table) | ||
set_source_files_properties( | ||
ctr_dymf_accessor_test.cc PROPERTIES COMPILE_FLAGS | ||
${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(ctr_dymf_accessor_test SRCS ctr_dymf_accessor_test.cc) | ||
cc_test( | ||
ctr_dymf_accessor_test | ||
SRCS ctr_dymf_accessor_test.cc | ||
DEPS ${COMMON_DEPS} table) | ||
|
||
set_source_files_properties( | ||
memory_sparse_table_test.cc PROPERTIES COMPILE_FLAGS | ||
${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(memory_sparse_table_test SRCS memory_sparse_table_test.cc DEPS) | ||
cc_test( | ||
memory_sparse_table_test | ||
SRCS memory_sparse_table_test.cc | ||
DEPS ${COMMON_DEPS} table) | ||
|
||
set_source_files_properties( | ||
memory_geo_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) | ||
paddle_test(memory_sparse_geo_table_test SRCS memory_geo_table_test.cc) | ||
cc_test( | ||
memory_sparse_geo_table_test | ||
SRCS memory_geo_table_test.cc | ||
DEPS ${COMMON_DEPS} table) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters