add context.hip
This commit is contained in:
@@ -5,7 +5,11 @@
|
||||
#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 {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <chrono>
|
||||
#include <cstddef> // for size_t
|
||||
#include <hipcub/hipcub.hpp>
|
||||
#include <cub/util_allocator.cuh>
|
||||
#include <hipcub/util_allocator.hpp>
|
||||
#include <numeric>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user