rm device_helpers.hip.h from cuh

This commit is contained in:
amdsc21 2023-03-25 23:35:57 +01:00
parent f3286bac04
commit ee582f03c3
15 changed files with 0 additions and 81 deletions

View File

@ -4,11 +4,7 @@
#pragma once
#include <vector>
#if defined(XGBOOST_USE_HIP)
#include "../common/device_helpers.hip.h"
#elif defined(XGBOOST_USE_CUDA)
#include "../common/device_helpers.cuh"
#endif
namespace xgboost {
namespace collective {

View File

@ -23,13 +23,7 @@
#include "common.h" // safe_cuda
#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
#endif
#include "xgboost/base.h" // XGBOOST_DEVICE
#include "xgboost/context.h" // Context
#include "xgboost/logging.h" // CHECK

View File

@ -4,12 +4,7 @@
#ifndef XGBOOST_COMMON_CUDA_CONTEXT_CUH_
#define XGBOOST_COMMON_CUDA_CONTEXT_CUH_
#include <thrust/execution_policy.h>
#if defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#elif defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh"
#endif
namespace xgboost {
struct CUDAContext {

View File

@ -12,13 +12,7 @@
#include <cstddef> // for size_t
#include "../data/device_adapter.cuh"
#if defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#endif
#include "hist_util.h"
#include "quantile.cuh"
#include "timer.h"

View File

@ -4,12 +4,7 @@
#ifndef XGBOOST_COMMON_LINALG_OP_CUH_
#define XGBOOST_COMMON_LINALG_OP_CUH_
#if defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#endif
#include "linalg_op.h"
#include "xgboost/context.h"
#include "xgboost/linalg.h"

View File

@ -5,13 +5,7 @@
#include "xgboost/span.h"
#include "xgboost/data.h"
#if defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#endif
#include "quantile.h"
#include "timer.h"
#include "categorical.h"

View File

@ -19,13 +19,7 @@
#include "algorithm.cuh" // SegmentedArgMergeSort
#include "cuda_context.cuh" // CUDAContext
#if defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#endif
#include "xgboost/context.h" // Context
#include "xgboost/span.h" // Span

View File

@ -9,13 +9,7 @@
#include "./math.h" // Sqr
#include "common.h"
#if defined(XGBOOST_USE_HIP)
#include "device_helpers.hip.h"
#elif defined(XGBOOST_USE_CUDA)
#include "device_helpers.cuh" // LaunchN
#endif
#include "xgboost/base.h" // XGBOOST_DEVICE
#include "xgboost/span.h" // Span

View File

@ -12,12 +12,7 @@
#include <memory>
#include <string>
#if defined(XGBOOST_USE_CUDA)
#include "../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../common/device_helpers.hip.h"
#endif
#include "../common/math.h"
#include "adapter.h"
#include "array_interface.h"

View File

@ -8,13 +8,7 @@
#include <xgboost/data.h>
#include "../common/compressed_iterator.h"
#if defined(XGBOOST_USE_CUDA)
#include "../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../common/device_helpers.hip.h"
#endif
#include "../common/hist_util.h"
#include "../common/categorical.h"
#include <thrust/binary_search.h>

View File

@ -9,12 +9,7 @@
#include <thrust/execution_policy.h>
#include <thrust/scan.h>
#if defined(XGBOOST_USE_CUDA)
#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 "device_adapter.cuh" // for HasInfInData

View File

@ -15,12 +15,7 @@
#include "constraints.h"
#include "xgboost/span.h"
#include "../common/bitfield.h"
#if defined(XGBOOST_USE_CUDA)
#include "../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../common/device_helpers.hip.h"
#endif
namespace xgboost {
// Feature interaction constraints built for GPU Hist updater.

View File

@ -6,12 +6,7 @@
#include <xgboost/data.h>
#include <xgboost/span.h>
#if defined(XGBOOST_USE_CUDA)
#include "../../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../common/device_helpers.hip.h"
#endif
#include "../../data/ellpack_page.cuh"
namespace xgboost {

View File

@ -7,12 +7,7 @@
#include <limits>
#include <vector>
#if defined(XGBOOST_USE_CUDA)
#include "../../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../../common/device_helpers.hip.h"
#endif
#include "xgboost/base.h"
#include "xgboost/context.h"
#include "xgboost/task.h"

View File

@ -17,13 +17,7 @@
#include <string>
#include <vector>
#include "../common/categorical.h"
#if defined(XGBOOST_USE_CUDA)
#include "../common/device_helpers.cuh"
#elif defined(XGBOOST_USE_HIP)
#include "../common/device_helpers.hip.h"
#endif
#include "../common/random.h"
#include "gpu_hist/histogram.cuh"
#include "param.h"