Skip to content

Commit dbfafd8

Browse files
authored
[doc] Install the conda GPU variant in environments without CUDA (dmlc#10731)
1 parent cd83fe6 commit dbfafd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/install.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ Conda should be able to detect the existence of a GPU on your machine and instal
107107
# Use NVIDIA GPU
108108
conda install -c conda-forge py-xgboost-gpu
109109
110+
To force the installation of the GPU variant on a machine that does not have an NVIDIA GPU, use environment variable ``CONDA_OVERRIDE_CUDA``,
111+
as described in `"Managing Virtual Packages" in the conda docs <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-virtual.html>`_.
112+
113+
.. code-block:: bash
114+
115+
export CONDA_OVERRIDE_CUDA="12.5"
116+
conda install -c conda-forge py-xgboost-gpu
110117
111118
Visit the `Miniconda website <https://docs.conda.io/en/latest/miniconda.html>`_ to obtain Conda.
112119

0 commit comments

Comments
 (0)