Skip to content

Commit a6202d0

Browse files
committed
cleanup.
1 parent ba358af commit a6202d0

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/data/ellpack_page_raw_format.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class EllpackPageRawFormat : public SparsePageFormat<EllpackPage> {
2828
if (!fi->Read(&impl->base_rowid)) {
2929
return false;
3030
}
31-
std::cout << "impl brd:" << impl->base_rowid << std::endl;
3231
return true;
3332
}
3433

@@ -42,7 +41,6 @@ class EllpackPageRawFormat : public SparsePageFormat<EllpackPage> {
4241
bytes += sizeof(impl->is_dense);
4342
fo->Write(impl->row_stride);
4443
bytes += sizeof(impl->row_stride);
45-
std::cout << "write brd:" << impl->base_rowid << std::endl;
4644
CHECK(!impl->gidx_buffer.ConstHostVector().empty());
4745
fo->Write(impl->gidx_buffer.HostVector());
4846
bytes += impl->gidx_buffer.ConstHostSpan().size_bytes() + sizeof(uint64_t);

src/data/ellpack_page_source.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ void EllpackPageSource::Fetch() {
2424
auto *impl = this->page_->Impl();
2525
*impl = EllpackPageImpl(device_, *cuts_, *csr, is_dense_, row_stride_, feature_types_);
2626
page_->SetBaseRowId(csr->base_rowid);
27-
std::cout << "csr br:" << csr->base_rowid << std::endl;
2827
this->WriteCache();
2928
}
3029
}

src/data/sparse_page_source.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class SparsePageSourceImpl : public BatchIteratorImpl<S> {
117117
}
118118
// An heuristic for number of pre-fetched batches. We can make it part of BatchParam
119119
// to let user adjust number of pre-fetched batches when needed.
120-
uint32_t constexpr kPreFetch = 1;
120+
uint32_t constexpr kPreFetch = 4;
121121

122122
size_t n_prefetch_batches = std::min(kPreFetch, n_batches_);
123123
CHECK_GT(n_prefetch_batches, 0) << "total batches:" << n_batches_;
@@ -140,7 +140,6 @@ class SparsePageSourceImpl : public BatchIteratorImpl<S> {
140140

141141
std::uint64_t offset = self->cache_info_->offset.at(fetch_it);
142142
std::uint64_t length = self->cache_info_->bytes.at(fetch_it);
143-
// std::cout << typeid(S).name() << " offset:" << offset << " length:" << length << std::endl;
144143

145144
auto fi = std::make_unique<common::PrivateMmapStream>(n, true, offset, length);
146145
CHECK(fmt->Read(page.get(), fi.get()));

0 commit comments

Comments
 (0)