Skip to content

Commit

Permalink
fix heter unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoujiyi committed Apr 27, 2022
1 parent 67102d8 commit 07f6c87
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions paddle/fluid/operators/pscore/heter_cloud_comm_cpu_test.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ void TestShardSendRecv(
void PressTestSendRecv(
std::shared_ptr<distributed::HeterClient> heter_client_ptr_) {
// long l = 0, m = 0;
// https://paddlerec.bj.bcebos.com/online_infer/arm_brpc_ubuntu18/send_20_34
std::ifstream file("/send_20_34", std::ios::in | std::ios::binary);
// l = file.tellg();
// file.seekg(0, std::ios::end);
// m = file.tellg();
// file.close();
// VLOG(0) << "size of file " << "20_34" << " is " << (m - l) << " bytes.\n";
int64_t vars_len = 2359296 * sizeof(float);
int64_t data_size = vars_len * sizeof(float);
int64_t data_size = vars_len;
VLOG(0) << "float num: " << data_size;
float* data_ptr = new float[data_size];
file.read((char*)data_ptr, 9437184);
Expand Down Expand Up @@ -254,8 +255,8 @@ TEST(HETERSENDANDRECV, CPU) {
exe.Prepare(program, 0); // solve undefined symbol: tensor_table.cc

// TestScopeSendRecv(heter_client_ptr_);
TestShardSendRecv(heter_client_ptr_);
// PressTestSendRecv(heter_client_ptr_);
//TestShardSendRecv(heter_client_ptr_);
PressTestSendRecv(heter_client_ptr_);

switch_server_ptr_a->Stop();
LOG(INFO) << "switch server A stopped";
Expand Down

1 comment on commit 07f6c87

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 07f6c87 Apr 27, 2022

Choose a reason for hiding this comment

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

🕵️ CI failures summary

🔍 PR: #42276 Commit ID: 07f6c87 contains failed CI.

🔹 Failed: PR-CI-Static-Check

Unknown Failed
Unknown Failed

Please sign in to comment.