Skip to content

Commit

Permalink
CPU compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 14, 2021
1 parent d52a2b0 commit 4aa7d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/iterative_device_dmatrix.h
Expand Up @@ -83,8 +83,8 @@ inline void IterativeDeviceDMatrix::Initialize(DataIterHandle iter, float missin
}
inline BatchSet<EllpackPage> IterativeDeviceDMatrix::GetEllpackBatches(const BatchParam& param) {
common::AssertGPUSupport();
auto begin_iter =
BatchIterator<EllpackPage>(new SimpleBatchIteratorImpl<EllpackPage>(page_));
auto begin_iter = BatchIterator<EllpackPage>(
std::make_shared<SimpleBatchIteratorImpl<EllpackPage>>(page_));
return BatchSet<EllpackPage>(BatchIterator<EllpackPage>(begin_iter));
}
#endif // !defined(XGBOOST_USE_CUDA)
Expand Down

0 comments on commit 4aa7d48

Please sign in to comment.