Unverified Commit 04d4811b authored by Qiwei Ye's avatar Qiwei Ye Committed by GitHub
Browse files

[docs] Update GPU-Tutorial.rst (#1037)

* Update GPU-Tutorial.rst

* Update Installation-Guide.rst

* Update GPU-Tutorial.rst
parent 7a166fb3
...@@ -61,6 +61,8 @@ Now we are ready to checkout LightGBM and compile it with GPU support: ...@@ -61,6 +61,8 @@ Now we are ready to checkout LightGBM and compile it with GPU support:
cd LightGBM cd LightGBM
mkdir build ; cd build mkdir build ; cd build
cmake -DUSE_GPU=1 .. cmake -DUSE_GPU=1 ..
  # if you have installed the NVIDIA OpenGL, please using following instead
# sudo cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda/lib64/libOpenCL.so -OpenCL_INCLUDE_DIR=/usr/local/cuda/include/ ..
make -j$(nproc) make -j$(nproc)
cd .. cd ..
......
...@@ -227,6 +227,8 @@ To build LightGBM GPU version, run the following commands: ...@@ -227,6 +227,8 @@ To build LightGBM GPU version, run the following commands:
git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build mkdir build ; cd build
cmake -DUSE_GPU=1 .. cmake -DUSE_GPU=1 ..
# if you have installed the NVIDIA OpenGL, please using following instead
# sudo cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda/lib64/libOpenCL.so -OpenCL_INCLUDE_DIR=/usr/local/cuda/include/ ..
make -j4 make -j4
Windows Windows
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment