Does JAX come with XLA binaries that I can use? #18496
-
I want to do some stuff with XLA in C++, but it's taking a very long time to build XLA from source. To get around this I figured I might be able to use whichever XLA binaries that my version of JAX is already using, is this possible? For context, I've installed JAX with the following command:
And my
I think |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What you want is buried inside There is a better way, which is that the XLA-PJRT runtime that JAX uses has a C API: https://github.com/openxla/xla/blob/main/xla/pjrt/c/README.md Some JAX plugins already use this API (Google TPU, Apple Metal, to name two). We are planning to shortly update JAX's NVIDIA GPU plugin to also use this API, and at that point JAX will have a build of that plugin API as a |
Beta Was this translation helpful? Give feedback.
What you want is buried inside
xla_extension.so
, but not with an interface that is useful to you most likely (since that module exposes a Python API).There is a better way, which is that the XLA-PJRT runtime that JAX uses has a C API: https://github.com/openxla/xla/blob/main/xla/pjrt/c/README.md
Some JAX plugins already use this API (Google TPU, Apple Metal, to name two). We are planning to shortly update JAX's NVIDIA GPU plugin to also use this API, and at that point JAX will have a build of that plugin API as a
.so
file.