Skip to content

Commit e3cb60e

Browse files
authored
[backport] Remove the use of all __restrict__. (dmlc#11616) (dmlc#11623)
1 parent 0a1c505 commit e3cb60e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tree/gpu_hist/evaluate_splits.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class EvaluateSplitAgent {
185185
bool missing_left, bst_bin_t it,
186186
GradientPairInt64 const &left_sum,
187187
GradientPairInt64 const &right_sum,
188-
DeviceSplitCandidate *__restrict__ best_split) {
188+
DeviceSplitCandidate *best_split) {
189189
auto gain = thread_active
190190
? evaluator.CalcSplitGain(param, nidx, fidx, rounding.ToFloatingPoint(left_sum),
191191
rounding.ToFloatingPoint(right_sum))
@@ -210,7 +210,7 @@ class EvaluateSplitAgent {
210210
/**
211211
* \brief Partition-based split for categorical feature.
212212
*/
213-
__device__ __forceinline__ void Partition(DeviceSplitCandidate *__restrict__ best_split,
213+
__device__ __forceinline__ void Partition(DeviceSplitCandidate *best_split,
214214
common::Span<bst_feature_t> sorted_idx,
215215
std::size_t node_offset,
216216
GPUTrainingParam const &param) {

0 commit comments

Comments
 (0)