rm device_helpers.hip.h from cu
This commit is contained in:
parent
ee582f03c3
commit
7ee4734d3a
@ -19,13 +19,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "categorical.h"
|
#include "categorical.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh"
|
#include "device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "hist_util.cuh"
|
#include "hist_util.cuh"
|
||||||
#include "hist_util.h"
|
#include "hist_util.h"
|
||||||
#include "math.h" // NOLINT
|
#include "math.h" // NOLINT
|
||||||
|
|||||||
@ -11,12 +11,7 @@
|
|||||||
#include "xgboost/data.h"
|
#include "xgboost/data.h"
|
||||||
#include "xgboost/host_device_vector.h"
|
#include "xgboost/host_device_vector.h"
|
||||||
#include "xgboost/tree_model.h"
|
#include "xgboost/tree_model.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh"
|
#include "device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|
||||||
|
|||||||
@ -3,12 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <thrust/execution_policy.h>
|
#include <thrust/execution_policy.h>
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh" // dh::Reduce, dh::XGBCachingDeviceAllocator
|
#include "device_helpers.cuh" // dh::Reduce, dh::XGBCachingDeviceAllocator
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h" // dh::Reduce, dh::XGBCachingDeviceAllocator
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "numeric.h"
|
#include "numeric.h"
|
||||||
#include "xgboost/context.h" // Context
|
#include "xgboost/context.h" // Context
|
||||||
#include "xgboost/host_device_vector.h" // HostDeviceVector
|
#include "xgboost/host_device_vector.h" // HostDeviceVector
|
||||||
|
|||||||
@ -16,13 +16,7 @@
|
|||||||
#include "../collective/device_communicator.cuh"
|
#include "../collective/device_communicator.cuh"
|
||||||
#include "categorical.h"
|
#include "categorical.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh"
|
#include "device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "hist_util.h"
|
#include "hist_util.h"
|
||||||
#include "quantile.cuh"
|
#include "quantile.cuh"
|
||||||
#include "quantile.h"
|
#include "quantile.h"
|
||||||
|
|||||||
@ -7,13 +7,7 @@
|
|||||||
#include <cstddef> // size_t
|
#include <cstddef> // size_t
|
||||||
|
|
||||||
#include "cuda_context.cuh" // CUDAContext
|
#include "cuda_context.cuh" // CUDAContext
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh" // dh::MakeTransformIterator, tcbegin, tcend
|
#include "device_helpers.cuh" // dh::MakeTransformIterator, tcbegin, tcend
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h" // dh::MakeTransformIterator, tcbegin, tcend
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "optional_weight.h" // common::OptionalWeights
|
#include "optional_weight.h" // common::OptionalWeights
|
||||||
#include "stats.cuh" // common::SegmentedQuantile, common::SegmentedWeightedQuantile
|
#include "stats.cuh" // common::SegmentedQuantile, common::SegmentedWeightedQuantile
|
||||||
#include "xgboost/base.h" // XGBOOST_DEVICE
|
#include "xgboost/base.h" // XGBOOST_DEVICE
|
||||||
|
|||||||
@ -5,13 +5,7 @@
|
|||||||
* \brief Handles setting metainfo from array interface.
|
* \brief Handles setting metainfo from array interface.
|
||||||
*/
|
*/
|
||||||
#include "../common/cuda_context.cuh"
|
#include "../common/cuda_context.cuh"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/linalg_op.cuh"
|
#include "../common/linalg_op.cuh"
|
||||||
#include "array_interface.h"
|
#include "array_interface.h"
|
||||||
#include "device_adapter.cuh"
|
#include "device_adapter.cuh"
|
||||||
|
|||||||
@ -2,12 +2,7 @@
|
|||||||
* Copyright 2021 by Contributors
|
* Copyright 2021 by Contributors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xgboost/context.h"
|
#include "xgboost/context.h"
|
||||||
#include "xgboost/linalg.h"
|
#include "xgboost/linalg.h"
|
||||||
#include "xgboost/span.h"
|
#include "xgboost/span.h"
|
||||||
|
|||||||
@ -11,13 +11,7 @@
|
|||||||
|
|
||||||
#include "coordinate_common.h"
|
#include "coordinate_common.h"
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/timer.h"
|
#include "../common/timer.h"
|
||||||
#include "./param.h"
|
#include "./param.h"
|
||||||
|
|
||||||
|
|||||||
@ -20,23 +20,14 @@
|
|||||||
#include "metric_common.h"
|
#include "metric_common.h"
|
||||||
#include "xgboost/metric.h"
|
#include "xgboost/metric.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
#include <thrust/execution_policy.h> // thrust::cuda::par
|
#include <thrust/execution_policy.h> // thrust::cuda::par
|
||||||
#include <thrust/functional.h> // thrust::plus<>
|
#include <thrust/functional.h> // thrust::plus<>
|
||||||
#include <thrust/iterator/counting_iterator.h>
|
#include <thrust/iterator/counting_iterator.h>
|
||||||
#include <thrust/transform_reduce.h>
|
#include <thrust/transform_reduce.h>
|
||||||
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#endif // XGBOOST_USE_CUDA
|
#endif // defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include <thrust/execution_policy.h> // thrust::hip::par
|
|
||||||
#include <thrust/functional.h> // thrust::plus<>
|
|
||||||
#include <thrust/iterator/counting_iterator.h>
|
|
||||||
#include <thrust/transform_reduce.h>
|
|
||||||
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif // XGBOOST_USE_HIP
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace metric {
|
namespace metric {
|
||||||
|
|||||||
@ -14,23 +14,14 @@
|
|||||||
#include "../common/threading_utils.h"
|
#include "../common/threading_utils.h"
|
||||||
#include "metric_common.h" // MetricNoCache
|
#include "metric_common.h" // MetricNoCache
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
#include <thrust/execution_policy.h> // thrust::cuda::par
|
#include <thrust/execution_policy.h> // thrust::cuda::par
|
||||||
#include <thrust/functional.h> // thrust::plus<>
|
#include <thrust/functional.h> // thrust::plus<>
|
||||||
#include <thrust/iterator/counting_iterator.h>
|
#include <thrust/iterator/counting_iterator.h>
|
||||||
#include <thrust/transform_reduce.h>
|
#include <thrust/transform_reduce.h>
|
||||||
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#endif // XGBOOST_USE_CUDA
|
#endif // XGBOOST_USE_CUDA || XGBOOST_USE_HIP
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include <thrust/execution_policy.h> // thrust::hip::par
|
|
||||||
#include <thrust/functional.h> // thrust::plus<>
|
|
||||||
#include <thrust/iterator/counting_iterator.h>
|
|
||||||
#include <thrust/transform_reduce.h>
|
|
||||||
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif // XGBOOST_USE_HIP
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace metric {
|
namespace metric {
|
||||||
|
|||||||
@ -19,15 +19,10 @@
|
|||||||
#include "xgboost/json.h"
|
#include "xgboost/json.h"
|
||||||
#include "xgboost/metric.h"
|
#include "xgboost/metric.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
#include <thrust/execution_policy.h> // thrust::cuda::par
|
#include <thrust/execution_policy.h> // thrust::cuda::par
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#endif // XGBOOST_USE_CUDA
|
#endif // XGBOOST_USE_CUDA || XGBOOST_USE_HIP
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include <thrust/execution_policy.h> // thrust::hip::par
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif // XGBOOST_USE_HIP
|
|
||||||
|
|
||||||
using AFTParam = xgboost::common::AFTParam;
|
using AFTParam = xgboost::common::AFTParam;
|
||||||
using ProbabilityDistributionType = xgboost::common::ProbabilityDistributionType;
|
using ProbabilityDistributionType = xgboost::common::ProbabilityDistributionType;
|
||||||
|
|||||||
@ -12,13 +12,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../common/cuda_context.cuh" // CUDAContext
|
#include "../common/cuda_context.cuh" // CUDAContext
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/stats.cuh"
|
#include "../common/stats.cuh"
|
||||||
#include "adaptive.h"
|
#include "adaptive.h"
|
||||||
#include "xgboost/context.h"
|
#include "xgboost/context.h"
|
||||||
|
|||||||
@ -15,27 +15,20 @@
|
|||||||
#include "../common/math.h"
|
#include "../common/math.h"
|
||||||
#include "../common/random.h"
|
#include "../common/random.h"
|
||||||
|
|
||||||
#if defined(__CUDACC__)
|
#if defined(__CUDACC__) || defined(__HIP_PLATFORM_AMD__)
|
||||||
#include <thrust/sort.h>
|
#include <thrust/sort.h>
|
||||||
#include <thrust/gather.h>
|
#include <thrust/gather.h>
|
||||||
#include <thrust/iterator/discard_iterator.h>
|
#include <thrust/iterator/discard_iterator.h>
|
||||||
#include <thrust/random/uniform_int_distribution.h>
|
#include <thrust/random/uniform_int_distribution.h>
|
||||||
#include <thrust/random/linear_congruential_engine.h>
|
#include <thrust/random/linear_congruential_engine.h>
|
||||||
|
|
||||||
|
#if defined(__CUDACC__)
|
||||||
#include <cub/util_allocator.cuh>
|
#include <cub/util_allocator.cuh>
|
||||||
|
#elif defined(__HIP_PLATFORM_AMD__)
|
||||||
|
#include <hipcub/util_allocator.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(__HIP_PLATFORM_AMD__)
|
|
||||||
|
|
||||||
#include <thrust/sort.h>
|
|
||||||
#include <thrust/gather.h>
|
|
||||||
#include <thrust/iterator/discard_iterator.h>
|
|
||||||
#include <thrust/random/uniform_int_distribution.h>
|
|
||||||
#include <thrust/random/linear_congruential_engine.h>
|
|
||||||
|
|
||||||
#include <hipcub/util_allocator.hpp>
|
|
||||||
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|||||||
@ -35,12 +35,9 @@
|
|||||||
#include "xgboost/span.h"
|
#include "xgboost/span.h"
|
||||||
#include "xgboost/tree_model.h" // RegTree
|
#include "xgboost/tree_model.h" // RegTree
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
#if defined(XGBOOST_USE_CUDA) || defined(XGBOOST_USE_HIP)
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#include "../common/linalg_op.cuh"
|
#include "../common/linalg_op.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#include "../common/linalg_op.cuh"
|
|
||||||
#endif // defined(XGBOOST_USE_CUDA), defined(XGBOOST_USE_HIP)
|
#endif // defined(XGBOOST_USE_CUDA), defined(XGBOOST_USE_HIP)
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|||||||
@ -14,13 +14,7 @@
|
|||||||
#include "../common/bitfield.h"
|
#include "../common/bitfield.h"
|
||||||
#include "../common/categorical.h"
|
#include "../common/categorical.h"
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../data/device_adapter.cuh"
|
#include "../data/device_adapter.cuh"
|
||||||
#include "../data/ellpack_page.cuh"
|
#include "../data/ellpack_page.cuh"
|
||||||
#include "../data/proxy_dmatrix.h"
|
#include "../data/proxy_dmatrix.h"
|
||||||
|
|||||||
@ -14,12 +14,7 @@
|
|||||||
#include "xgboost/span.h"
|
#include "xgboost/span.h"
|
||||||
#include "constraints.cuh"
|
#include "constraints.cuh"
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|
||||||
|
|||||||
@ -12,13 +12,7 @@
|
|||||||
#include <cstddef> // std::size_t
|
#include <cstddef> // std::size_t
|
||||||
|
|
||||||
#include "../collective/device_communicator.cuh" // DeviceCommunicator
|
#include "../collective/device_communicator.cuh" // DeviceCommunicator
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh" // dh::MakeTransformIterator
|
#include "../common/device_helpers.cuh" // dh::MakeTransformIterator
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h" // dh::MakeTransformIterator
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "fit_stump.h"
|
#include "fit_stump.h"
|
||||||
#include "xgboost/base.h" // GradientPairPrecise, GradientPair, XGBOOST_DEVICE
|
#include "xgboost/base.h" // GradientPairPrecise, GradientPair, XGBOOST_DEVICE
|
||||||
#include "xgboost/context.h" // Context
|
#include "xgboost/context.h" // Context
|
||||||
|
|||||||
@ -6,19 +6,14 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "../../common/categorical.h"
|
#include "../../common/categorical.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../../common/device_helpers.cuh"
|
#include "../../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../../common/device_helpers.hip.h"
|
|
||||||
#include <hip/hip_cooperative_groups.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../data/ellpack_page.cuh"
|
#include "../../data/ellpack_page.cuh"
|
||||||
#include "evaluate_splits.cuh"
|
#include "evaluate_splits.cuh"
|
||||||
#include "expand_entry.cuh"
|
#include "expand_entry.cuh"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
#if defined(XGBOOST_USE_HIP)
|
||||||
|
#include <hip/hip_cooperative_groups.h>
|
||||||
|
|
||||||
#define WARP_SIZE WAVEFRONT_SIZE
|
#define WARP_SIZE WAVEFRONT_SIZE
|
||||||
#elif defined(XGBOOST_USE_CUDA)
|
#elif defined(XGBOOST_USE_CUDA)
|
||||||
#define WARP_SIZE 32
|
#define WARP_SIZE 32
|
||||||
|
|||||||
@ -7,12 +7,7 @@
|
|||||||
#include <thrust/logical.h> // thrust::any_of
|
#include <thrust/logical.h> // thrust::any_of
|
||||||
#include <thrust/sort.h> // thrust::stable_sort
|
#include <thrust/sort.h> // thrust::stable_sort
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../../common/device_helpers.cuh"
|
#include "../../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../common/hist_util.h" // common::HistogramCuts
|
#include "../../common/hist_util.h" // common::HistogramCuts
|
||||||
#include "evaluate_splits.cuh"
|
#include "evaluate_splits.cuh"
|
||||||
#include "xgboost/data.h"
|
#include "xgboost/data.h"
|
||||||
|
|||||||
@ -7,13 +7,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "feature_groups.cuh"
|
#include "feature_groups.cuh"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../../common/device_helpers.cuh"
|
#include "../../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../common/hist_util.h"
|
#include "../../common/hist_util.h"
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|||||||
@ -9,13 +9,7 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "../../common/deterministic.cuh"
|
#include "../../common/deterministic.cuh"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../../common/device_helpers.cuh"
|
#include "../../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../data/ellpack_page.cuh"
|
#include "../../data/ellpack_page.cuh"
|
||||||
#include "histogram.cuh"
|
#include "histogram.cuh"
|
||||||
#include "row_partitioner.cuh"
|
#include "row_partitioner.cuh"
|
||||||
|
|||||||
@ -7,12 +7,7 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../../common/device_helpers.cuh"
|
#include "../../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "row_partitioner.cuh"
|
#include "row_partitioner.cuh"
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|||||||
@ -17,13 +17,7 @@
|
|||||||
#include "../common/categorical.h"
|
#include "../common/categorical.h"
|
||||||
|
|
||||||
#include "../common/cuda_context.cuh" // CUDAContext
|
#include "../common/cuda_context.cuh" // CUDAContext
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#elif defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/hist_util.h"
|
#include "../common/hist_util.h"
|
||||||
#include "../common/io.h"
|
#include "../common/io.h"
|
||||||
#include "../common/timer.h"
|
#include "../common/timer.h"
|
||||||
|
|||||||
@ -6,12 +6,7 @@
|
|||||||
#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 {
|
||||||
|
|||||||
@ -7,11 +7,7 @@
|
|||||||
#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"
|
||||||
|
|||||||
@ -6,12 +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"
|
||||||
|
|
||||||
|
|||||||
@ -10,12 +10,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include "../../../src/tree/constraints.cuh"
|
#include "../../../src/tree/constraints.cuh"
|
||||||
#include "../../../src/tree/param.h"
|
#include "../../../src/tree/param.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 {
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user