forked from openxla/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkspace1.bzl
More file actions
45 lines (39 loc) · 1.88 KB
/
Copy pathworkspace1.bzl
File metadata and controls
45 lines (39 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2026 The OpenXLA Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
load("@grpc//bazel:grpc_deps.bzl", "grpc_deps")
load("@rules_cc//cc:extensions.bzl", "compatibility_proxy_repo")
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
load("//third_party/llvm:setup.bzl", "llvm_setup")
# buildifier: disable=unnamed-macro
def workspace():
"""Loads a set of TensorFlow dependencies in a WORKSPACE file."""
llvm_setup(name = "llvm-project")
native.register_toolchains("@local_config_python//:py_toolchain")
rules_pkg_dependencies()
compatibility_proxy_repo()
tf_http_archive(
name = "bazel_toolchains",
sha256 = "294cdd859e57fcaf101d4301978c408c88683fbc46fbc1a3829da92afbea55fb",
strip_prefix = "bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658",
urls = tf_mirror_urls(
"https://github.com/bazelbuild/bazel-toolchains/archive/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz",
),
)
grpc_deps()
# Alias so it can be loaded without assigning to a different symbol to prevent
# shadowing previous loads and trigger a buildifier warning.
xla_workspace1 = workspace