File tree Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Expand file tree Collapse file tree 4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 84
84
#define XGBOOST_DEVICE
85
85
#endif // defined (__CUDA__) || defined(__NVCC__)
86
86
87
- #if defined(__CUDACC_VER_MAJOR__) && __CUDACC_VER_MAJOR__ < 10
88
- // Default constructor on device
89
- #define XGBOOST_DEV_DFT_CTOR __host__ __device__
90
- #else
91
- #define XGBOOST_DEV_DFT_CTOR
92
- #endif
93
-
94
87
// These check are for Makefile.
95
88
#if !defined(XGBOOST_MM_PREFETCH_PRESENT) && !defined(XGBOOST_BUILTIN_PREFETCH_PRESENT)
96
89
/* default logic for software pre-fetching */
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ struct BitFieldContainer {
82
82
}
83
83
84
84
public:
85
- XGBOOST_DEV_DFT_CTOR BitFieldContainer () = default;
85
+ BitFieldContainer () = default ;
86
86
XGBOOST_DEVICE explicit BitFieldContainer (common::Span<value_type> bits) : bits_{bits} {}
87
87
XGBOOST_DEVICE BitFieldContainer (BitFieldContainer const & other) : bits_{other.bits_ } {}
88
88
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class PackedReduceResult {
66
66
double weights_sum_ { 0 };
67
67
68
68
public:
69
- XGBOOST_DEV_DFT_CTOR PackedReduceResult () = default;
69
+ XGBOOST_DEVICE PackedReduceResult () {} // NOLINT
70
70
XGBOOST_DEVICE PackedReduceResult (double residue, double weight)
71
71
: residue_sum_{residue}, weights_sum_{weight} {}
72
72
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ struct DeviceSplitCandidate {
61
61
GradientPair left_sum;
62
62
GradientPair right_sum;
63
63
64
- XGBOOST_DEV_DFT_CTOR DeviceSplitCandidate () = default;
64
+ XGBOOST_DEVICE DeviceSplitCandidate () {} // NOLINT
65
65
66
66
template <typename ParamT>
67
67
XGBOOST_DEVICE void Update (const DeviceSplitCandidate& other,
@@ -130,7 +130,7 @@ struct DeviceNodeStats {
130
130
/* * node id (used as key for reduce/scan) */
131
131
NodeIdT idx{kUnusedNode };
132
132
133
- XGBOOST_DEV_DFT_CTOR DeviceNodeStats () = default;
133
+ XGBOOST_DEVICE DeviceNodeStats () {} // NOLINT
134
134
135
135
template <typename ParamT>
136
136
HOST_DEV_INLINE DeviceNodeStats (GradientPair sum_gradients, NodeIdT nidx,
You can’t perform that action at this time.
0 commit comments