Fix R CRAN failures. (#7404)

* Remove hist builder dtor.

* Initialize values.

* Tolerance.

* Remove the use of nthread in col maker.
This commit is contained in:
Jiaming Yuan
2021-11-16 10:51:12 +08:00
committed by GitHub
parent 55ee272ea8
commit b0015fda96
6 changed files with 20 additions and 23 deletions

View File

@@ -213,7 +213,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. */