[backport] Fix R CRAN failures. (#7404) (#7451)

* Remove hist builder dtor.

* Initialize values.

* Tolerance.

* Remove the use of nthread in col maker.
This commit is contained in:
Jiaming Yuan
2021-11-19 21:40:04 +08:00
committed by GitHub
parent 9bbd00a49f
commit 0f9ffcdc16
6 changed files with 20 additions and 23 deletions

View File

@@ -211,7 +211,7 @@ struct Entry {
*/
struct BatchParam {
/*! \brief The GPU device to use. */
int gpu_id;
int gpu_id {-1};
/*! \brief Maximum number of bins per feature for histograms. */
int max_bin{0};
/*! \brief Hessian, used for sketching with future approx implementation. */