Skip to content

Commit ac48de7

Browse files
gulsumgudukbayzahiqbal
authored andcommitted
Updating jaxlib BUILD file for new target and XLA commit hash (#546)
1 parent 96e8629 commit ac48de7

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

jaxlib/rocm/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ nanobind_extension(
357357
"//jaxlib:kernel_nanobind_helpers",
358358
"@local_config_rocm//rocm:hip_runtime",
359359
"@local_config_rocm//rocm:rocm_headers",
360-
"@local_config_rocm//rocm:hip",
360+
"@local_config_rocm//rocm:rocm_hip",
361361
"@nanobind",
362362
],
363363
)
@@ -475,7 +475,7 @@ nanobind_extension(
475475
"@com_google_absl//absl/status:statusor",
476476
"@com_google_absl//absl/strings:string_view",
477477
"@local_config_rocm//rocm:hip_runtime",
478-
"@local_config_rocm//rocm:hip",
478+
"@local_config_rocm//rocm:rocm_hip",
479479
"@nanobind",
480480
],
481481
)

third_party/xla/workspace.bzl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414

1515
# buildifier: disable=module-docstring
1616
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
17-
load("//third_party/xla:revision.bzl", "XLA_COMMIT", "XLA_SHA256")
17+
18+
# To update XLA to a new revision,
19+
# a) update XLA_COMMIT to the new git commit hash
20+
# b) get the sha256 hash of the commit by running:
21+
# curl -L https://github.com/ROCm/xla/archive/<git hash>.tar.gz | sha256sum
22+
# and update XLA_SHA256 with the result.
23+
24+
XLA_COMMIT = "74b4b8dedc12565e98cfb8383ae29305980eb39a"
25+
XLA_SHA256 = "5d7511b3d54fd1d22f317b3708e1467faf105f10a617980f079a162808235bf1"
1826

1927
def repo():
2028
tf_http_archive(
2129
name = "xla",
2230
sha256 = XLA_SHA256,
23-
type = "tar.gz",
24-
strip_prefix = "openxla-xla-{commit}".format(commit = XLA_COMMIT[:7]),
25-
# We use an automated tool to update the revision.bzl file. GitHub prohibits the crawling of
26-
# web links (`/archive/`) links so we use the GitHub API endpoint to get the tarball
27-
# instead.
28-
urls = tf_mirror_urls("https://api.github.com/repos/openxla/xla/tarball/{commit}".format(commit = XLA_COMMIT)),
31+
strip_prefix = "xla-{commit}".format(commit = XLA_COMMIT),
32+
urls = tf_mirror_urls("https://github.com/ROCm/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)),
33+
patch_file = [],
2934
)
3035

3136
# For development, one often wants to make changes to the TF repository as well

0 commit comments

Comments
 (0)