Jiaming Yuan 6e52aefb37
Revert OMP guard. (#6987)
The guard protects the global variable from being changed by XGBoost.  But this leads to a
bug that the `n_threads` parameter is no longer used after the first iteration.  This is
due to the fact that `omp_set_num_threads` is only called once in `Learner::Configure` at
the beginning of the training process.

The guard is still useful for `gpu_id`, since this is called all the times in our codebase
doesn't matter which iteration we are currently running.
2021-05-25 08:56:28 +08:00
..
2021-05-25 08:56:28 +08:00
2021-02-09 23:30:19 +08:00
2021-03-20 16:52:40 +08:00
2020-08-12 01:26:02 -07:00