Skip to content
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

How to use gpu with C_API? #5966

Closed
n4sbsxp opened this issue Jul 10, 2023 · 6 comments
Closed

How to use gpu with C_API? #5966

n4sbsxp opened this issue Jul 10, 2023 · 6 comments
Labels

Comments

@n4sbsxp
Copy link

n4sbsxp commented Jul 10, 2023

For some personal reason I need to run the code in c++ but I didn't found any function showing how to change the device in the document. https://lightgbm.readthedocs.io/en/latest/C-API.html

@wil70
Copy link

wil70 commented Nov 14, 2023

Hi @n4sbsxp, did you find a solution to this?
Thanks
w

@n4sbsxp
Copy link
Author

n4sbsxp commented Nov 15, 2023

Hi @n4sbsxp, did you find a solution to this? Thanks w

nah, you can try rewritting the code with cuda and recompile it.

@jmoralez
Copy link
Collaborator

How are you using the C API? If you're using for example LGBM_BoosterCreate you can specify device="gpu" in the parameters.

@wil70
Copy link

wil70 commented Dec 5, 2023

Hi @jameslamb ,

I'm not sure how @n4sbsxp is doing it.

I'm have been using 'device=gpu', but I'm blocked by #6220

Best

Wil

Copy link

This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM!

Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants