This PR intends to remove XLA as a bzlmod and transfer it as a non bzlmod dep. This is because this module will never be upstreamed as is, so keep it private. Also, we fetch llvm-raw and stablehlo from it, which is fine. While there, dummify the various local_config XLA symbols to please the imports, as we don't use those parts in ZML itself. Closes
15 lines
586 B
Python
15 lines
586 B
Python
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
|
|
|
def repo():
|
|
git_repository(
|
|
name = "xla",
|
|
remote = "https://github.com/openxla/xla.git",
|
|
commit = "ef07e787ea1303fa2f8d8a175d24d434bfb84107",
|
|
patch_args = ["-p1"],
|
|
patches = [
|
|
"//third_party/xla:patches/0001-bazel-migration-to-bazel-8.1.1.patch",
|
|
"//third_party/xla:patches/0002-Added-FFI-handler-registration-API-to-the-FFI-PjRt.patch",
|
|
"//third_party/xla:patches/0003-Remove-unconventional-C-code-in-headers.patch",
|
|
],
|
|
)
|