sehHeiden
Install xla on livebook in windows
I want to be able to use exla in a livebook. I want to use the livebook on linux (no problem) and windows.
The question I have is how do I install xla?
From hex/github I know, that I have to install some build tools, compiler, depencies on some older versions…
The package info also states that XLA_BUILD=true has to be set? But where do I set it? How do I make sure, that xla is only compiled on windows and not on linux? I assume have to use xla instead of exla?
I tried:
Mix.install(
[
{:nx, "~>0.6.1"},
{:bumblebee, github: :"elixir-nx/bumblebee"},
{:explorer,
git: "https://github.com/elixir-explorer/explorer.git",
ref: "aef274989ab490b0a392ccd19ec24b286a8cda1c",
override: true},
{:kino_vega_lite, "~> 0.1.7"},
{:httpoison, "~> 1.8"},
{:xla, "~> 0.5.1", XLA_BUILD: true},
#{:exla, "~> 0.6.1"},
{:adbc, "~> 0.1"}
],
config: [
nx: [default_backend: EXLA.Backend]
]
)
With *exla commented out or left in.
When I commented out exla I get the error that nmake is missing. I am pretty sure I installed everything. I installed bazel 6.1.2, I already got python 3.7. I installed mysys2 visual studio build tools 2019 and microsoft viusal C++ 2015-2022 Redistributable X86.
P.S.: Can XLA 0.5.1 do all the things as exla 0.6.1? I assume not.
Marked As Solved
jonatanklosko
exla relies on xla, but you do need both. The Makefile.win in xla is outdated, so compiling explicitly would fail, but note that exla doesn’t have Makefile.win altogether, because we dropped Windows support quite some time ago as there were issues and it was mostly holding us back. We may revisit native Windows in the future, but for now WSL is the way to go : )
Also Liked
steffen.haensch
@jonatanklosko Thank you for considering my comment. Also thanks for the work you put in for the Elixir community.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








