You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/build.rst
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ From the command line on Linux starting from the XGBoost directory:
134
134
135
135
.. note:: Specifying compute capability
136
136
137
-
To speed up compilation, the compute version specific to your GPU could be passed to cmake as, e.g., ``-DGPU_COMPUTE_VER=50``. A quick explanation and numbers for some architectures can be found `in this page <https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/>`_.
137
+
To speed up compilation, the compute version specific to your GPU could be passed to cmake as, e.g., ``-DCMAKE_CUDA_ARCHITECTURES=75``. A quick explanation and numbers for some architectures can be found `in this page <https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/>`_.
138
138
139
139
.. note:: Faster distributed GPU training with NCCL
140
140
@@ -147,6 +147,8 @@ From the command line on Linux starting from the XGBoost directory:
Some additional flags are available for NCCL, ``BUILD_WITH_SHARED_NCCL`` enables building XGBoost with NCCL as a shared library, while ``USE_DLOPEN_NCCL`` enables XGBoost to load NCCL at runtime using ``dlopen``.
151
+
150
152
On Windows, run CMake as follows:
151
153
152
154
.. code-block:: bash
@@ -165,6 +167,17 @@ The above cmake configuration run will create an ``xgboost.sln`` solution file i
165
167
166
168
To speed up compilation, run multiple jobs in parallel by appending option ``-- /MP``.
167
169
170
+
Federated Learning
171
+
==================
172
+
173
+
The federated learning plugin requires ``grpc`` and ``protobuf``. To install grpc, refer
174
+
to the `installation guide from the gRPC website
175
+
<https://grpc.io/docs/languages/cpp/quickstart/>`_. Alternatively, one can use the
176
+
``libgrpc`` and the ``protobuf`` package from conda forge if conda is available. After
177
+
obtaining the required dependencies, enable the flag: `-DPLUGIN_FEDERATED=ON` when running
178
+
CMake. Please note that only Linux is supported for the federated plugin.
179
+
180
+
168
181
.. _build_python:
169
182
170
183
***********************************
@@ -228,11 +241,12 @@ There are several ways to build and install the package from source:
228
241
229
242
3. Editable installation
230
243
231
-
To further enable rapid development and iteration, we provide an **editable installation**.
232
-
In an editable installation, the installed package is simply a symbolic link to your
233
-
working copy of the XGBoost source code. So every changes you make to your source
234
-
directory will be immediately visible to the Python interpreter. Here is how to
235
-
install XGBoost as editable installation:
244
+
To further enable rapid development and iteration, we provide an **editable
245
+
installation**. In an editable installation, the installed package is simply a symbolic
246
+
link to your working copy of the XGBoost source code. So every changes you make to your
247
+
source directory will be immediately visible to the Python interpreter. To install
248
+
XGBoost as editable installation, first build the shared library as previously
0 commit comments