restore device helper

This commit is contained in:
amdsc21
2023-06-02 02:55:13 +02:00
parent 6ecd7903f2
commit 9ee1852d4e
13 changed files with 51 additions and 8 deletions

View File

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

View File

@@ -6,7 +6,11 @@
#include <thrust/device_vector.h>
#include <vector>
#include <xgboost/base.h>
#if defined(XGBOOST_USE_CUDA)
#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 "../helpers.h"
#include "gtest/gtest.h"

View File

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

View File

@@ -6,7 +6,11 @@
#include <thrust/equal.h>
#include <thrust/iterator/counting_iterator.h>
#if defined(XGBOOST_USE_CUDA)
#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>
namespace xgboost {

View File

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