Remove unused code. (#7293)
This commit is contained in:
parent
130df8cdda
commit
a7d0c66457
@ -19,9 +19,6 @@
|
|||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace metric {
|
namespace metric {
|
||||||
namespace {
|
namespace {
|
||||||
template <typename T>
|
|
||||||
using Discard = thrust::discard_iterator<T>;
|
|
||||||
|
|
||||||
struct GetWeightOp {
|
struct GetWeightOp {
|
||||||
common::Span<float const> weights;
|
common::Span<float const> weights;
|
||||||
common::Span<size_t const> sorted_idx;
|
common::Span<size_t const> sorted_idx;
|
||||||
|
|||||||
@ -181,8 +181,6 @@ struct GPUHistMakerDevice {
|
|||||||
|
|
||||||
dh::PinnedMemory pinned;
|
dh::PinnedMemory pinned;
|
||||||
|
|
||||||
std::vector<cudaStream_t> streams{};
|
|
||||||
|
|
||||||
common::Monitor monitor;
|
common::Monitor monitor;
|
||||||
TreeEvaluator tree_evaluator;
|
TreeEvaluator tree_evaluator;
|
||||||
common::ColumnSampler column_sampler;
|
common::ColumnSampler column_sampler;
|
||||||
@ -228,9 +226,6 @@ struct GPUHistMakerDevice {
|
|||||||
|
|
||||||
~GPUHistMakerDevice() { // NOLINT
|
~GPUHistMakerDevice() { // NOLINT
|
||||||
dh::safe_cuda(cudaSetDevice(device_id));
|
dh::safe_cuda(cudaSetDevice(device_id));
|
||||||
for (auto& stream : streams) {
|
|
||||||
dh::safe_cuda(cudaStreamDestroy(stream));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset values for each update iteration
|
// Reset values for each update iteration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user