-
Notifications
You must be signed in to change notification settings - Fork 830
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
Apple Silicon (ARM) Macs (arm64e) not supported yet because of missing dynamic library #1405
Comments
Thanks for bringing this up @xelax , I believe the fix would have to be added to the lightGBM repo itself as they package and publish this jar. @imatiach-msft who can point you to more info on this |
ok. should I open an issue at https://github.com/microsoft/LightGBM/issues ? |
If anyone is wondering how to get it working without getting lost in all these upstream toolchains and CIs, this worked for me: git clone --recursive git@github.com:microsoft/LightGBM.git
cd LightGBM
cmake -S . -B build -DAPPLE_OUTPUT_DYLIB=ON
cmake --build build |
Hey @nikos-kal, I was setting up the pipelines for a client that I'm not working with right now so I don't have the exact details. I've tested it to work with java8 and java17. LightGBM 3.2.X. Worked with SynapseML 0.10.2 and 0.9.5. I forgot but I think you may also need the USE_SWIG flag too. git clone --recursive git@github.com:microsoft/LightGBM.git
cd LightGBM
cmake -S . -B build -DAPPLE_OUTPUT_DYLIB=ON -DUSE_SWIG=ON
cmake --build build The apple+arm jar should be in the folder. You need to replace artifact jar referencing com.microsoft.ml.lightgbm:lightgbmlib in your JVM project or through your local artifact repository (ivy/mvn etc...) with the one you built. You can test this quickly from java/scala with the following: com.microsoft.azure.synapse.ml.lightgbm.LightGBMUtils.initializeNativeLibrary() Sorry I can't be of more help. I couldn't figure out how to run the unit tests without using azure cli. |
Thanks @jcdang 🙌 I actually ended up on an alternate solution for now:
This combination works but obviously there is some performance hit due to emulation. Hopefully the MS team can build native jars in the near future so we don’t have to rely on workarounds. |
Thanks @nikos-kal for tfollow up. CLosing this issue but will update if LGBM provides the right natives for this |
Running lightgbm on a Mac with apple silicon (M1 chip, aarch64 architecture) fails because of missing native library for the architecture:
I think the fix should be as simple as adding the appropriate library inside
lightgbmlib-3.2.110.jar
. Let me know if I can help with building it.The text was updated successfully, but these errors were encountered: