Geoffrey Martin-Noble | 15545b4 | 2019-11-09 16:40:38 -0800 | [diff] [blame] | 1 | # Copyright 2019 Google LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Stella Laurenzo | 1128d50 | 2019-10-07 14:34:41 -0700 | [diff] [blame] | 15 | # Workspace file for the IREE project. |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 16 | # buildozer: disable=positional-args |
| 17 | |
| 18 | workspace(name = "iree_core") |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 19 | |
| 20 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Scott Todd | 69655bc | 2020-11-30 16:28:52 -0800 | [diff] [blame^] | 21 | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 22 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 23 | ############################################################################### |
Geoffrey Martin-Noble | 8602997 | 2020-01-28 18:27:03 -0800 | [diff] [blame] | 24 | # Bazel rules. |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 25 | http_archive( |
Geoffrey Martin-Noble | 8602997 | 2020-01-28 18:27:03 -0800 | [diff] [blame] | 26 | name = "rules_cc", |
| 27 | sha256 = "cf3b76a90c86c0554c5b10f4b160f05af71d252026b71362c4674e2fb9936cf9", |
| 28 | strip_prefix = "rules_cc-01d4a48911d5e7591ecb1c06d3b8af47fe872371", |
| 29 | urls = [ |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 30 | "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_cc/archive/01d4a48911d5e7591ecb1c06d3b8af47fe872371.zip", |
| 31 | "https://github.com/bazelbuild/rules_cc/archive/01d4a48911d5e7591ecb1c06d3b8af47fe872371.zip", |
Geoffrey Martin-Noble | 8602997 | 2020-01-28 18:27:03 -0800 | [diff] [blame] | 32 | ], |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 33 | ) |
| 34 | |
Geoffrey Martin-Noble | 8602997 | 2020-01-28 18:27:03 -0800 | [diff] [blame] | 35 | http_archive( |
| 36 | name = "rules_python", |
Geoffrey Martin-Noble | 8602997 | 2020-01-28 18:27:03 -0800 | [diff] [blame] | 37 | sha256 = "aa96a691d3a8177f3215b14b0edc9641787abaaa30363a080165d06ab65e1161", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 38 | url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.1/rules_python-0.0.1.tar.gz", |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 39 | ) |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 40 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 41 | load("@rules_python//python:repositories.bzl", "py_repositories") |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 42 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 43 | py_repositories() |
Geoffrey Martin-Noble | 2c8b5a4 | 2019-12-11 11:30:39 -0800 | [diff] [blame] | 44 | |
| 45 | ############################################################################### |
| 46 | |
| 47 | ############################################################################### |
| 48 | # bazel toolchains rules for remote execution (https://releases.bazel.build/bazel-toolchains.html). |
| 49 | http_archive( |
| 50 | name = "bazel_toolchains", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 51 | # Workaround for b/150158570. This patch needs to be updated if the bazel_toolchains version is updated. |
| 52 | patches = ["//build_tools/bazel:bazel_toolchains.patch"], |
Geoffrey Martin-Noble | 7d50357 | 2020-07-13 16:29:47 -0700 | [diff] [blame] | 53 | sha256 = "6d54b26a58457f9fca2e54f053402061ffe73e3b909b8f6bf6dedb2a3db093ea", |
| 54 | strip_prefix = "bazel-toolchains-3.3.2", |
Geoffrey Martin-Noble | 2c8b5a4 | 2019-12-11 11:30:39 -0800 | [diff] [blame] | 55 | urls = [ |
Geoffrey Martin-Noble | 7d50357 | 2020-07-13 16:29:47 -0700 | [diff] [blame] | 56 | "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.3.2/bazel-toolchains-3.3.2.tar.gz", |
| 57 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.3.2/bazel-toolchains-3.3.2.tar.gz", |
Geoffrey Martin-Noble | 2c8b5a4 | 2019-12-11 11:30:39 -0800 | [diff] [blame] | 58 | ], |
| 59 | ) |
| 60 | |
Jakob Buchgraber | ff42ec3 | 2020-03-30 15:32:29 -0700 | [diff] [blame] | 61 | load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") |
phoenix-meadowlark | cc63374 | 2020-05-14 16:17:39 -0700 | [diff] [blame] | 62 | |
| 63 | rbe_autoconfig( |
| 64 | name = "rbe_default", |
Geoffrey Martin-Noble | 7d50357 | 2020-07-13 16:29:47 -0700 | [diff] [blame] | 65 | base_container_digest = "sha256:1a8ed713f40267bb51fe17de012fa631a20c52df818ccb317aaed2ee068dfc61", |
Phoenix Meadowlark | 539c0f1 | 2020-11-17 09:37:34 -0800 | [diff] [blame] | 66 | digest = "sha256:d6d895294076b5289e81489f664656211c41656cffe7c448ecb5c6f54f045974", |
phoenix-meadowlark | cc63374 | 2020-05-14 16:17:39 -0700 | [diff] [blame] | 67 | registry = "gcr.io", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 68 | repository = "iree-oss/rbe-toolchain", |
Geoffrey Martin-Noble | 7d50357 | 2020-07-13 16:29:47 -0700 | [diff] [blame] | 69 | use_checked_in_confs = "Force", |
phoenix-meadowlark | cc63374 | 2020-05-14 16:17:39 -0700 | [diff] [blame] | 70 | ) |
Geoffrey Martin-Noble | 2c8b5a4 | 2019-12-11 11:30:39 -0800 | [diff] [blame] | 71 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 72 | ############################################################################### |
| 73 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 74 | ############################################################################### |
| 75 | # io_bazel_rules_closure |
| 76 | # This is copied from https://github.com/tensorflow/tensorflow/blob/v2.0.0-alpha0/WORKSPACE. |
| 77 | # Dependency of: |
| 78 | # TensorFlow (boilerplate for tf_workspace(), apparently) |
| 79 | http_archive( |
| 80 | name = "io_bazel_rules_closure", |
| 81 | sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", |
| 82 | strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149", |
| 83 | urls = [ |
| 84 | "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", |
| 85 | "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13 |
| 86 | ], |
| 87 | ) |
| 88 | ############################################################################### |
| 89 | |
| 90 | ############################################################################### |
| 91 | # Skylib |
| 92 | # Dependency of: |
| 93 | # TensorFlow |
| 94 | http_archive( |
| 95 | name = "bazel_skylib", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 96 | sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 97 | urls = [ |
| 98 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", |
| 99 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", |
| 100 | ], |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 101 | ) |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 102 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 103 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 104 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 105 | bazel_skylib_workspace() |
| 106 | ############################################################################### |
| 107 | |
| 108 | ############################################################################### |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 109 | # llvm-project |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 110 | |
| 111 | maybe( |
| 112 | local_repository, |
| 113 | name = "llvm_bazel", |
| 114 | path = "third_party/llvm-bazel/llvm-bazel", |
| 115 | ) |
| 116 | |
| 117 | load("@llvm_bazel//:zlib.bzl", "llvm_zlib_disable") |
| 118 | |
| 119 | maybe( |
| 120 | llvm_zlib_disable, |
| 121 | name = "llvm_zlib", |
| 122 | ) |
| 123 | |
| 124 | load("@llvm_bazel//:terminfo.bzl", "llvm_terminfo_disable") |
| 125 | |
| 126 | maybe( |
| 127 | llvm_terminfo_disable, |
| 128 | name = "llvm_terminfo", |
| 129 | ) |
| 130 | |
| 131 | load("@llvm_bazel//:configure.bzl", "llvm_configure") |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 132 | |
| 133 | maybe( |
| 134 | llvm_configure, |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 135 | name = "llvm-project", |
Geoffrey Martin-Noble | 10b3e1e | 2020-10-27 10:04:35 -0700 | [diff] [blame] | 136 | src_path = "third_party/llvm-project", |
| 137 | src_workspace = "@iree_core//:WORKSPACE", |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 138 | ) |
| 139 | ############################################################################### |
| 140 | |
| 141 | ############################################################################### |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 142 | # Bootstrap TensorFlow. |
| 143 | # Note that we ultimately would like to avoid doing this at the top level like |
Scott Todd | 13aeb4b | 2020-01-24 15:14:54 -0800 | [diff] [blame] | 144 | # this but need to unbundle some of the deps from the tensorflow repo first. |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 145 | # In the mean-time: we're sorry. |
| 146 | # TODO(laurenzo): Come up with a way to make this optional. Also, see if we can |
| 147 | # get the TensorFlow tf_repositories() rule to use maybe() so we can provide |
| 148 | # local overrides safely. |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 149 | maybe( |
| 150 | local_repository, |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 151 | name = "org_tensorflow", |
| 152 | path = "third_party/tensorflow", |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 153 | ) |
| 154 | |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 155 | # Import all of the tensorflow dependencies. |
| 156 | load("@org_tensorflow//tensorflow:workspace.bzl", "tf_repositories") |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 157 | ############################################################################### |
| 158 | |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 159 | ############################################################################### |
| 160 | # Autoconfigure native build repo for python. |
Marius Brehler | b18c388 | 2020-01-14 17:06:28 -0800 | [diff] [blame] | 161 | load("//bindings/python/build_tools/python:configure.bzl", "python_configure") |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 162 | |
| 163 | # TODO(laurenzo): Scoping to "iree" to avoid conflicts with other things that |
| 164 | # take an opinion until we can isolate. |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 165 | maybe( |
| 166 | python_configure, |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 167 | name = "iree_native_python", |
| 168 | ) |
| 169 | ############################################################################### |
| 170 | |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 171 | ############################################################################### |
| 172 | # Find and configure the Vulkan SDK, if installed. |
| 173 | load("//build_tools/third_party/vulkan_sdk:repo.bzl", "vulkan_sdk_setup") |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 174 | |
| 175 | maybe( |
| 176 | vulkan_sdk_setup, |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 177 | name = "vulkan_sdk", |
| 178 | ) |
| 179 | ############################################################################### |
| 180 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 181 | maybe( |
| 182 | local_repository, |
| 183 | name = "com_google_absl", |
| 184 | path = "third_party/abseil-cpp", |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 185 | ) |
| 186 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 187 | maybe( |
| 188 | local_repository, |
| 189 | name = "com_google_ruy", |
| 190 | path = "third_party/ruy", |
Geoffrey Martin-Noble | 1604647 | 2020-03-27 14:03:37 -0700 | [diff] [blame] | 191 | ) |
| 192 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 193 | maybe( |
| 194 | local_repository, |
| 195 | name = "com_google_googletest", |
| 196 | path = "third_party/googletest", |
Stella Laurenzo | e7d9e88 | 2019-10-10 14:32:38 -0700 | [diff] [blame] | 197 | ) |
| 198 | |
Ben Vanik | 71527c2 | 2020-07-17 13:09:57 -0700 | [diff] [blame] | 199 | maybe( |
| 200 | new_local_repository, |
| 201 | name = "com_github_dvidelabs_flatcc", |
| 202 | build_file = "build_tools/third_party/flatcc/BUILD.overlay", |
| 203 | path = "third_party/flatcc", |
| 204 | ) |
| 205 | |
Scott Todd | 6152a70 | 2020-03-23 16:47:25 -0700 | [diff] [blame] | 206 | # TODO(scotttodd): TensorFlow is squatting on the vulkan_headers repo name, so |
| 207 | # we use a temporary one until resolved. Theirs is set to an outdated version. |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 208 | maybe( |
| 209 | new_local_repository, |
Scott Todd | 6152a70 | 2020-03-23 16:47:25 -0700 | [diff] [blame] | 210 | name = "iree_vulkan_headers", |
Stella Laurenzo | 7f6af20 | 2019-10-09 16:33:24 -0700 | [diff] [blame] | 211 | build_file = "build_tools/third_party/vulkan_headers/BUILD.overlay", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 212 | path = "third_party/vulkan_headers", |
Stella Laurenzo | 7f6af20 | 2019-10-09 16:33:24 -0700 | [diff] [blame] | 213 | ) |
| 214 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 215 | maybe( |
| 216 | new_local_repository, |
Stella Laurenzo | 7f6af20 | 2019-10-09 16:33:24 -0700 | [diff] [blame] | 217 | name = "vulkan_memory_allocator", |
Stella Laurenzo | 7f6af20 | 2019-10-09 16:33:24 -0700 | [diff] [blame] | 218 | build_file = "build_tools/third_party/vulkan_memory_allocator/BUILD.overlay", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 219 | path = "third_party/vulkan_memory_allocator", |
Stella Laurenzo | 196ad74 | 2019-10-09 10:33:08 -0700 | [diff] [blame] | 220 | ) |
Stella Laurenzo | 5e8573b | 2019-10-10 15:31:51 -0700 | [diff] [blame] | 221 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 222 | maybe( |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 223 | local_repository, |
Stella Laurenzo | 5e8573b | 2019-10-10 15:31:51 -0700 | [diff] [blame] | 224 | name = "spirv_headers", |
| 225 | path = "third_party/spirv_headers", |
| 226 | ) |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 227 | |
| 228 | # TODO(laurenzo): TensorFlow is squatting on the pybind11 repo name, so |
| 229 | # we use a temporary one until resolved. Theirs pulls in a bunch of stuff. |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 230 | maybe( |
| 231 | new_local_repository, |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 232 | name = "iree_pybind11", |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 233 | build_file = "build_tools/third_party/pybind11/BUILD.overlay", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 234 | path = "third_party/pybind11", |
Stella Laurenzo | c4a6edf | 2019-10-17 16:59:08 -0700 | [diff] [blame] | 235 | ) |
Stella Laurenzo | 0da4af5 | 2019-10-23 12:54:53 -0700 | [diff] [blame] | 236 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 237 | maybe( |
| 238 | local_repository, |
Stella Laurenzo | 0da4af5 | 2019-10-23 12:54:53 -0700 | [diff] [blame] | 239 | name = "com_google_benchmark", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 240 | path = "third_party/benchmark", |
Scott Todd | f700355 | 2019-11-11 09:14:19 -0800 | [diff] [blame] | 241 | ) |
| 242 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 243 | maybe( |
| 244 | new_local_repository, |
| 245 | name = "sdl2", |
| 246 | build_file = "build_tools/third_party/sdl2/BUILD.overlay", |
| 247 | path = "third_party/sdl2", |
| 248 | ) |
| 249 | |
| 250 | maybe( |
| 251 | new_local_repository, |
Scott Todd | f700355 | 2019-11-11 09:14:19 -0800 | [diff] [blame] | 252 | name = "sdl2_config", |
Scott Todd | f700355 | 2019-11-11 09:14:19 -0800 | [diff] [blame] | 253 | build_file_content = """ |
| 254 | package(default_visibility = ["//visibility:public"]) |
| 255 | cc_library(name = "headers", srcs = glob(["*.h"])) |
| 256 | """, |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 257 | path = "build_tools/third_party/sdl2", |
Scott Todd | f700355 | 2019-11-11 09:14:19 -0800 | [diff] [blame] | 258 | ) |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 259 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 260 | maybe( |
| 261 | new_local_repository, |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 262 | name = "dear_imgui", |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 263 | build_file = "build_tools/third_party/dear_imgui/BUILD.overlay", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 264 | path = "third_party/dear_imgui", |
Scott Todd | 0d41620 | 2019-11-12 16:22:05 -0800 | [diff] [blame] | 265 | ) |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 266 | |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 267 | maybe( |
| 268 | new_local_repository, |
Scott Todd | d624815 | 2020-02-07 09:57:05 -0800 | [diff] [blame] | 269 | name = "renderdoc_api", |
Scott Todd | d624815 | 2020-02-07 09:57:05 -0800 | [diff] [blame] | 270 | build_file = "build_tools/third_party/renderdoc_api/BUILD.overlay", |
Geoffrey Martin-Noble | 645a88b | 2020-07-13 09:40:59 -0700 | [diff] [blame] | 271 | path = "third_party/renderdoc_api", |
Scott Todd | d624815 | 2020-02-07 09:57:05 -0800 | [diff] [blame] | 272 | ) |
| 273 | |
Ben Vanik | da79d9b | 2020-10-01 09:52:54 -0700 | [diff] [blame] | 274 | maybe( |
| 275 | new_local_repository, |
| 276 | name = "com_github_pytorch_cpuinfo", |
| 277 | build_file = "build_tools/third_party/cpuinfo/BUILD.overlay", |
| 278 | path = "third_party/cpuinfo", |
| 279 | ) |
| 280 | |
NatashaKnk | 0d7e00f | 2020-11-10 19:16:31 -0800 | [diff] [blame] | 281 | maybe( |
| 282 | new_local_repository, |
| 283 | name = "pffft", |
| 284 | build_file = "build_tools/third_party/pffft/BUILD.overlay", |
| 285 | path = "third_party/pffft", |
| 286 | ) |
| 287 | |
Thomas | 6456bfb | 2020-11-18 15:05:13 -0800 | [diff] [blame] | 288 | maybe( |
| 289 | new_local_repository, |
| 290 | name = "half", |
| 291 | build_file = "build_tools/third_party/half/BUILD.overlay", |
| 292 | path = "third_party/half", |
| 293 | ) |
| 294 | |
Phoenix Meadowlark | fef7eda | 2020-11-03 16:06:27 -0800 | [diff] [blame] | 295 | GOOGLE_RESEARCH_COMMIT = "a5213e2c92c3e87849fe417ba42786d0324e7c75" |
Phoenix Meadowlark | 4e0dfff | 2020-10-28 10:47:08 -0700 | [diff] [blame] | 296 | |
| 297 | http_archive( |
| 298 | name = "kws_streaming", |
| 299 | build_file = "@//:build_tools/third_party/kws_streaming/BUILD.overlay", |
Phoenix Meadowlark | fef7eda | 2020-11-03 16:06:27 -0800 | [diff] [blame] | 300 | sha256 = "1e3260536491840a011ee12cae4f55878ed6a0dd8fdf7d15cd768836d55cb89c", |
Phoenix Meadowlark | 4e0dfff | 2020-10-28 10:47:08 -0700 | [diff] [blame] | 301 | strip_prefix = "google-research-{}/kws_streaming".format(GOOGLE_RESEARCH_COMMIT), |
| 302 | url = "https://github.com/google-research/google-research/archive/{}.tar.gz".format(GOOGLE_RESEARCH_COMMIT), |
| 303 | ) |
| 304 | |
Stella Laurenzo | 15d8ae4 | 2020-01-03 13:52:12 -0800 | [diff] [blame] | 305 | # Bootstrap TensorFlow deps last so that ours can take precedence. |
| 306 | tf_repositories() |