Deprecate gpu_exact, bump required cuda version in docs (#4527)
This commit is contained in:
parent
c2a3902ba3
commit
399fabed49
@ -5,10 +5,10 @@ XGBoost GPU Support
|
|||||||
This page contains information about GPU algorithms supported in XGBoost.
|
This page contains information about GPU algorithms supported in XGBoost.
|
||||||
To install GPU support, checkout the :doc:`/build`.
|
To install GPU support, checkout the :doc:`/build`.
|
||||||
|
|
||||||
.. note:: CUDA 8.0, Compute Capability 3.5 required
|
.. note:: CUDA 9.0, Compute Capability 3.5 required
|
||||||
|
|
||||||
The GPU algorithms in XGBoost require a graphics card with compute capability 3.5 or higher, with
|
The GPU algorithms in XGBoost require a graphics card with compute capability 3.5 or higher, with
|
||||||
CUDA toolkits 8.0 or later.
|
CUDA toolkits 9.0 or later.
|
||||||
(See `this list <https://en.wikipedia.org/wiki/CUDA#GPUs_supported>`_ to look up compute capability of your GPU card.)
|
(See `this list <https://en.wikipedia.org/wiki/CUDA#GPUs_supported>`_ to look up compute capability of your GPU card.)
|
||||||
|
|
||||||
*********************************************
|
*********************************************
|
||||||
@ -23,13 +23,13 @@ Specify the ``tree_method`` parameter as one of the following algorithms.
|
|||||||
Algorithms
|
Algorithms
|
||||||
----------
|
----------
|
||||||
|
|
||||||
+--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| tree_method | Description |
|
| tree_method | Description |
|
||||||
+==============+=======================================================================================================================================================================+
|
+=======================+=======================================================================================================================================================================+
|
||||||
| gpu_exact | The standard XGBoost tree construction algorithm. Performs exact search for splits. Slower and uses considerably more memory than ``gpu_hist``. |
|
| gpu_exact (deprecated)| The standard XGBoost tree construction algorithm. Performs exact search for splits. Slower and uses considerably more memory than ``gpu_hist``. |
|
||||||
+--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
| gpu_hist | Equivalent to the XGBoost fast histogram algorithm. Much faster and uses considerably less memory. NOTE: Will run very slowly on GPUs older than Pascal architecture. |
|
| gpu_hist | Equivalent to the XGBoost fast histogram algorithm. Much faster and uses considerably less memory. NOTE: Will run very slowly on GPUs older than Pascal architecture. |
|
||||||
+--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||||
|
|
||||||
Supported parameters
|
Supported parameters
|
||||||
--------------------
|
--------------------
|
||||||
@ -37,29 +37,29 @@ Supported parameters
|
|||||||
.. |tick| unicode:: U+2714
|
.. |tick| unicode:: U+2714
|
||||||
.. |cross| unicode:: U+2718
|
.. |cross| unicode:: U+2718
|
||||||
|
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| parameter | ``gpu_exact`` | ``gpu_hist`` |
|
| parameter | ``gpu_exact`` (deprecated) | ``gpu_hist`` |
|
||||||
+================================+===============+==============+
|
+================================+============================+==============+
|
||||||
| ``subsample`` | |cross| | |tick| |
|
| ``subsample`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``colsample_bytree`` | |cross| | |tick| |
|
| ``colsample_bytree`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``colsample_bylevel`` | |cross| | |tick| |
|
| ``colsample_bylevel`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``max_bin`` | |cross| | |tick| |
|
| ``max_bin`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``gpu_id`` | |tick| | |tick| |
|
| ``gpu_id`` | |tick| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``n_gpus`` | |cross| | |tick| |
|
| ``n_gpus`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``predictor`` | |tick| | |tick| |
|
| ``predictor`` | |tick| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``grow_policy`` | |cross| | |tick| |
|
| ``grow_policy`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``monotone_constraints`` | |cross| | |tick| |
|
| ``monotone_constraints`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
| ``single_precision_histogram`` | |cross| | |tick| |
|
| ``single_precision_histogram`` | |cross| | |tick| |
|
||||||
+--------------------------------+---------------+--------------+
|
+--------------------------------+----------------------------+--------------+
|
||||||
|
|
||||||
GPU accelerated prediction is enabled by default for the above mentioned ``tree_method`` parameters but can be switched to CPU prediction by setting ``predictor`` to ``cpu_predictor``. This could be useful if you want to conserve GPU memory. Likewise when using CPU algorithms, GPU accelerated prediction can be enabled by setting ``predictor`` to ``gpu_predictor``.
|
GPU accelerated prediction is enabled by default for the above mentioned ``tree_method`` parameters but can be switched to CPU prediction by setting ``predictor`` to ``cpu_predictor``. This could be useful if you want to conserve GPU memory. Likewise when using CPU algorithms, GPU accelerated prediction can be enabled by setting ``predictor`` to ``gpu_predictor``.
|
||||||
|
|
||||||
|
|||||||
@ -111,7 +111,7 @@ Parameters for Tree Booster
|
|||||||
|
|
||||||
- The tree construction algorithm used in XGBoost. See description in the `reference paper <http://arxiv.org/abs/1603.02754>`_.
|
- The tree construction algorithm used in XGBoost. See description in the `reference paper <http://arxiv.org/abs/1603.02754>`_.
|
||||||
- XGBoost supports ``hist`` and ``approx`` for distributed training and only support ``approx`` for external memory version.
|
- XGBoost supports ``hist`` and ``approx`` for distributed training and only support ``approx`` for external memory version.
|
||||||
- Choices: ``auto``, ``exact``, ``approx``, ``hist``, ``gpu_exact``, ``gpu_hist``
|
- Choices: ``auto``, ``exact``, ``approx``, ``hist``, ``gpu_hist``
|
||||||
|
|
||||||
- ``auto``: Use heuristic to choose the fastest method.
|
- ``auto``: Use heuristic to choose the fastest method.
|
||||||
|
|
||||||
@ -123,7 +123,6 @@ Parameters for Tree Booster
|
|||||||
- ``exact``: Exact greedy algorithm.
|
- ``exact``: Exact greedy algorithm.
|
||||||
- ``approx``: Approximate greedy algorithm using quantile sketch and gradient histogram.
|
- ``approx``: Approximate greedy algorithm using quantile sketch and gradient histogram.
|
||||||
- ``hist``: Fast histogram optimized approximate greedy algorithm. It uses some performance improvements such as bins caching.
|
- ``hist``: Fast histogram optimized approximate greedy algorithm. It uses some performance improvements such as bins caching.
|
||||||
- ``gpu_exact``: GPU implementation of ``exact`` algorithm.
|
|
||||||
- ``gpu_hist``: GPU implementation of ``hist`` algorithm.
|
- ``gpu_hist``: GPU implementation of ``hist`` algorithm.
|
||||||
|
|
||||||
* ``sketch_eps`` [default=0.03]
|
* ``sketch_eps`` [default=0.03]
|
||||||
|
|||||||
@ -830,7 +830,11 @@ class GPUMaker : public TreeUpdater {
|
|||||||
|
|
||||||
XGBOOST_REGISTER_TREE_UPDATER(GPUMaker, "grow_gpu")
|
XGBOOST_REGISTER_TREE_UPDATER(GPUMaker, "grow_gpu")
|
||||||
.describe("Grow tree with GPU.")
|
.describe("Grow tree with GPU.")
|
||||||
.set_body([]() { return new GPUMaker(); });
|
.set_body([]() {
|
||||||
|
LOG(WARNING) << "The gpu_exact tree method is deprecated and may be "
|
||||||
|
"removed in a future version.";
|
||||||
|
return new GPUMaker();
|
||||||
|
});
|
||||||
|
|
||||||
} // namespace tree
|
} // namespace tree
|
||||||
} // namespace xgboost
|
} // namespace xgboost
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user