Skip to content

Commit

Permalink
Revert "Fix."
Browse files Browse the repository at this point in the history
This reverts commit 46793a2.
  • Loading branch information
trivialfis committed Jul 9, 2024
1 parent 46793a2 commit f21ab04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/common/hist_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,8 @@ void BuildHistDispatch(Span<GradientPair const> gpair, const RowSetCollection::E
RowsWiseBuildHistKernel<false, BuildingManager>(
gpair, Span{row_indices.begin(), row_indices.Size()}, gmat, hist);
} else {
auto n = static_cast<std::size_t>(
std::distance(row_indices.begin(), row_indices.end() - no_prefetch_size));
auto span1 = Span{row_indices.begin(), n};
auto span2 = Span{row_indices.end() - no_prefetch_size, no_prefetch_size};
auto span1 = Span{row_indices.begin(), row_indices.end() - no_prefetch_size};
auto span2 = Span{row_indices.end() - no_prefetch_size, row_indices.end()};

RowsWiseBuildHistKernel<true, BuildingManager>(gpair, span1, gmat, hist);
// no prefetching to avoid loading extra memory
Expand Down

0 comments on commit f21ab04

Please sign in to comment.