Skip to content

Commit

Permalink
log.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 8, 2022
1 parent d6781b3 commit 7654b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/iterative_dmatrix.cc
Expand Up @@ -36,7 +36,8 @@ IterativeDMatrix::IterativeDMatrix(DataIterHandle iter_handle, DMatrixHandle pro
int32_t max_device{d};
rabit::Allreduce<rabit::op::Max>(&max_device, 1);
if (max_device != d) {
CHECK_EQ(MakeProxy(proxy_)->Info().num_row_, 0);
CHECK_EQ(MakeProxy(proxy_)->Info().num_row_, 0)
<< "max device:" << max_device << " device:" << d;
CHECK_NE(d, Context::kCpuId) << msg;
d = max_device;
}
Expand Down

0 comments on commit 7654b88

Please sign in to comment.