Fixed an uninitialized pointer. (#3703)

This commit is contained in:
Andy Adinets 2018-09-16 08:02:31 +02:00 committed by Rory Mitchell
parent 20a9e716bd
commit 0f99cdfe0e

View File

@ -383,7 +383,8 @@ struct DeviceShard {
null_gidx_value(0),
param(param),
prediction_cache_initialised(false),
can_use_smem_atomics(false) {}
can_use_smem_atomics(false),
tmp_pinned(nullptr) {}
void InitRowPtrs(const SparsePage& row_batch) {
dh::safe_cuda(cudaSetDevice(device_idx));