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:
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.
You either need to run that batch file from the build tools that sets up your environment (I can’t remember it’s name… vcvarsall.bat or something like that) before compiling or open the Development Console, which is a shortcut you should have been given when you installed the build tools. There are a few of them.
If you’ve installed a recent version of the build tools on an up to date Windows with Microsoft Terminal they will appear as options in there automatically.
I presume they want you to set XLA_BUILD as an environment variable.
Hey @sehHeiden, EXLA does not support Windows at the moment. You will have a better luck using WSL, though I think then you need to install and use Livebook via CLI from within the WSL.
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 : )