diff --git a/src/common/host_device_vector.cu b/src/common/host_device_vector.cu index da4a55285765..c17a2b4d3eba 100644 --- a/src/common/host_device_vector.cu +++ b/src/common/host_device_vector.cu @@ -29,7 +29,7 @@ class HostDeviceVectorImpl { if (device.IsCUDA()) { gpu_access_ = GPUAccess::kWrite; SetDevice(); - data_d_->Resize(size, v); + data_d_->resize(size, v); } else { data_h_.resize(size, v); }