From dbfafd85572ec514f195fad60f1944d82fbeeb09 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 22 Aug 2024 06:48:15 -0500 Subject: [PATCH] [doc] Install the conda GPU variant in environments without CUDA (#10731) --- doc/install.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/install.rst b/doc/install.rst index 79082a7ed..532868149 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -107,6 +107,13 @@ Conda should be able to detect the existence of a GPU on your machine and instal # Use NVIDIA GPU conda install -c conda-forge py-xgboost-gpu +To force the installation of the GPU variant on a machine that does not have an NVIDIA GPU, use environment variable ``CONDA_OVERRIDE_CUDA``, +as described in `"Managing Virtual Packages" in the conda docs `_. + +.. code-block:: bash + + export CONDA_OVERRIDE_CUDA="12.5" + conda install -c conda-forge py-xgboost-gpu Visit the `Miniconda website `_ to obtain Conda.