-
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
[R-package] how do I build a GPU-enabled version of the R package? #6378
Comments
Thanks for using LightGBM. Those steps product the LightGBM CLI ( To build the R package from sources here on GitHub, follow the instructions at https://github.com/microsoft/LightGBM/tree/master/R-package#installation. Since it looks like you'd like to build a GPU-accelerated version of the package, pay particular attention to https://github.com/microsoft/LightGBM/tree/master/R-package#installing-a-gpu-enabled-build. Rscript build_r.R --use-gpu The CRAN-style distribution of the package does not support GPU acceleration at this time. That feature is tracked in these: |
Whe I use |
Running the command Can you please share the exact text of that error message? |
Ok I opened terminal from LightGBM folder and used
|
Ah! Ok, so it wasn't coming from the build command. I strongly suspect you passed The R package currently only supports LightGBM's The R package doesn't support LightGBM's newer and faster |
No error when using "gpu" instead of "cuda". |
hmmmm that sounds like a bug. Because that error is only raised in one place...the constructor of LightGBM/src/treelearner/cuda/cuda_single_gpu_tree_learner.hpp Lines 153 to 160 in 4332b9d
And the library will only try to instantiate one of those if you passed LightGBM/src/treelearner/tree_learner.cpp Lines 41 to 44 in 4332b9d
Can you please provide a minimal, reproducible example? That's a small, self-contained snippet of R code that exactly produces this error. Something I could copy and run without modification. And answers to these questions please:
|
Ah I see you closed this. @nipnipj did passing It'd be helpful if you could share the resolution you found, so we could learn if there is some bug that needs to be fixed and so other people finding this from search engines will be able to learn from your experience. |
I followed these steps:
At this point everything compiled/built. My question is. How do I make R recognize it as a package?
The text was updated successfully, but these errors were encountered: