Skip to content

Commit

Permalink
remove test function
Browse files Browse the repository at this point in the history
  • Loading branch information
seemingwang committed Nov 13, 2021
1 parent 3a31f38 commit 4fb7b3b
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions paddle/fluid/distributed/table/common_graph_table.h
Expand Up @@ -442,39 +442,6 @@ class GraphTable : public SparseTable {
return 0;
}

virtual int32_t test_sample_with_cache(int size, int batch_size,
int sample_size) {
std::vector<int> actual_sizes1, actual_sizes2;
std::vector<std::shared_ptr<char>> buffers1, buffers2;
std::vector<uint64_t> node_ids1(batch_size), node_ids2;
for (int i = 0; i <= size - batch_size; i += batch_size) {
for (int j = 0; j < batch_size; j++) {
node_ids1[j] = i + j;
}
actual_sizes1.resize(batch_size);
buffers1.resize(batch_size);
random_sample_neighbors(node_ids1.data(), sample_size, buffers1,
actual_sizes1);
node_ids2.clear();
for (int j = 0; j < batch_size; j++) {
if (actual_sizes1[j] != 0) {
int offset = 0;
char *p = buffers1[j].get();
while (offset < actual_sizes1[j]) {
node_ids2.push_back(*(uint64_t *)(p + offset));
offset += Node::id_size + Node::weight_size;
}
}
}
buffers2.resize(node_ids2.size());
actual_sizes2.resize(node_ids2.size());
random_sample_neighbors(node_ids2.data(), sample_size, buffers2,
actual_sizes2);
}

return 0;
}

protected:
std::vector<GraphShard> shards;
size_t shard_start, shard_end, server_num, shard_num_per_server, shard_num;
Expand Down

1 comment on commit 4fb7b3b

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 4fb7b3b Nov 13, 2021

Choose a reason for hiding this comment

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

🕵️ CI failures summary

🔍 PR: #37168 Commit ID: 4fb7b3b contains failed CI.

🔹 Failed: PR-CI-ROCM-Compile

Unknown Failed
2021-11-13 17:21:10 ccache hit rate: 100.00%
2021-11-13 17:21:10 + '[' 2 '!=' 0 ']'
2021-11-13 17:21:10 + exit 7
2021-11-13 17:21:10 + EXCODE=7
2021-11-13 17:21:10 + export current_dir=/paddle
2021-11-13 17:21:10 + current_dir=/paddle
2021-11-13 17:21:10 + set +x
2021-11-13 17:21:10 + SOURCE=/paddle/build/coverage-diff
2021-11-13 17:21:10 + [[ -d /paddle/build/coverage-diff ]]
2021-11-13 17:21:10 + [[ -f /paddle/build/coverage-diff ]]
2021-11-13 17:21:10 + echo 'No such file or directory: /paddle/build/coverage-diff'
2021-11-13 17:21:10 + exit 0
2021-11-13 17:21:10 No such file or directory: /paddle/build/coverage-diff
2021-11-13 17:21:10 report uploaded
2021-11-13 17:21:10 ===================================================================
2021-11-13 17:21:10 c++-coverage
2021-11-13 17:21:10 https://xly.bce.baidu.com/ipipe/ipipe-report/report/9176096/c++-coverage/
2021-11-13 17:21:10 ===================================================================
2021-11-13 17:21:10 Sorry, build failed.

🔹 Failed: PR-CI-Coverage

Unknown Failed
2021-11-13 17:20:13 make: *** [all] Error 2
2021-11-13 17:20:13 + build_error=2
2021-11-13 17:20:13 + collect_ccache_hits
2021-11-13 17:20:13 ++ ccache -s
2021-11-13 17:20:13 ++ grep 'cache hit rate'
2021-11-13 17:20:13 ++ awk '{print $4}'
2021-11-13 17:20:13 + rate=100.00
2021-11-13 17:20:13 + echo 'ccache hit rate: 100.00%'
2021-11-13 17:20:13 ccache hit rate: 100.00%
2021-11-13 17:20:13 + echo 'ipipe_log_param_Ccache_Hit_Rate: 100.00%'
2021-11-13 17:20:13 + '[' 2 '!=' 0 ']'
2021-11-13 17:20:13 + exit 7
2021-11-13 17:20:13 + EXCODE=7
2021-11-13 17:20:13 + '[' 7 -eq 0 ']'
2021-11-13 17:20:13 + set +x
2021-11-13 17:20:13 Sorry, build failed.
2021-11-13 17:20:13 + exit 7
2021-11-13 17:20:13 {build code state=7}
2021-11-13 17:20:23 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-Static-Check

build_failed
2021-11-13 17:25:53 make[2]: *** [paddle/fluid/distributed/service/CMakeFiles/sendrecv_rpc.dir/ps_client.cc.o] Error 1
2021-11-13 17:25:53 CMakeFiles/Makefile2:10145: recipe for target 'paddle/fluid/distributed/service/CMakeFiles/sendrecv_rpc.dir/all' failed
2021-11-13 17:25:53 make[1]: *** [paddle/fluid/distributed/service/CMakeFiles/sendrecv_rpc.dir/all] Error 2
2021-11-13 17:25:53 make[1]: *** Waiting for unfinished jobs....
2021-11-13 17:25:53 [ 30%] Linking CXX static library libinfer_io_utils.a
2021-11-13 17:25:53 [ 30%] Built target infer_io_utils
2021-11-13 17:25:53 Makefile:129: recipe for target 'all' failed
2021-11-13 17:25:53 make: *** [all] Error 2
2021-11-13 17:25:53 ccache hit rate: 99.87%
2021-11-13 17:25:53 + EXCODE=7
2021-11-13 17:25:53 + echo 'EXCODE: 7'
2021-11-13 17:25:53 EXCODE: 7
2021-11-13 17:25:53 + echo 'ipipe_log_param_EXCODE: 7'
2021-11-13 17:25:53 ipipe_log_param_EXCODE: 7
2021-11-13 17:25:53 + '[' 7 -eq 0 ']'
2021-11-13 17:25:53 + set +x
2021-11-13 17:25:53 Sorry, build failed.
2021-11-13 17:25:53 + exit 7
2021-11-13 17:25:53 {build code state=7}

🔹 Failed: PR-CI-GpuPS

Unknown Failed
2021-11-13 17:27:15 ++ awk '{print $4}'
2021-11-13 17:27:15 + rate=100.00
2021-11-13 17:27:15 + echo 'ccache hit rate: 100.00%'
2021-11-13 17:27:15 ccache hit rate: 100.00%
2021-11-13 17:27:15 + echo 'ipipe_log_param_Ccache_Hit_Rate: 100.00%'
2021-11-13 17:27:15 + '[' 2 '!=' 0 ']'
2021-11-13 17:27:15 + exit 7
2021-11-13 17:27:15 + EXCODE=7
2021-11-13 17:27:15 + '[' 7 -eq 0 ']'
2021-11-13 17:27:15 + [[ 7 -eq 0 ]]
2021-11-13 17:27:15 + [[ 7 -eq 4 ]]
2021-11-13 17:27:15 + [[ 7 -eq 5 ]]
2021-11-13 17:27:15 + [[ 7 -eq 6 ]]
2021-11-13 17:27:15 + [[ 7 -eq 7 ]]
2021-11-13 17:27:15 + echo 'Sorry, build failed.'
2021-11-13 17:27:15 Sorry, build failed.
2021-11-13 17:27:15 + set -x
2021-11-13 17:27:15 + exit 7
2021-11-13 17:27:15 {build code state=7}

🔹 Failed: PR-CI-Build

