fix device sketch with weights in external memory mode (#5870)

This commit is contained in:
Rong Ou
2020-07-07 17:44:07 -07:00
committed by GitHub
parent d0a29c3135
commit 06320729d4
2 changed files with 17 additions and 1 deletions

View File

@@ -264,7 +264,6 @@ void ProcessWeightedBatch(int device, const SparsePage& page,
d_temp_weights[idx] = weights[group];
});
} else {
CHECK_EQ(weights.size(), page.offset.Size() - 1);
dh::LaunchN(device, temp_weights.size(), [=] __device__(size_t idx) {
size_t element_idx = idx + begin;
size_t ridx = thrust::upper_bound(thrust::seq, row_ptrs.begin(),