Closed Valian closed 8 months ago
Unfortunately, I'm encountering the same issue. It functions correctly on the MacBook Air M2, but when I attempt to run it in the application built in Docker, it crashes with the same error message :disappointed:
I am wondering if this is not an emulation issue, because it works on my old Mac but now the new one. Maybe we could use an arm image? Is that possible?
I think it might be related to the way how XLA is compiled for arm platform. Docker on m1/m2 uses platform linux/arm64
if I'm not mistaken.
Tried emulating linux/amd64
(it's possible through docker cli flag, just works much slower) but had some other weird errors...
What's crazy it works just fine on macbook without docker or on linux with docker. Never before in my ~8yr old journey with Docker had such problems.
It looks like the cross-compiled binary we build on CI is not really reliable and the glibc it requires is definitely too high.
I adjusted Docker builds to work with arm and built the binary off-CI. I replaced the precompiled binary for 0.5.1, since it seems unusable anyway. It works in Docker on M1 for me, @Valian please try again and let me know if you can run it without issues now.
@jonatanklosko Amazing, everything is working now! 👍 🥇 Thank you!
Awesome, thanks for confirming :)
Wow is working 🤘 thank you @jonatanklosko !
First of all, thanks for an amazing work! Running my ML workload inside Elixir is amazingly simple.
For development I'm using Macbook M1 + Docker. Docker is quite useful for sharing development environment. I'm hitting a pretty weird error when installing EXLA in my setup. It was already reported in the separate thread https://github.com/elixir-nx/bumblebee/issues/237 but I think it fits better here.
When installing XLA, it fails. I managed to overcome compilation error, but then I hit another one causing a SEGFAULT. I've already spent quite some time trying to solve it using various approaches from the internet, but didn't yet found a solution.
Reproduction
output
Checking supported versions, indeed it's not there:
updating gcc helps for compilation error, but then another one happens:
error:
Any solution / workaround? Tried compiling XLA from source but it was not clear how to do it inside Docker (had troubles installing Bazel).