Skip to content

Commit 643ddd8

Browse files
committed
Use NOLINT instead.
1 parent df9f20f commit 643ddd8

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

include/xgboost/base.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@
8484
#define XGBOOST_DEVICE
8585
#endif // defined (__CUDA__) || defined(__NVCC__)
8686

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-
9487
// These check are for Makefile.
9588
#if !defined(XGBOOST_MM_PREFETCH_PRESENT) && !defined(XGBOOST_BUILTIN_PREFETCH_PRESENT)
9689
/* default logic for software pre-fetching */

src/common/bitfield.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct BitFieldContainer {
8282
}
8383

8484
public:
85-
XGBOOST_DEV_DFT_CTOR BitFieldContainer() = default;
85+
BitFieldContainer() = default;
8686
XGBOOST_DEVICE explicit BitFieldContainer(common::Span<value_type> bits) : bits_{bits} {}
8787
XGBOOST_DEVICE BitFieldContainer(BitFieldContainer const& other) : bits_{other.bits_} {}
8888

src/metric/metric_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class PackedReduceResult {
6666
double weights_sum_ { 0 };
6767

6868
public:
69-
XGBOOST_DEV_DFT_CTOR PackedReduceResult() = default;
69+
XGBOOST_DEVICE PackedReduceResult() {} // NOLINT
7070
XGBOOST_DEVICE PackedReduceResult(double residue, double weight)
7171
: residue_sum_{residue}, weights_sum_{weight} {}
7272

src/tree/updater_gpu_common.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct DeviceSplitCandidate {
6161
GradientPair left_sum;
6262
GradientPair right_sum;
6363

64-
XGBOOST_DEV_DFT_CTOR DeviceSplitCandidate() = default;
64+
XGBOOST_DEVICE DeviceSplitCandidate() {} // NOLINT
6565

6666
template <typename ParamT>
6767
XGBOOST_DEVICE void Update(const DeviceSplitCandidate& other,
@@ -130,7 +130,7 @@ struct DeviceNodeStats {
130130
/** node id (used as key for reduce/scan) */
131131
NodeIdT idx{kUnusedNode};
132132

133-
XGBOOST_DEV_DFT_CTOR DeviceNodeStats() = default;
133+
XGBOOST_DEVICE DeviceNodeStats() {} // NOLINT
134134

135135
template <typename ParamT>
136136
HOST_DEV_INLINE DeviceNodeStats(GradientPair sum_gradients, NodeIdT nidx,

0 commit comments

Comments
 (0)