@@ -46,7 +46,7 @@ new_local_repository(
4646
4747# To build PyTorch/XLA with a new revison of OpenXLA, update the xla_hash to
4848# the openxla git commit hash and note the date of the commit.
49- xla_hash = '3d5ece64321630dade7ff733ae1353fc3c83d9cc ' # Committed on 2025-06-17 .
49+ xla_hash = '92f7b5952dd585c5be17c9a5caad27407005b513 ' # Committed on 2025-08-15 .
5050
5151http_archive (
5252 name = "xla" ,
@@ -58,7 +58,7 @@ http_archive(
5858 patches = [
5959 "//openxla_patches:gpu_nvml.diff" ,
6060 "//openxla_patches:gpu_race_condition.diff" ,
61- "//openxla_patches:count_down .diff" ,
61+ "//openxla_patches:no_fortify .diff" ,
6262 ],
6363 strip_prefix = "xla-" + xla_hash ,
6464 urls = [
@@ -81,6 +81,19 @@ http_archive(
8181# path = "/path/to/openxla",
8282# )
8383
84+ # Initialize OpenXLA's external dependencies. There is an specific order
85+ # which those dependencies are initialized, because for bazel it's the
86+ # first definition that takes precedence.
87+ # We follow what openxla/xla does exactly:
88+ # https://github.com/openxla/xla/blob/main/WORKSPACE#L37
89+ load ("@xla//:workspace4.bzl" , "xla_workspace4" )
90+
91+ xla_workspace4 ()
92+
93+ load ("@xla//:workspace3.bzl" , "xla_workspace3" )
94+
95+ xla_workspace3 ()
96+
8497# Initialize hermetic Python
8598load ("@xla//third_party/py:python_init_rules.bzl" , "python_init_rules" )
8699
@@ -115,14 +128,6 @@ install_deps()
115128
116129
117130
118- # Initialize OpenXLA's external dependencies.
119- load ("@xla//:workspace4.bzl" , "xla_workspace4" )
120-
121- xla_workspace4 ()
122-
123- load ("@xla//:workspace3.bzl" , "xla_workspace3" )
124-
125- xla_workspace3 ()
126131
127132load ("@xla//:workspace2.bzl" , "xla_workspace2" )
128133
0 commit comments