Giter Club home page Giter Club logo

Comments (4)

jameslamb avatar jameslamb commented on May 27, 2024 1

@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.

from lightgbm.

jameslamb avatar jameslamb commented on May 27, 2024

Thanks for using LightGBM.

As the documentation (link) states:

Windows
The CUDA version is not supported on Windows. Use the GPU version (device_type=gpu) for GPU acceleration on Windows.

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:

  • what version of Python?
  • what version of Windows?
  • what version of the CUDA Toolkit, how did you install it, and what path is it installed at?
  • what is the full build log you get from running the following command? Attach it as a text file like #6325 (comment)
pip install \
    --no-binary lightgbm \
    --config-settings=cmake.define.USE_CUDA=ON \
    'lightgbm>=4.3.0'

into the python-package folder

Do not try to pip install python-package/, cd python-package/ && python setup.py install, or similar here. This project's source layout does not support that.

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

from lightgbm.

T-Flet avatar T-Flet commented on May 27, 2024

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).

Environment

Here are the additional environment details:

  • Python 3.11.7
  • Windows 11 Pro - 23H2 - 22631.3447

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

pip install \
    --no-binary lightgbm \
    --config-settings=cmake.define.USE_CUDA=ON \
    'lightgbm>=4.3.0'

console_output.txt

Full output of build-python.sh

sh build-python.sh install --cuda

in the cloned repo.
console_output2.txt

from lightgbm.

shiyu1994 avatar shiyu1994 commented on May 27, 2024

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.

from lightgbm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.