Closed CWJ666 closed 6 days ago
Thanks for using LightGBM.
What happens when you install the package as documented in https://github.com/microsoft/LightGBM/blob/master/python-package/README.rst?
sh build-python.sh install --gpu
Also note... building from source like this is only necessary if you want to use a non-released version of LightGBM or customize the build. If using the latest release is sufficient for you, just run the following:
pip install 'lightgbm>=4.4.0'
That package on PyPI already has GPU supported compiled in for Windows. So you'll be able to immediately use the OpenCL-based GPU code with that package (by passing "device": "gpu"
in params
).
Thanks for using LightGBM.
What happens when you install the package as documented in https://github.com/microsoft/LightGBM/blob/master/python-package/README.rst?
sh build-python.sh install --gpu
Also note... building from source like this is only necessary if you want to use a non-released version of LightGBM or customize the build. If using the latest release is sufficient for you, just run the following:
pip install 'lightgbm>=4.4.0'
That package on PyPI already has GPU supported compiled in for Windows. So you'll be able to immediately use the OpenCL-based GPU code with that package (by passing
"device": "gpu"
inparams
).
By installing the latest version of Anaconda (which includes LightGBM 4.4.0), I was able to use the GPU. LightGBM is my primary tool for modeling, and I had always been using the 3.x CPU version, thinking that the GPU version needed to be compiled. Thank you very much; this will greatly increase my work efficiency. Thanks again!
Description
I used https://lightgbm.readthedocs.io/en/stable/GPU-Windows.html to install the GPU version of LightGBM for Python on Windows 10 PC. But on the final step https://lightgbm.readthedocs.io/en/stable/GPU-Windows.htmllightgbm-compilation-cli-final-step, I successfully compiled the CPU version; however, the compilation of the GPU version failed,I have already tried the methods from issue #1206,, but they failed.
Additional Comments
I have been trying to figure out this issue for a week. I've tried changing the CMake version, switching the MinGW version, modifying the Boost environment variables, and adding the Boost path to the CMakeLists.txt file. I've tried at least 20 times, but I really don't know where the problem is. Since 2020, I have tried many times but have never succeeded on my computer. I don't want to give up, please help me. Thank you very much.
Environment info
My GPU is NVIDIA GeForce RTX 3080Ti. I have already installed:
my computer environment path is :
LightGBM version or commit hash:
4.4.0.99
Command(s) you used to install LightGBM