Remove unused code. (#7293)

This commit is contained in:
Jiaming Yuan 2021-10-12 15:04:41 +08:00 committed by GitHub
parent 130df8cdda
commit a7d0c66457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -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;

View File

@ -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