Unknown Failed
2021-11-13 17:28:03 make: *** [all] Error 2
2021-11-13 17:28:03 + build_error=2
2021-11-13 17:28:03 + collect_ccache_hits
2021-11-13 17:28:03 ++ ccache -s
2021-11-13 17:28:03 ++ grep 'cache hit rate'
2021-11-13 17:28:03 ++ awk '{print $4}'
2021-11-13 17:28:03 + rate=100.00
2021-11-13 17:28:03 + echo 'ccache hit rate: 100.00%'
2021-11-13 17:28:03 ccache hit rate: 100.00%
2021-11-13 17:28:03 + echo 'ipipe_log_param_Ccache_Hit_Rate: 100.00%'
2021-11-13 17:28:03 + '[' 2 '!=' 0 ']'
2021-11-13 17:28:03 + exit 7
2021-11-13 17:28:03 + EXCODE=7
2021-11-13 17:28:03 + '[' 7 -eq 0 ']'
2021-11-13 17:28:03 + set +x
2021-11-13 17:28:03 Sorry, build failed.
2021-11-13 17:28:03 + exit 7
2021-11-13 17:28:03 {build code state=7}
2021-11-13 17:28:13 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-Kunlun

Unknown Failed
2021-11-13 17:29:29 [ 15%] Linking CXX static library libtensor.a
2021-11-13 17:29:29 [ 15%] Built target tensor
2021-11-13 17:29:30 [ 15%] Linking CXX static library libxpu_op_list.a
2021-11-13 17:29:30 [ 15%] Built target xpu_op_list
2021-11-13 17:30:24 [ 15%] Linking CXX static library libeigen_function.a
2021-11-13 17:30:25 [ 15%] Built target eigen_function
2021-11-13 17:30:25 Makefile:140: recipe for target 'all' failed
2021-11-13 17:30:25 make: *** [all] Error 2
2021-11-13 17:30:25 + build_error=2
2021-11-13 17:30:25 + collect_ccache_hits
2021-11-13 17:30:25 ++ ccache -s
2021-11-13 17:30:25 ++ grep 'cache hit rate'
2021-11-13 17:30:25 ++ awk '{print $4}'
2021-11-13 17:30:25 + rate=0.00
2021-11-13 17:30:25 + echo 'ccache hit rate: 0.00%'
2021-11-13 17:30:25 + echo 'ipipe_log_param_Ccache_Hit_Rate: 0.00%'
2021-11-13 17:30:25 ccache hit rate: 0.00%
2021-11-13 17:30:25 + '[' 2 '!=' 0 ']'
2021-11-13 17:30:25 + exit 7

🔹 Failed: PR-CI-Model-benchmark

Unknown Failed
2021-11-13 17:30:29 + exit 7
2021-11-13 17:30:29 + '[' 7 -ne 0 ']'
2021-11-13 17:30:29 + echo 'build paddle failed.'
2021-11-13 17:30:29 build paddle failed.
2021-11-13 17:30:29 + exit 1
2021-11-13 17:30:29 + EXCODE=1
2021-11-13 17:30:29 + '[' OFF == ON ']'
2021-11-13 17:30:29 + '[' 1 -eq 0 ']'
2021-11-13 17:30:29 + [[ 1 -eq 0 ]]
2021-11-13 17:30:29 + [[ 1 -eq 4 ]]
2021-11-13 17:30:29 + [[ 1 -eq 5 ]]
2021-11-13 17:30:29 + [[ 1 -eq 6 ]]
2021-11-13 17:30:29 + [[ 1 -eq 7 ]]
2021-11-13 17:30:29 + [[ 1 -eq 8 ]]
2021-11-13 17:30:29 + [[ 1 -eq 9 ]]
2021-11-13 17:30:29 + set -x
2021-11-13 17:30:29 + exit 1
2021-11-13 17:30:29 {build code state=1}
2021-11-13 17:30:39 kill agent BUILD_CODE_FAIL

Please sign in to comment.