Skip to content

Commit aa29135

Browse files
authored
Update README.rst
1 parent a16d53b commit aa29135

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: python-package/README.rst

+2-5
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ For **macOS** users, the GPU version is not supported.
145145

146146
.. code:: sh
147147
148-
pip install lightgbm --no-binary lightgbm \
149-
--config-settings=cmake.define.USE_GPU=ON \
150-
--config-settings=cmake.define.OpenCL_INCLUDE_DIR="/usr/local/cuda/include/" \
151-
--config-settings=cmake.define.OpenCL_LIBRARY="/usr/local/cuda/lib64/libOpenCL.so"
148+
pip install lightgbm --no-binary lightgbm --config-settings=cmake.define.USE_GPU=ON --config-settings=cmake.define.OpenCL_INCLUDE_DIR="/usr/local/cuda/include/" --config-settings=cmake.define.OpenCL_LIBRARY="/usr/local/cuda/lib64/libOpenCL.so"
152149
153150
All available options that can be passed via ``cmake.define.{option}``.
154151

@@ -243,7 +240,7 @@ Build in Debug Mode
243240

244241
.. code:: sh
245242
246-
pip install lightgbm --no-binary lightgbm --config-settings=cmake.define.USE_DEBUG=ON
243+
pip install lightgbm --no-binary lightgbm --config-settings=cmake.define.USE_DEBUG=ON --config-settings=cmake.build-type=Debug
247244
248245
Use this mode to make LightGBM perform more checks internally and disable all compiler optimizations.
249246

0 commit comments

Comments
 (0)