Skip to content

Commit 728c580

Browse files
authored
Fix bazel query failure for oneAPI (#168)
This PR resolves a CI failure where bazelisk query "deps(//xla/...)" failed during transitive dependency evaluation due to the https://github.com/oneapi hermetic repository enforcing ONEAPI_VERSION and OS via --repo_env Another change in the sycl.BUILD fixes the syntax error
1 parent e3dadfe commit 728c580

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gpu/sycl/dist_repo.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ def _get_os(ctx):
4949
def _get_dist_key(ctx):
5050
oneapi_version = _get_oneapi_version(ctx)
5151
os_id = _get_os(ctx)
52-
if not oneapi_version or not os_id:
53-
fail("ONEAPI_VERSION and OS must be set via --repo_env for hermetic build")
52+
if not oneapi_version:
53+
oneapi_version = "2025.1"
54+
if not os_id:
55+
os_id = "ubuntu_24.10"
5456

5557
return "{}_{}".format(os_id, oneapi_version)
5658

gpu/sycl/sycl.BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
alias(
1818
name = "sycl_headers",
19-
actual = "@@oneapi//:headers"
19+
actual = "@@oneapi//:headers",
2020
visibility = ["//visibility:public"],
2121
)

0 commit comments

Comments
 (0)