[sycl] optimise hist building (#10311)
Co-authored-by: Dmitry Razdoburdin <>
This commit is contained in:
committed by
GitHub
parent
9def441e9a
commit
0058301e6f
@@ -136,10 +136,7 @@ void HistUpdater<GradientSumT>::InitData(
|
||||
|
||||
hist_buffer_.Init(qu_, nbins);
|
||||
size_t buffer_size = kBufferSize;
|
||||
if (buffer_size > info.num_row_ / kMinBlockSize + 1) {
|
||||
buffer_size = info.num_row_ / kMinBlockSize + 1;
|
||||
}
|
||||
hist_buffer_.Reset(buffer_size);
|
||||
hist_buffer_.Reset(kBufferSize);
|
||||
|
||||
// initialize histogram builder
|
||||
hist_builder_ = common::GHistBuilder<GradientSumT>(qu_, nbins);
|
||||
|
||||
@@ -130,7 +130,6 @@ class HistUpdater {
|
||||
DataLayout data_layout_;
|
||||
|
||||
constexpr static size_t kBufferSize = 2048;
|
||||
constexpr static size_t kMinBlockSize = 128;
|
||||
common::GHistBuilder<GradientSumT> hist_builder_;
|
||||
common::ParallelGHistBuilder<GradientSumT> hist_buffer_;
|
||||
/*! \brief culmulative histogram of gradients. */
|
||||
|
||||
Reference in New Issue
Block a user