Skip to content

Commit

Permalink
【paddle.fleet】fleet_util move to paddle.fleet (PaddlePaddle#25805)
Browse files Browse the repository at this point in the history
* test=develop,test=document_fix, remove the out args

* fleet_util move to paddle.fleet

Co-authored-by: WuHaobo <wuhaobo1994@gmail.com>
Co-authored-by: tangwei12 <tangwei12@baidu.com>
  • Loading branch information
3 people authored Aug 7, 2020
1 parent 0d4ce6a commit 2191a08
Show file tree
Hide file tree
Showing 18 changed files with 2,014 additions and 74 deletions.
13 changes: 6 additions & 7 deletions paddle/fluid/framework/fleet/gloo_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ void HdfsStore::set(const std::string& key, const std::vector<char>& data) {
paddle::framework::fs_remove(tmp);
if (i == retry_times_) {
VLOG(0) << "fs_open_write failed, retry times reaches limit";
// PADDLE_THROW(platform::errors::PreconditionNotMet(
// "fs_open_write failed, retry times reaches"
// " limit ",
// retry_times_));
PADDLE_THROW(paddle::platform::errors::PreconditionNotMet(
"fs_open_write failed, retry times reaches %d limit.",
retry_times_));
}
} else {
break;
Expand Down Expand Up @@ -143,9 +142,9 @@ void HdfsStore::wait(const std::vector<std::string>& keys,
break;
}
}
// PADDLE_THROW(platform::errors::ExecutionTimeout(
VLOG(0) << "TIMEOUT self_rank = " << self_rank_
<< " pair_rank = " << last_check_rank;
PADDLE_THROW(paddle::platform::errors::ExecutionTimeout(
"TIMEOUT self_rank = %d pair_rank = %d", self_rank_,
last_check_rank));
}
std::this_thread::sleep_for(std::chrono::milliseconds(wait_sleep_ms_));
}
Expand Down
Loading

0 comments on commit 2191a08

Please sign in to comment.