|
1 | | -set(DISTRIBUTE_COMPILE_FLAGS |
2 | | - "-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" |
3 | | -) |
4 | | - |
5 | | -if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) |
6 | | - set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new") |
7 | | -endif() |
8 | | - |
9 | | -get_property(RPC_DEPS GLOBAL PROPERTY RPC_DEPS) |
10 | | - |
11 | 1 | set_source_files_properties( |
12 | 2 | table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
13 | | -paddle_test(table_test SRCS table_test.cc DEPS ${RPC_DEPS}) |
| 3 | +cc_test( |
| 4 | + table_test |
| 5 | + SRCS table_test.cc |
| 6 | + DEPS common_table table ps_framework_proto ${COMMON_DEPS} ${RPC_DEPS}) |
14 | 7 |
|
15 | 8 | set_source_files_properties( |
16 | 9 | dense_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
17 | | -paddle_test(dense_table_test SRCS dense_table_test.cc DEPS ${RPC_DEPS}) |
| 10 | +cc_test( |
| 11 | + dense_table_test |
| 12 | + SRCS dense_table_test.cc |
| 13 | + DEPS common_table table ps_framework_proto ${COMMON_DEPS} ${RPC_DEPS}) |
18 | 14 |
|
19 | 15 | set_source_files_properties( |
20 | 16 | barrier_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
21 | | -paddle_test(barrier_table_test SRCS barrier_table_test.cc) |
| 17 | +cc_test( |
| 18 | + barrier_table_test |
| 19 | + SRCS barrier_table_test.cc |
| 20 | + DEPS common_table table ps_framework_proto ${COMMON_DEPS}) |
22 | 21 |
|
23 | 22 | set_source_files_properties( |
24 | 23 | brpc_service_dense_sgd_test.cc PROPERTIES COMPILE_FLAGS |
25 | 24 | ${DISTRIBUTE_COMPILE_FLAGS}) |
26 | | -paddle_test(brpc_service_dense_sgd_test SRCS brpc_service_dense_sgd_test.cc |
27 | | - DEPS scope) |
| 25 | +cc_test( |
| 26 | + brpc_service_dense_sgd_test |
| 27 | + SRCS brpc_service_dense_sgd_test.cc |
| 28 | + DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) |
28 | 29 |
|
29 | 30 | set_source_files_properties( |
30 | 31 | brpc_service_sparse_sgd_test.cc PROPERTIES COMPILE_FLAGS |
31 | 32 | ${DISTRIBUTE_COMPILE_FLAGS}) |
32 | | -paddle_test(brpc_service_sparse_sgd_test SRCS brpc_service_sparse_sgd_test.cc |
33 | | - DEPS scope) |
| 33 | +cc_test( |
| 34 | + brpc_service_sparse_sgd_test |
| 35 | + SRCS brpc_service_sparse_sgd_test.cc |
| 36 | + DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) |
34 | 37 |
|
35 | 38 | set_source_files_properties( |
36 | 39 | brpc_utils_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
37 | | -paddle_test( |
| 40 | +cc_test( |
38 | 41 | brpc_utils_test |
39 | | - SRCS |
40 | | - brpc_utils_test.cc |
41 | | - DEPS |
42 | | - scope |
43 | | - phi |
44 | | - common |
45 | | - ${RPC_DEPS}) |
| 42 | + SRCS brpc_utils_test.cc |
| 43 | + DEPS brpc_utils |
| 44 | + scope |
| 45 | + phi |
| 46 | + common |
| 47 | + sendrecv_rpc |
| 48 | + ps_service |
| 49 | + ${COMMON_DEPS} |
| 50 | + ${RPC_DEPS}) |
46 | 51 |
|
47 | 52 | set_source_files_properties( |
48 | 53 | graph_node_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
49 | | -paddle_test(graph_node_test SRCS graph_node_test.cc DEPS scope) |
| 54 | +cc_test( |
| 55 | + graph_node_test |
| 56 | + SRCS graph_node_test.cc |
| 57 | + DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) |
50 | 58 |
|
51 | 59 | set_source_files_properties( |
52 | 60 | graph_node_split_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
53 | | -paddle_test(graph_node_split_test SRCS graph_node_split_test.cc DEPS scope) |
| 61 | +cc_test( |
| 62 | + graph_node_split_test |
| 63 | + SRCS graph_node_split_test.cc |
| 64 | + DEPS scope ps_service table ps_framework_proto ${COMMON_DEPS}) |
54 | 65 |
|
55 | 66 | set_source_files_properties( |
56 | 67 | graph_table_sample_test.cc PROPERTIES COMPILE_FLAGS |
57 | 68 | ${DISTRIBUTE_COMPILE_FLAGS}) |
58 | | -paddle_test(graph_table_sample_test SRCS graph_table_sample_test.cc) |
| 69 | +cc_test( |
| 70 | + graph_table_sample_test |
| 71 | + SRCS graph_table_sample_test.cc |
| 72 | + DEPS table ps_framework_proto ${COMMON_DEPS}) |
59 | 73 |
|
60 | 74 | set_source_files_properties( |
61 | 75 | feature_value_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
62 | 76 |
|
63 | | -paddle_test(feature_value_test SRCS feature_value_test.cc) |
| 77 | +cc_test( |
| 78 | + feature_value_test |
| 79 | + SRCS feature_value_test.cc |
| 80 | + DEPS table common_table sendrecv_rpc ${COMMON_DEPS}) |
64 | 81 |
|
65 | 82 | set_source_files_properties( |
66 | 83 | sparse_sgd_rule_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
67 | | -paddle_test(sparse_sgd_rule_test SRCS sparse_sgd_rule_test.cc) |
| 84 | +cc_test( |
| 85 | + sparse_sgd_rule_test |
| 86 | + SRCS sparse_sgd_rule_test.cc |
| 87 | + DEPS ${COMMON_DEPS} table) |
68 | 88 |
|
69 | 89 | set_source_files_properties( |
70 | 90 | ctr_accessor_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
71 | | -paddle_test(ctr_accessor_test SRCS ctr_accessor_test.cc) |
| 91 | +cc_test( |
| 92 | + ctr_accessor_test |
| 93 | + SRCS ctr_accessor_test.cc |
| 94 | + DEPS ${COMMON_DEPS} table) |
72 | 95 | set_source_files_properties( |
73 | 96 | ctr_dymf_accessor_test.cc PROPERTIES COMPILE_FLAGS |
74 | 97 | ${DISTRIBUTE_COMPILE_FLAGS}) |
75 | | -paddle_test(ctr_dymf_accessor_test SRCS ctr_dymf_accessor_test.cc) |
| 98 | +cc_test( |
| 99 | + ctr_dymf_accessor_test |
| 100 | + SRCS ctr_dymf_accessor_test.cc |
| 101 | + DEPS ${COMMON_DEPS} table) |
76 | 102 |
|
77 | 103 | set_source_files_properties( |
78 | 104 | memory_sparse_table_test.cc PROPERTIES COMPILE_FLAGS |
79 | 105 | ${DISTRIBUTE_COMPILE_FLAGS}) |
80 | | -paddle_test(memory_sparse_table_test SRCS memory_sparse_table_test.cc DEPS) |
| 106 | +cc_test( |
| 107 | + memory_sparse_table_test |
| 108 | + SRCS memory_sparse_table_test.cc |
| 109 | + DEPS ${COMMON_DEPS} table) |
81 | 110 |
|
82 | 111 | set_source_files_properties( |
83 | 112 | memory_geo_table_test.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS}) |
84 | | -paddle_test(memory_sparse_geo_table_test SRCS memory_geo_table_test.cc) |
| 113 | +cc_test( |
| 114 | + memory_sparse_geo_table_test |
| 115 | + SRCS memory_geo_table_test.cc |
| 116 | + DEPS ${COMMON_DEPS} table) |
0 commit comments