-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python-package] CUDA version not truly installing #6417
Comments
Thanks for using LightGBM. As the documentation (link) states:
There is a very conversation about this in #6325. If you'd like to help with getting that support added here, we'd welcome more specifics on exactly the issue you're facing. You could provide the following:
pip install \
--no-binary lightgbm \
--config-settings=cmake.define.USE_CUDA=ON \
'lightgbm>=4.3.0'
Do not try to If you want to build the Python package from a cloned copy of the entire repo, do it like this: sh build-python.sh install --cuda |
Thank you for the quick reply and apologies for not linking the CLI documentation bit about CUDA support on Windows (I thought there might have been a chance for the Python package since its documentation gives the installation command shortly after mentioning the build requirement for Windows, and the GPU version installs and works fine for me). EnvironmentHere are the additional environment details:
And the previous ones restated for convenience:
The CUDA Toolkit was installed with the Windows 11 x86_64 exe from the link and resides at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4; the build command detected it on its own so I did not have to supply its path as an extra argument. Full output of install command
Full output of build-python.sh
in the cloned repo. |
Thank you for reporting this. The CUDA version has not been tested on Windows yet. I can help to verify it on windows environment when I find some time. |
@shiyu1994 I have an old Windows laptop with a GeForce, I can help test this one too. I just wanted to get the full output from this report first to be sure we understood the issue. |
Closing as a duplicate of #3837. |
Description
Following the Python package CUDA Version installation instructions produces no errors, but running it with device = 'cuda' in the parameter dictionary does (at least on Windows), yielding
Is there a workaround?
Installation process (with no errors)
(=ON or =1) while having each of the following installed:
conda install -c conda-forge boost
) and the Boost binaries (of version higher than the first supporting the C++ compiler in the installed VS) (1.84.0)Also tried (with errors)
--no-binary
The following fails in
Building wheel for lightgbm (pyproject.toml)
:Error (after very long processing, silently running the cmakes in the next attempt):
(No clear cause in the endless log above this, which is the same one produced during the successful build below).
Local python-package folder install after successful build
(Trying to follow this post just in case the Python package is able to use the built version).
After the build succeeds, try and appease
by copying CMakeLists.txt, LICENSE and the src folder into the python-package folder, eventually producing the same error as above.
The text was updated successfully, but these errors were encountered: