rm device_helpers.hip.h from cuh
This commit is contained in:
parent
f3286bac04
commit
ee582f03c3
@ -4,11 +4,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include "../common/device_helpers.hip.h"
|
|
||||||
#elif defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "../common/device_helpers.cuh"
|
#include "../common/device_helpers.cuh"
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
namespace collective {
|
namespace collective {
|
||||||
|
|||||||
@ -23,13 +23,7 @@
|
|||||||
|
|
||||||
#include "common.h" // safe_cuda
|
#include "common.h" // safe_cuda
|
||||||
#include "cuda_context.cuh" // CUDAContext
|
#include "cuda_context.cuh" // CUDAContext
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#elif defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh" // TemporaryArray,SegmentId,LaunchN,Iota,device_vector
|
#include "device_helpers.cuh" // TemporaryArray,SegmentId,LaunchN,Iota,device_vector
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xgboost/base.h" // XGBOOST_DEVICE
|
#include "xgboost/base.h" // XGBOOST_DEVICE
|
||||||
#include "xgboost/context.h" // Context
|
#include "xgboost/context.h" // Context
|
||||||
#include "xgboost/logging.h" // CHECK
|
#include "xgboost/logging.h" // CHECK
|
||||||
|
|||||||
@ -4,12 +4,7 @@
|
|||||||
#ifndef XGBOOST_COMMON_CUDA_CONTEXT_CUH_
|
#ifndef XGBOOST_COMMON_CUDA_CONTEXT_CUH_
|
||||||
#define XGBOOST_COMMON_CUDA_CONTEXT_CUH_
|
#define XGBOOST_COMMON_CUDA_CONTEXT_CUH_
|
||||||
#include <thrust/execution_policy.h>
|
#include <thrust/execution_policy.h>
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#elif defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh"
|
#include "device_helpers.cuh"
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
struct CUDAContext {
|
struct CUDAContext {
|
||||||
|
|||||||
@ -12,13 +12,7 @@
|
|||||||
#include <cstddef> // for size_t
|
#include <cstddef> // for size_t
|
||||||
|
|
||||||
#include "../data/device_adapter.cuh"
|
#include "../data/device_adapter.cuh"
|
||||||
|
|
||||||
#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 "timer.h"
|
#include "timer.h"
|
||||||
|
|||||||
@ -4,12 +4,7 @@
|
|||||||
#ifndef XGBOOST_COMMON_LINALG_OP_CUH_
|
#ifndef XGBOOST_COMMON_LINALG_OP_CUH_
|
||||||
#define XGBOOST_COMMON_LINALG_OP_CUH_
|
#define XGBOOST_COMMON_LINALG_OP_CUH_
|
||||||
|
|
||||||
#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 "linalg_op.h"
|
#include "linalg_op.h"
|
||||||
#include "xgboost/context.h"
|
#include "xgboost/context.h"
|
||||||
#include "xgboost/linalg.h"
|
#include "xgboost/linalg.h"
|
||||||
|
|||||||
@ -5,13 +5,7 @@
|
|||||||
|
|
||||||
#include "xgboost/span.h"
|
#include "xgboost/span.h"
|
||||||
#include "xgboost/data.h"
|
#include "xgboost/data.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 "quantile.h"
|
#include "quantile.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "categorical.h"
|
#include "categorical.h"
|
||||||
|
|||||||
@ -19,13 +19,7 @@
|
|||||||
|
|
||||||
#include "algorithm.cuh" // SegmentedArgMergeSort
|
#include "algorithm.cuh" // SegmentedArgMergeSort
|
||||||
#include "cuda_context.cuh" // CUDAContext
|
#include "cuda_context.cuh" // CUDAContext
|
||||||
|
|
||||||
#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 "xgboost/context.h" // Context
|
#include "xgboost/context.h" // Context
|
||||||
#include "xgboost/span.h" // Span
|
#include "xgboost/span.h" // Span
|
||||||
|
|
||||||
|
|||||||
@ -9,13 +9,7 @@
|
|||||||
|
|
||||||
#include "./math.h" // Sqr
|
#include "./math.h" // Sqr
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(XGBOOST_USE_HIP)
|
|
||||||
#include "device_helpers.hip.h"
|
|
||||||
#elif defined(XGBOOST_USE_CUDA)
|
|
||||||
#include "device_helpers.cuh" // LaunchN
|
#include "device_helpers.cuh" // LaunchN
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "xgboost/base.h" // XGBOOST_DEVICE
|
#include "xgboost/base.h" // XGBOOST_DEVICE
|
||||||
#include "xgboost/span.h" // Span
|
#include "xgboost/span.h" // Span
|
||||||
|
|
||||||
|
|||||||
@ -12,12 +12,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#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/math.h"
|
#include "../common/math.h"
|
||||||
#include "adapter.h"
|
#include "adapter.h"
|
||||||
#include "array_interface.h"
|
#include "array_interface.h"
|
||||||
|
|||||||
@ -8,13 +8,7 @@
|
|||||||
#include <xgboost/data.h>
|
#include <xgboost/data.h>
|
||||||
|
|
||||||
#include "../common/compressed_iterator.h"
|
#include "../common/compressed_iterator.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/hist_util.h"
|
#include "../common/hist_util.h"
|
||||||
#include "../common/categorical.h"
|
#include "../common/categorical.h"
|
||||||
#include <thrust/binary_search.h>
|
#include <thrust/binary_search.h>
|
||||||
|
|||||||
@ -9,12 +9,7 @@
|
|||||||
#include <thrust/execution_policy.h>
|
#include <thrust/execution_policy.h>
|
||||||
#include <thrust/scan.h>
|
#include <thrust/scan.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/error_msg.h" // for InfInData
|
#include "../common/error_msg.h" // for InfInData
|
||||||
#include "device_adapter.cuh" // for HasInfInData
|
#include "device_adapter.cuh" // for HasInfInData
|
||||||
|
|
||||||
|
|||||||
@ -15,12 +15,7 @@
|
|||||||
#include "constraints.h"
|
#include "constraints.h"
|
||||||
#include "xgboost/span.h"
|
#include "xgboost/span.h"
|
||||||
#include "../common/bitfield.h"
|
#include "../common/bitfield.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 {
|
||||||
// Feature interaction constraints built for GPU Hist updater.
|
// Feature interaction constraints built for GPU Hist updater.
|
||||||
|
|||||||
@ -6,12 +6,7 @@
|
|||||||
#include <xgboost/data.h>
|
#include <xgboost/data.h>
|
||||||
#include <xgboost/span.h>
|
#include <xgboost/span.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/ellpack_page.cuh"
|
#include "../../data/ellpack_page.cuh"
|
||||||
|
|
||||||
namespace xgboost {
|
namespace xgboost {
|
||||||
|
|||||||
@ -7,12 +7,7 @@
|
|||||||
#include <limits>
|
#include <limits>
|
||||||
#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 "xgboost/base.h"
|
#include "xgboost/base.h"
|
||||||
#include "xgboost/context.h"
|
#include "xgboost/context.h"
|
||||||
#include "xgboost/task.h"
|
#include "xgboost/task.h"
|
||||||
|
|||||||
@ -17,13 +17,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#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"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../common/random.h"
|
#include "../common/random.h"
|
||||||
#include "gpu_hist/histogram.cuh"
|
#include "gpu_hist/histogram.cuh"
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user