[coll] Increase timeout for allgather test. (#9777)
This commit is contained in:
parent
44099f585d
commit
6fd4a30667
@ -47,7 +47,7 @@ class Worker : public WorkerForTest {
|
|||||||
|
|
||||||
std::size_t n = 8192; // n_bytes = 8192 * sizeof(int)
|
std::size_t n = 8192; // n_bytes = 8192 * sizeof(int)
|
||||||
std::vector<std::int32_t> data(comm_.World() * n, 0);
|
std::vector<std::int32_t> data(comm_.World() * n, 0);
|
||||||
auto s_data = common::Span{data.data(), data.size()};
|
auto s_data = common::Span<std::int32_t>{data};
|
||||||
auto seg = s_data.subspan(comm_.Rank() * n, n);
|
auto seg = s_data.subspan(comm_.Rank() * n, n);
|
||||||
std::iota(seg.begin(), seg.end(), comm_.Rank());
|
std::iota(seg.begin(), seg.end(), comm_.Rank());
|
||||||
|
|
||||||
|
|||||||
@ -92,11 +92,12 @@ class TrackerTest : public SocketTest {
|
|||||||
|
|
||||||
template <typename WorkerFn>
|
template <typename WorkerFn>
|
||||||
void TestDistributed(std::int32_t n_workers, WorkerFn worker_fn) {
|
void TestDistributed(std::int32_t n_workers, WorkerFn worker_fn) {
|
||||||
std::chrono::seconds timeout{1};
|
std::chrono::seconds timeout{2};
|
||||||
|
|
||||||
std::string host;
|
std::string host;
|
||||||
auto rc = GetHostAddress(&host);
|
auto rc = GetHostAddress(&host);
|
||||||
ASSERT_TRUE(rc.OK()) << rc.Report();
|
ASSERT_TRUE(rc.OK()) << rc.Report();
|
||||||
|
LOG(INFO) << "Using " << n_workers << " workers for test.";
|
||||||
RabitTracker tracker{StringView{host}, n_workers, 0, timeout};
|
RabitTracker tracker{StringView{host}, n_workers, 0, timeout};
|
||||||
auto fut = tracker.Run();
|
auto fut = tracker.Run();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user