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

Can LightGBM be compiled and run on an embedded arm linux board? #3456

Closed
scut-jack opened this issue Oct 15, 2020 · 7 comments · Fixed by #3948
Closed

Can LightGBM be compiled and run on an embedded arm linux board? #3456

scut-jack opened this issue Oct 15, 2020 · 7 comments · Fixed by #3948

Comments

@scut-jack
Copy link

scut-jack commented Oct 15, 2020

Can LightGBM be compiled and run on an embedded arm linux board? And if so, what should I do?

@guolinke
Copy link
Collaborator

If it is a linux OS, and can install cmake, gcc, g++, I think it could be compiled.
you can try our installation guide for linux.

@scut-jack
Copy link
Author

If it is a linux OS, and can install cmake, gcc, g++, I think it could be compiled.
you can try our installation guide for linux.

It cannot install cmake, gcc, but I usually use cross-compilation to compile the software and run it on it; But this time the cross-compilation is not successful.I am wondering if this light GBM does not support running on the arm board?

@StrikerRUS
Copy link
Collaborator

@scut-jack

Can LightGBM be compiled and run on an embedded arm linux board?

According to #3421, the answer is yes. Please take a look at the diff of the PR: https://github.com/microsoft/LightGBM/pull/3421/files for steps you need to do in order to compile LightGBM on ARM platform. Seems that you need special CMake version for ARM platform, but everything else is the same as for ordinary Linux installation.

@mattsplats
Copy link

mattsplats commented Oct 15, 2020

Note that you may need to compile differently for 32-bit embedded boards or OSes (Raspbian).

Seems that you need special CMake version for ARM platform

The example above has to override an x86 CMake preinstalled on the Docker image LightGBM's CI uses. In the usual case, apt-get install cmake or yum install cmake installs the correct version for Arm without any workarounds.

@scut-jack
Copy link
Author

Note that you may need to compile differently for 32-bit embedded boards or OSes (Raspbian).

Seems that you need special CMake version for ARM platform

The example above has to override an x86 CMake preinstalled on the Docker image LightGBM's CI uses. In the usual case, apt-get install cmake or yum install cmake installs the correct version for Arm without any workarounds.

There are no apt-get or yum command on the arm board. What I am currently doing is to install cmake and cross compiler arm-linux-gcc on my Ubuntu host, and then compile the machine code on Ubuntu and put it on the arm board to run, but the compilation fails.

@StrikerRUS
Copy link
Collaborator

StrikerRUS commented Jan 9, 2021

What I am currently doing is to install cmake and cross compiler arm-linux-gcc on my Ubuntu host, and then compile the machine code on Ubuntu and put it on the arm board to run, but the compilation fails.

Could you provide compilation logs and exact steps to how we can reproduce this?

@github-actions
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 Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants