-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Direct linking from C #4609
Comments
@drewmiller thanks again for bring this to our attention and for your initial contribution in #4608. I'd like to take you up on your offer from #4608 (comment). Could you provide a minimal C program that calls a LightGBM API? If you can help with that, I can create a continuous integration job in our existing setup to test that this feature remains supported. |
@jameslamb Happy to help. |
Alright, here's a first run at the simple C example. My intuition was to carry over the logic, test data, etc. from To run the attached, run Please note that compiling with Valgrind flags some "memory leaks" coming from |
|
Summary
Seeking support for linking LightGBM directly using C compilers.
Motivation
LightGBM may form part of a pipeline of other tools written in a variety of languages targeting a variety of platforms. Direct access via the C programming language provides a lowest common denominator across many platform/language combinations in addition to those already supported.
Description
It naively seems this feature can be implemented with a few macros and little overhead testing given the existing C API support.
References
#4608
The text was updated successfully, but these errors were encountered: