2018-12-12 09:16:03 -05:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2023-02-14 21:24:27 +00:00
|
|
|
# To update XLA to a new revision,
|
2018-12-12 09:16:03 -05:00
|
|
|
# a) update URL and strip_prefix to the new git commit hash
|
|
|
|
# b) get the sha256 hash of the commit by running:
|
2023-02-14 21:24:27 +00:00
|
|
|
# curl -L https://github.com/openxla/xla/archive/<git hash>.tar.gz | sha256sum
|
2018-12-12 09:16:03 -05:00
|
|
|
# and update the sha256 with the result.
|
|
|
|
http_archive(
|
2023-02-14 21:24:27 +00:00
|
|
|
name = "xla",
|
2023-05-03 18:52:04 +00:00
|
|
|
sha256 = "12a1a9dbb3bccad1e6fca444357e2ae9ef512612fb0c627d1ac4d88667f9ecd6",
|
|
|
|
strip_prefix = "xla-61a7666906f384bf08af1eb0eef9d8ace88be484",
|
2019-02-28 20:25:09 -08:00
|
|
|
urls = [
|
2023-05-03 18:52:04 +00:00
|
|
|
"https://github.com/openxla/xla/archive/61a7666906f384bf08af1eb0eef9d8ace88be484.tar.gz",
|
2019-02-28 20:25:09 -08:00
|
|
|
],
|
2018-12-12 09:16:03 -05:00
|
|
|
)
|
|
|
|
|
2022-06-14 22:25:39 -04:00
|
|
|
# For development, one often wants to make changes to the TF repository as well
|
|
|
|
# as the JAX repository. You can override the pinned repository above with a
|
|
|
|
# local checkout by either:
|
|
|
|
# a) overriding the TF repository on the build.py command line by passing a flag
|
|
|
|
# like:
|
2023-02-14 21:24:27 +00:00
|
|
|
# python build/build.py --bazel_options=--override_repository=xla=/path/to/xla
|
2022-06-14 22:25:39 -04:00
|
|
|
# or
|
|
|
|
# b) by commenting out the http_archive above and uncommenting the following:
|
2018-12-12 09:16:03 -05:00
|
|
|
# local_repository(
|
2023-02-14 21:24:27 +00:00
|
|
|
# name = "xla",
|
|
|
|
# path = "/path/to/xla",
|
2018-12-12 09:16:03 -05:00
|
|
|
# )
|
|
|
|
|
2022-08-26 13:40:51 +00:00
|
|
|
load("//third_party/ducc:workspace.bzl", ducc = "repo")
|
|
|
|
ducc()
|
2020-10-23 14:20:06 -07:00
|
|
|
|
2023-02-14 21:24:27 +00:00
|
|
|
load("@xla//:workspace4.bzl", "xla_workspace4")
|
|
|
|
xla_workspace4()
|
2021-08-01 08:53:12 -07:00
|
|
|
|
2023-02-14 21:24:27 +00:00
|
|
|
load("@xla//:workspace3.bzl", "xla_workspace3")
|
|
|
|
xla_workspace3()
|
2021-08-01 08:53:12 -07:00
|
|
|
|
2023-02-14 21:24:27 +00:00
|
|
|
load("@xla//:workspace2.bzl", "xla_workspace2")
|
|
|
|
xla_workspace2()
|
2021-08-01 08:53:12 -07:00
|
|
|
|
2023-02-14 21:24:27 +00:00
|
|
|
load("@xla//:workspace1.bzl", "xla_workspace1")
|
|
|
|
xla_workspace1()
|
|
|
|
|
|
|
|
load("@xla//:workspace0.bzl", "xla_workspace0")
|
|
|
|
xla_workspace0()
|
|
|
|
|
|
|
|
|
|
|
|
load("//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
|
|
|
|
flatbuffers()
|