|
1 | 1 | workspace(name = "Torch-TensorRT")
|
2 | 2 |
|
3 |
| -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
4 | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
5 | 4 |
|
6 | 5 | http_archive(
|
7 | 6 | name = "rules_python",
|
8 |
| - sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f", |
9 |
| - url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz", |
| 7 | + sha256 = "863ba0fa944319f7e3d695711427d9ad80ba92c6edd0b7c7443b84e904689539", |
| 8 | + strip_prefix = "rules_python-0.22.0", |
| 9 | + url = "https://github.com/bazelbuild/rules_python/releases/download/0.22.0/rules_python-0.22.0.tar.gz", |
10 | 10 | )
|
11 | 11 |
|
12 |
| -load("@rules_python//python:pip.bzl", "pip_install") |
| 12 | +load("@rules_python//python:repositories.bzl", "py_repositories") |
| 13 | + |
| 14 | +py_repositories() |
13 | 15 |
|
14 | 16 | http_archive(
|
15 | 17 | name = "rules_pkg",
|
16 |
| - sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d", |
| 18 | + sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8", |
17 | 19 | urls = [
|
18 |
| - "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz", |
19 |
| - "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz", |
| 20 | + "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz", |
| 21 | + "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz", |
20 | 22 | ],
|
21 | 23 | )
|
22 | 24 |
|
23 | 25 | load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
|
24 | 26 |
|
25 | 27 | rules_pkg_dependencies()
|
26 | 28 |
|
27 |
| -git_repository( |
| 29 | +http_archive( |
28 | 30 | name = "googletest",
|
29 |
| - commit = "703bd9caab50b139428cea1aaff9974ebee5742e", |
30 |
| - remote = "https://github.com/google/googletest", |
31 |
| - shallow_since = "1570114335 -0400", |
| 31 | + sha256 = "755f9a39bc7205f5a0c428e920ddad092c33c8a1b46997def3f1d4a82aded6e1", |
| 32 | + strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015", |
| 33 | + urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"], |
32 | 34 | )
|
33 | 35 |
|
34 | 36 | # External dependency for torch_tensorrt if you already have precompiled binaries.
|
@@ -71,7 +73,7 @@ http_archive(
|
71 | 73 | http_archive(
|
72 | 74 | name = "cudnn",
|
73 | 75 | build_file = "@//third_party/cudnn/archive:BUILD",
|
74 |
| - sha256 = "36fff137153ef73e6ee10bfb07f4381240a86fb9fb78ce372414b528cbab2293", |
| 76 | + sha256 = "62046476076d1b455fb13fb78b38d3496bacafbfdbb0494fb3392240a04466ea", |
75 | 77 | strip_prefix = "cudnn-linux-x86_64-8.8.0.121_cuda11-archive",
|
76 | 78 | urls = [
|
77 | 79 | "https://developer.download.nvidia.com/compute/cudnn/secure/8.8.0/local_installers/11.8/cudnn-linux-x86_64-8.8.0.121_cuda11-archive.tar.xz",
|
@@ -127,7 +129,13 @@ http_archive(
|
127 | 129 | # Development Dependencies (optional - comment out on aarch64)
|
128 | 130 | #########################################################################
|
129 | 131 |
|
130 |
| -pip_install( |
| 132 | +load("@rules_python//python:pip.bzl", "pip_parse") |
| 133 | + |
| 134 | +pip_parse( |
131 | 135 | name = "devtools_deps",
|
132 | 136 | requirements = "//:requirements-dev.txt",
|
133 | 137 | )
|
| 138 | + |
| 139 | +load("@devtools_deps//:requirements.bzl", "install_deps") |
| 140 | + |
| 141 | +install_deps() |
0 commit comments