rm hip.h files

This commit is contained in:
Hui Liu 2023-10-30 21:54:00 -07:00
parent 6ec5cf26fc
commit 82d81bca94
58 changed files with 0 additions and 318 deletions

View File

@ -1,7 +0,0 @@
/*!
* Copyright 2022 XGBoost contributors
*/
#pragma once
#include "communicator-inl.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2022 XGBoost contributors
*/
#pragma once
#include "device_communicator.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2022 XGBoost contributors
*/
#pragma once
#include "device_communicator_adapter.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2022 XGBoost contributors
*/
#pragma once
#include "nccl_device_communicator.cuh"

View File

@ -1,6 +0,0 @@
/**
* Copyright 2022-2023 by XGBoost Contributors
*/
#pragma once
#include "algorithm.cuh" // Span,byte

View File

@ -1,6 +0,0 @@
/**
* Copyright 2022 by XGBoost Contributors
*/
#pragma once
#include "cuda_context.cuh"

View File

@ -1,6 +0,0 @@
/**
* Copyright 2020-2023 by XGBoost Contributors
*/
#pragma once
#include "deterministic.cuh" // XGBOOST_DEVICE

View File

@ -1,9 +0,0 @@
/**
* Copyright 2020-2023 by XGBoost contributors
*
* \brief Front end and utilities for GPU based sketching. Works on sliding window
* instead of stream.
*/
#pragma once
#include "hist_util.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2021-2022 by XGBoost Contributors
*/
#pragma once
#include "linalg_op.cuh"

View File

@ -1,3 +0,0 @@
#pragma once
#include "quantile.cuh"

View File

@ -1,6 +0,0 @@
/**
* Copyright 2023 by XGBoost Contributors
*/
#pragma once
#include "ranking_utils.cuh" // for Span

View File

@ -1,6 +0,0 @@
/**
* Copyright 2022-2023 by XGBoost Contributors
*/
#pragma once
#include "stats.cuh" // Span

View File

@ -1,6 +0,0 @@
/**
* Copyright 2021-2023 by XGBoost Contributors
*/
#pragma once
#include "threading_utils.cuh" // Span

View File

@ -1,7 +0,0 @@
/**
* Copyright 2019-2023 by XGBoost Contributors
* \file device_adapter.cuh
*/
#pragma once
#include "device_adapter.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2019 by XGBoost Contributors
*/
#pragma once
#include "ellpack_page.cuh"

View File

@ -1,6 +0,0 @@
/**
* Copyright 2021-2023 XGBoost contributors
*/
#pragma once
#include "proxy_dmatrix.cuh"

View File

@ -1,7 +0,0 @@
/**
* Copyright 2019-2023 by XGBoost Contributors
* \file simple_dmatrix.cuh
*/
#pragma once
#include "simple_dmatrix.cuh" // for HasInfInData

View File

@ -1,6 +0,0 @@
/**
* Copyright 2023 XGBoost contributors
*/
#pragma once
#include "lambdarank_obj.cuh" // for Span

View File

@ -1,8 +0,0 @@
/*!
* Copyright 2019 XGBoost contributors
*
* \file Various constraints used in GPU_Hist.
*/
#pragma once
#include "constraints.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2020 by XGBoost Contributors
*/
#pragma once
#include "evaluate_splits.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2020 by XGBoost Contributors
*/
#pragma once
#include "expand_entry.cuh"

View File

@ -1,7 +0,0 @@
/*!
* Copyright 2020 by XGBoost Contributors
*/
#pragma once
#include "feature_groups.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2019 by XGBoost Contributors
*/
#pragma once
#include "gradient_based_sampler.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2020-2021 by XGBoost Contributors
*/
#pragma once
#include "histogram.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2017-2022 XGBoost contributors
*/
#pragma once
#include "row_partitioner.cuh"

View File

@ -1,6 +0,0 @@
/*!
* Copyright 2017-2019 XGBoost contributors
*/
#pragma once
#include "updater_gpu_common.cuh"

View File

@ -8,13 +8,8 @@
#include <bitset> #include <bitset>
#include <string> // for string #include <string> // for string
#if defined(XGBOOST_USE_NCCL)
#include "../../../src/collective/nccl_device_communicator.cuh" #include "../../../src/collective/nccl_device_communicator.cuh"
#include "../../../src/collective/communicator-inl.cuh" #include "../../../src/collective/communicator-inl.cuh"
#elif defined(XGBOOST_USE_RCCL)
#include "../../../src/collective/nccl_device_communicator.hip.h"
#include "../../../src/collective/communicator-inl.hip.h"
#endif
#include "../helpers.h" #include "../helpers.h"
namespace xgboost { namespace xgboost {

View File

@ -9,13 +9,8 @@
#include <algorithm> // is_sorted #include <algorithm> // is_sorted
#include <cstddef> // size_t #include <cstddef> // size_t
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/algorithm.cuh" #include "../../../src/common/algorithm.cuh"
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/algorithm.hip.h"
#include "../../../src/common/device_helpers.hip.h"
#endif
#include "../helpers.h" // CreateEmptyGenericParam #include "../helpers.h" // CreateEmptyGenericParam
namespace xgboost { namespace xgboost {

View File

@ -6,11 +6,7 @@
#include <thrust/device_vector.h> #include <thrust/device_vector.h>
#include <vector> #include <vector>
#include "../../../src/common/bitfield.h" #include "../../../src/common/bitfield.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
namespace xgboost { namespace xgboost {

View File

@ -6,11 +6,7 @@
#include <thrust/device_vector.h> #include <thrust/device_vector.h>
#include <vector> #include <vector>
#include <xgboost/base.h> #include <xgboost/base.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
#include "../../../src/common/quantile.h" #include "../../../src/common/quantile.h"
#include "../helpers.h" #include "../helpers.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"

View File

@ -1,9 +1,5 @@
#include "../../../src/common/compressed_iterator.h" #include "../../../src/common/compressed_iterator.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include <algorithm> #include <algorithm>
#include <thrust/device_vector.h> #include <thrust/device_vector.h>

View File

@ -16,18 +16,10 @@
#include <vector> // for vector #include <vector> // for vector
#include "../../../include/xgboost/logging.h" #include "../../../include/xgboost/logging.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#include "../../../src/common/hist_util.cuh" #include "../../../src/common/hist_util.cuh"
#include "../../../src/common/hist_util.h" #include "../../../src/common/hist_util.h"
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#include "../../../src/common/hist_util.hip.h"
#include "../../../src/common/hist_util.h"
#include "../../../src/common/math.h"
#include "../../../src/data/device_adapter.hip.h"
#endif
#include "../../../src/data/simple_dmatrix.h" #include "../../../src/data/simple_dmatrix.h"
#include "../data/test_array_interface.h" #include "../data/test_array_interface.h"
#include "../filesystem.h" // dmlc::TemporaryDirectory #include "../filesystem.h" // dmlc::TemporaryDirectory

View File

@ -5,12 +5,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <thrust/equal.h> #include <thrust/equal.h>
#include <thrust/iterator/counting_iterator.h> #include <thrust/iterator/counting_iterator.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
#include <xgboost/host_device_vector.h> #include <xgboost/host_device_vector.h>
namespace xgboost { namespace xgboost {

View File

@ -3,11 +3,7 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/linalg_op.cuh" #include "../../../src/common/linalg_op.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/linalg_op.hip.h"
#endif
#include "../helpers.h" #include "../helpers.h"
#include "xgboost/context.h" #include "xgboost/context.h"
#include "xgboost/linalg.h" #include "xgboost/linalg.h"

View File

@ -2,18 +2,10 @@
* Copyright 2020-2023, XGBoost contributors * Copyright 2020-2023, XGBoost contributors
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/collective/communicator-inl.cuh" #include "../../../src/collective/communicator-inl.cuh"
#include "../../../src/common/hist_util.cuh" #include "../../../src/common/hist_util.cuh"
#include "../../../src/common/quantile.cuh" #include "../../../src/common/quantile.cuh"
#include "../../../src/data/device_adapter.cuh" // CupyAdapter #include "../../../src/data/device_adapter.cuh" // CupyAdapter
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/collective/communicator-inl.hip.h"
#include "../../../src/common/hist_util.hip.h"
#include "../../../src/common/quantile.hip.h"
#include "../../../src/data/device_adapter.hip.h" // CupyAdapter
#endif
#include "../helpers.h" #include "../helpers.h"
#include "test_quantile.h" #include "test_quantile.h"

View File

@ -11,17 +11,10 @@
#include <numeric> // for iota #include <numeric> // for iota
#include <vector> // for vector #include <vector> // for vector
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/algorithm.cuh" // for SegmentedSequence #include "../../../src/common/algorithm.cuh" // for SegmentedSequence
#include "../../../src/common/cuda_context.cuh" // for CUDAContext #include "../../../src/common/cuda_context.cuh" // for CUDAContext
#include "../../../src/common/device_helpers.cuh" // for device_vector, ToSpan #include "../../../src/common/device_helpers.cuh" // for device_vector, ToSpan
#include "../../../src/common/ranking_utils.cuh" // for CalcQueriesInvIDCG #include "../../../src/common/ranking_utils.cuh" // for CalcQueriesInvIDCG
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/algorithm.hip.h" // for SegmentedSequence
#include "../../../src/common/cuda_context.hip.h" // for CUDAContext
#include "../../../src/common/device_helpers.hip.h" // for device_vector, ToSpan
#include "../../../src/common/ranking_utils.hip.h" // for CalcQueriesInvIDCG
#endif
#include "../../../src/common/ranking_utils.h" // for LambdaRankParam, RankingCache #include "../../../src/common/ranking_utils.h" // for LambdaRankParam, RankingCache
#include "../helpers.h" // for EmptyDMatrix #include "../helpers.h" // for EmptyDMatrix
#include "test_ranking_utils.h" // for TestNDCGCache #include "test_ranking_utils.h" // for TestNDCGCache

View File

@ -6,13 +6,7 @@
#include <thrust/host_vector.h> #include <thrust/host_vector.h>
#include <thrust/device_vector.h> #include <thrust/device_vector.h>
#include <thrust/execution_policy.h> #include <thrust/execution_policy.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
#include <xgboost/span.h> #include <xgboost/span.h>
#include "test_span.h" #include "test_span.h"

View File

@ -7,13 +7,8 @@
#include <utility> // std::pair #include <utility> // std::pair
#include <vector> // std::vector #include <vector> // std::vector
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/linalg_op.cuh" // ElementWiseTransformDevice #include "../../../src/common/linalg_op.cuh" // ElementWiseTransformDevice
#include "../../../src/common/stats.cuh" #include "../../../src/common/stats.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/linalg_op.hip.h" // ElementWiseTransformDevice
#include "../../../src/common/stats.hip.h"
#endif
#include "../helpers.h" #include "../helpers.h"
#include "xgboost/base.h" // XGBOOST_DEVICE #include "xgboost/base.h" // XGBOOST_DEVICE
#include "xgboost/context.h" // Context #include "xgboost/context.h" // Context

View File

@ -4,13 +4,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <thrust/copy.h> // thrust::copy #include <thrust/copy.h> // thrust::copy
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#include "../../../src/common/threading_utils.cuh" #include "../../../src/common/threading_utils.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#include "../../../src/common/threading_utils.hip.h"
#endif
namespace xgboost { namespace xgboost {
namespace common { namespace common {

View File

@ -6,11 +6,7 @@
#include <memory> #include <memory>
#include "../../../src/common/bitfield.h" #include "../../../src/common/bitfield.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
namespace xgboost { namespace xgboost {

View File

@ -6,12 +6,7 @@
#include "../../../src/common/timer.h" #include "../../../src/common/timer.h"
#include "../helpers.h" #include "../helpers.h"
#include <thrust/device_vector.h> #include <thrust/device_vector.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/device_adapter.hip.h"
#endif
#include "test_array_interface.h" #include "test_array_interface.h"
using namespace xgboost; // NOLINT using namespace xgboost; // NOLINT

View File

@ -7,11 +7,7 @@
#include "../../../src/common/categorical.h" #include "../../../src/common/categorical.h"
#include "../../../src/common/hist_util.h" #include "../../../src/common/hist_util.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/ellpack_page.cuh" #include "../../../src/data/ellpack_page.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/ellpack_page.hip.h"
#endif
#include "../../../src/data/ellpack_page.h" #include "../../../src/data/ellpack_page.h"
#include "../../../src/tree/param.h" // TrainParam #include "../../../src/tree/param.h" // TrainParam
#include "../helpers.h" #include "../helpers.h"

View File

@ -5,11 +5,7 @@
#include <xgboost/data.h> #include <xgboost/data.h>
#include "../../../src/common/io.h" // for PrivateMmapConstStream, AlignedResourceReadStream... #include "../../../src/common/io.h" // for PrivateMmapConstStream, AlignedResourceReadStream...
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/ellpack_page.cuh" #include "../../../src/data/ellpack_page.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/ellpack_page.hip.h"
#endif
#include "../../../src/data/sparse_page_source.h" #include "../../../src/data/sparse_page_source.h"
#include "../../../src/tree/param.h" // TrainParam #include "../../../src/tree/param.h" // TrainParam
#include "../filesystem.h" // dmlc::TemporaryDirectory #include "../filesystem.h" // dmlc::TemporaryDirectory

View File

@ -3,13 +3,8 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#include "../../../src/data/ellpack_page.cuh" #include "../../../src/data/ellpack_page.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/device_adapter.hip.h"
#include "../../../src/data/ellpack_page.hip.h"
#endif
#include "../../../src/data/ellpack_page.h" #include "../../../src/data/ellpack_page.h"
#include "../../../src/data/iterative_dmatrix.h" #include "../../../src/data/iterative_dmatrix.h"
#include "../../../src/tree/param.h" // TrainParam #include "../../../src/tree/param.h" // TrainParam

View File

@ -6,11 +6,7 @@
#include <xgboost/data.h> #include <xgboost/data.h>
#include <xgboost/json.h> #include <xgboost/json.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/device_helpers.hip.h"
#endif
#include "test_array_interface.h" #include "test_array_interface.h"
#include "test_metainfo.h" #include "test_metainfo.h"

View File

@ -7,11 +7,7 @@
#include <any> // for any_cast #include <any> // for any_cast
#include <memory> #include <memory>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/device_adapter.hip.h"
#endif
#include "../../../src/data/proxy_dmatrix.h" #include "../../../src/data/proxy_dmatrix.h"
#include "../helpers.h" #include "../helpers.h"

View File

@ -4,11 +4,7 @@
#include <thrust/sequence.h> #include <thrust/sequence.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/device_adapter.hip.h"
#endif
#include "../helpers.h" #include "../helpers.h"
#include "test_array_interface.h" #include "test_array_interface.h"
#include "../../../src/data/array_interface.h" #include "../../../src/data/array_interface.h"

View File

@ -4,11 +4,7 @@
#include <xgboost/data.h> // for DMatrix #include <xgboost/data.h> // for DMatrix
#include "../../../src/common/compressed_iterator.h" #include "../../../src/common/compressed_iterator.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/ellpack_page.cuh" #include "../../../src/data/ellpack_page.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/ellpack_page.hip.h"
#endif
#include "../../../src/data/ellpack_page.h" #include "../../../src/data/ellpack_page.h"
#include "../../../src/data/sparse_page_dmatrix.h" #include "../../../src/data/sparse_page_dmatrix.h"
#include "../../../src/tree/param.h" // TrainParam #include "../../../src/tree/param.h" // TrainParam

View File

@ -1,11 +1,7 @@
#include <xgboost/c_api.h> #include <xgboost/c_api.h>
#include "helpers.h" #include "helpers.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../src/data/device_adapter.cuh" #include "../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../src/data/device_adapter.hip.h"
#endif
#include "../../src/data/iterative_dmatrix.h" #include "../../src/data/iterative_dmatrix.h"
namespace xgboost { namespace xgboost {

View File

@ -7,13 +7,8 @@
#include <cstdint> // for uint32_t #include <cstdint> // for uint32_t
#include <vector> // for vector #include <vector> // for vector
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/common/cuda_context.cuh" // for CUDAContext #include "../../../src/common/cuda_context.cuh" // for CUDAContext
#include "../../../src/objective/lambdarank_obj.cuh" #include "../../../src/objective/lambdarank_obj.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/common/cuda_context.hip.h" // for CUDAContext
#include "../../../src/objective/lambdarank_obj.hip.h"
#endif
#include "test_lambdarank_obj.h" #include "test_lambdarank_obj.h"
namespace xgboost::obj { namespace xgboost::obj {

View File

@ -9,11 +9,7 @@
#include <string> #include <string>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/device_adapter.cuh" #include "../../../src/data/device_adapter.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/device_adapter.hip.h"
#endif
#include "../../../src/data/proxy_dmatrix.h" #include "../../../src/data/proxy_dmatrix.h"
#include "../../../src/gbm/gbtree_model.h" #include "../../../src/gbm/gbtree_model.h"
#include "../helpers.h" #include "../helpers.h"

View File

@ -1,10 +1,6 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "../../../../src/tree/driver.h" #include "../../../../src/tree/driver.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../../src/tree/gpu_hist/expand_entry.cuh" #include "../../../../src/tree/gpu_hist/expand_entry.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../../src/tree/gpu_hist/expand_entry.hip.h"
#endif
namespace xgboost { namespace xgboost {
namespace tree { namespace tree {

View File

@ -3,11 +3,7 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../../src/tree/gpu_hist/evaluate_splits.cuh" #include "../../../../src/tree/gpu_hist/evaluate_splits.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../../src/tree/gpu_hist/evaluate_splits.hip.h"
#endif
#include "../../helpers.h" #include "../../helpers.h"
#include "../../histogram_helpers.h" #include "../../histogram_helpers.h"
#include "../test_evaluate_splits.h" // TestPartitionBasedSplit #include "../test_evaluate_splits.h" // TestPartitionBasedSplit

View File

@ -3,13 +3,8 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../../../src/data/ellpack_page.cuh" #include "../../../../src/data/ellpack_page.cuh"
#include "../../../../src/tree/gpu_hist/gradient_based_sampler.cuh" #include "../../../../src/tree/gpu_hist/gradient_based_sampler.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../../src/data/ellpack_page.hip.h"
#include "../../../../src/tree/gpu_hist/gradient_based_sampler.hip.h"
#endif
#include "../../../../src/tree/param.h" // TrainParam #include "../../../../src/tree/param.h" // TrainParam
#include "../../filesystem.h" // dmlc::TemporaryDirectory #include "../../filesystem.h" // dmlc::TemporaryDirectory
#include "../../helpers.h" #include "../../helpers.h"

View File

@ -6,13 +6,8 @@
#include <vector> #include <vector>
#include "../../../../src/common/categorical.h" #include "../../../../src/common/categorical.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../../src/tree/gpu_hist/histogram.cuh" #include "../../../../src/tree/gpu_hist/histogram.cuh"
#include "../../../../src/tree/gpu_hist/row_partitioner.cuh" #include "../../../../src/tree/gpu_hist/row_partitioner.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../../src/tree/gpu_hist/histogram.hip.h"
#include "../../../../src/tree/gpu_hist/row_partitioner.hip.h"
#endif
#include "../../../../src/tree/param.h" // TrainParam #include "../../../../src/tree/param.h" // TrainParam
#include "../../categorical_helpers.h" #include "../../categorical_helpers.h"
#include "../../helpers.h" #include "../../helpers.h"

View File

@ -9,11 +9,7 @@
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#if defined(XGBOOST_USE_CUDA)
#include "../../../../src/tree/gpu_hist/row_partitioner.cuh" #include "../../../../src/tree/gpu_hist/row_partitioner.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../../src/tree/gpu_hist/row_partitioner.hip.h"
#endif
#include "../../helpers.h" #include "../../helpers.h"
#include "xgboost/base.h" #include "xgboost/base.h"
#include "xgboost/context.h" #include "xgboost/context.h"

View File

@ -8,15 +8,9 @@
#include <string> #include <string>
#include <bitset> #include <bitset>
#include <set> #include <set>
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/tree/constraints.cuh" #include "../../../src/tree/constraints.cuh"
#include "../../../src/tree/param.h" #include "../../../src/tree/param.h"
#include "../../../src/common/device_helpers.cuh" #include "../../../src/common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/tree/constraints.hip.h"
#include "../../../src/tree/param.h"
#include "../../../src/common/device_helpers.hip.h"
#endif
namespace xgboost { namespace xgboost {
namespace { namespace {

View File

@ -11,17 +11,10 @@
#include <vector> #include <vector>
#include "../../../src/common/common.h" #include "../../../src/common/common.h"
#if defined(XGBOOST_USE_CUDA)
#include "../../../src/data/ellpack_page.cuh" // for EllpackPageImpl #include "../../../src/data/ellpack_page.cuh" // for EllpackPageImpl
#include "../../../src/data/ellpack_page.h" // for EllpackPage #include "../../../src/data/ellpack_page.h" // for EllpackPage
#include "../../../src/tree/param.h" // for TrainParam #include "../../../src/tree/param.h" // for TrainParam
#include "../../../src/tree/updater_gpu_hist.cu" #include "../../../src/tree/updater_gpu_hist.cu"
#elif defined(XGBOOST_USE_HIP)
#include "../../../src/data/ellpack_page.hip.h" // for EllpackPageImpl
#include "../../../src/data/ellpack_page.h" // for EllpackPage
#include "../../../src/tree/param.h" // for TrainParam
#include "../../../src/tree/updater_gpu_hist.hip"
#endif
#include "../filesystem.h" // dmlc::TemporaryDirectory #include "../filesystem.h" // dmlc::TemporaryDirectory
#include "../helpers.h" #include "../helpers.h"
#include "../histogram_helpers.h" #include "../histogram_helpers.h"