-
Notifications
You must be signed in to change notification settings - Fork 21
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
xla_extension failed encountered when trying to use exla in a Docker container #90
Comments
Is there a reason you are trying to build XLA from source, rather than use the the precompiled binaries? We use these dockerfiles for precompilation, so those instructions should work. |
Ideally, we would prefer not to build the extension from source. I noticed that the xla gets built from source when we add exla in our dependencies. Here are the dependencies we've added along with exla:
We did not add the xla dependency in our list of dependencies, but somehow, it gets added (maybe because it's part of Nx). |
By default it will download a precompiled version. Does it print anything saying it can't use a precompiled and therefore it must compile from source? |
So you have XLA_BUILD set by any chance? |
I did not set it anywhere (.bashprofile, Dockerfile etc). Based on the README.md it is set to false by default. |
The build should trigger only when One way to check would be to add |
I did notice the image uses a rather outdated combo of Elixir and OTP, as well as an older Debian. If possible, I'd update to eliminate any possibility of the compilation being triggered by not finding the proper version/platform precompiled archive |
It still went through 🥲
|
Interesting, I don't have any idea at the moment. It would be helpful if you could minimize it into a reproducible repo, like an empty mix project with the deps and the Dockerfile :) |
I encounter xla_extension failed when I try to run exla while building a docker container. Here are some of the snippets from my Dockerfile:
I get this error after I run the Dockerfile
I only encounter this issue when trying to build a docker container. I do not encounter any issues when I run mix phx.server.
Do we have an official Dockerfile sample for cases where docker container setup is required?
The text was updated successfully, but these errors were encountered: