-
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] LightGBM package for R appears to build properly, but missing functions like getinfo
#5140
Comments
LightGBM/R-package/R/lgb.Dataset.R Lines 1090 to 1092 in b462d0a
The next planned release of LightGBM (the entire project, not only the R package), will be a new major version (v3.3.2 -> v4.0.0). As a result, the current state of the source code on the You can see a summary of the breaking changes by looking at the history of PRs with label https://github.com/microsoft/LightGBM/pulls?q=is%3Apr+label%3Abreaking+is%3Aclosed If you'd like to build from source for v3.3.2, you can run the following before compiling. git fetch --tags
git checkout v3.3.2
git submodule update --recursive If you'd like to build from source for latest Thank you VERY much for an excellent and detailed write-up! In the future, if you report something here and are building from a development version ending in https://github.com/microsoft/LightGBM/blob/master/VERSION.txt is not updated on every commit, so a version like
Sorry about this :/. I've observed a ton of compilation warnings from Eigen too, and haven't found a good way to silence them yet. Unfortunately, the authors of LightGBM don't control the Eigen source code (it is vendored in from https://gitlab.com/libeigen/eigen), and CRAN does not permit the use of compiler flags that silence warnings. |
getinfo
getinfo
Sorry, just noticed this comment. Note that lines like the following in compilation output don't actually mean that any GPU-specific functionality is being compiled.
For many parts of LightGBM's C/C++ source code, build-time definitions like For example, nothing after the following line will actually be compiled unless
|
OK, that explains why code I wrote last year wasn't working with the cutting edge build. I'll stick with the CRAN package for CPU only. If I have some time, I'll try specifically pulling 3.3.2 and building with GPU to consider #5135. |
@jameslamb FYI, calling |
Blegh sorry about that, maybe some internal uses of I don't have a suggestion for how to ignore those warnings, other than wrapping your call to Sorry for the inconvenience, it's an oversight that any such warnings were raised from uses that can't be controlled through the package's public API. |
No worries, @jameslamb, I just figured you'd want to know! |
Appreciate it, thank you so much! |
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. |
Description
I followed the directions to build a regular R package from source using MSYS2 from the command line, and it appears to build, but is missing basic functionality like
getinfo
. When I build from within R usinginstall.packages('lightgbm', type = 'source') then
getinfo` appears. Please note that I did not ask for GPU but the build seems to be building gpu-related functionality anyway. I do have CUDE/NVCC 11.6 and CUDANN installed. Perhaps this is related to #5135?Environment info
version 3.3.2.99
Installation from Command Line
Command(s) you used to install LightGBM
Installation from within R
Technically using R CMD INSTALL since the Eigen issues completely blow the buffer so I cannot capture it all from within RStudio. Even sending it to a textfile misses the explosion of Eigen issues:
Capture of most of compile
Capture of Install
Call from within R
Session Info
The text was updated successfully, but these errors were encountered: