-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
running xgboost on apple silicon (aarm64) fails due to lack of native library #7706
Comments
Closing as duplicated to #6408 . |
but this is about the maven artifacts, I think #6408 is about the python packages? |
It's not package-specific, we don't have the machine to build binary packages for apple silicon, nor does GitHub Action provide such instance. @hcho3 found a way to build it for the Python package using cross-platform compilation. But for JVM packages we haven't found a way yet. You can compile XGBoost from the source. |
ok. Would it help if build it on my computer and upload the libraries somewhere? If the instruction are not too complex I can try |
Thank you for the offer. But if we were to support it I think we need to find an automated solution instead of pinging you everytime we want to build it. ;-) Right now all the builds are running on the CI, either on Github action or on Jenkins. |
make sense. Hopefully arm64 instances will become more common soon. |
Support of M1 mac might come soon for github actions: |
|
Hi everyone, XGBoost JVM package now ships with native binary for Apple Silicon, starting from version 2.0.1. |
running xgboost on spark (package ml.dmlc:xgboost4j_2.12:1.5.1:jar) on a Mac with Apple silicon fails with:
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: File /lib/macos/aarch64/libxgboost4j.dylib was not found inside JAR.
at ml.dmlc.xgboost4j.java.XGBoostJNI.(XGBoostJNI.java:37)
... 23 more
Caused by: java.io.FileNotFoundException: File /lib/macos/aarch64/libxgboost4j.dylib was not found inside JAR.
at ml.dmlc.xgboost4j.java.NativeLibLoader.createTempFileFromResource(NativeLibLoader.java:233)
at ml.dmlc.xgboost4j.java.NativeLibLoader.loadLibraryFromJar(NativeLibLoader.java:176)
at ml.dmlc.xgboost4j.java.NativeLibLoader.initXGBoost(NativeLibLoader.java:130)
at ml.dmlc.xgboost4j.java.XGBoostJNI.(XGBoostJNI.java:34)
... 23 more
The text was updated successfully, but these errors were encountered: