Skip to content

Commit eb9d2a0

Browse files
committed
chore!: Updating dependency versions to TensorRT 7.1, cuDNN 8.0,
Libtorch 1.5.1 and bazel 3.3.1 Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent bee8003 commit eb9d2a0

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

Diff for: .bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.3.1

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts")
7272
7373
### Dependencies
7474

75-
- Bazel 3.2.0
76-
- Libtorch 1.5.0
75+
- Bazel 3.3.1
76+
- Libtorch 1.5.1
7777
- CUDA 10.2
78-
- cuDNN 7.6.5
79-
- TensorRT 7.0.0
78+
- cuDNN 8.0.1
79+
- TensorRT 7.1.3
8080

8181
## Prebuilt Binaries and Wheel files
8282

Diff for: WORKSPACE

+11-11
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ http_archive(
5353
name = "libtorch",
5454
build_file = "@//third_party/libtorch:BUILD",
5555
strip_prefix = "libtorch",
56-
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.0.zip"],
57-
sha256 = "0efdd4e709ab11088fa75f0501c19b0e294404231442bab1d1fb953924feb6b5"
56+
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.1.zip"],
57+
sha256 = "cf0691493d05062fe3239cf76773bae4c5124f4b039050dbdd291c652af3ab2a"
5858
)
5959

6060
http_archive(
6161
name = "libtorch_pre_cxx11_abi",
6262
build_file = "@//third_party/libtorch:BUILD",
6363
strip_prefix = "libtorch",
64-
sha256 = "ea8de17c5f70015583f3a7a43c7a5cdf91a1d4bd19a6a7bc11f074ef6cd69e27",
65-
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.5.0.zip"],
64+
sha256 = "818977576572eadaf62c80434a25afe44dbaa32ebda3a0919e389dcbe74f8656",
65+
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.5.1.zip"],
6666
)
6767

6868
# Download these tarballs manually from the NVIDIA website
@@ -71,29 +71,29 @@ http_archive(
7171

7272
http_archive(
7373
name = "cudnn",
74-
urls = ["https://developer.nvidia.com/compute/machine-learning/cudnn/secure/7.6.5.32/Production/10.2_20191118/cudnn-10.2-linux-x64-v7.6.5.32.tgz"],
74+
urls = ["https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.0.1.13/10.2_20200626/cudnn-10.2-linux-x64-v8.0.1.13.tgz"],
7575
build_file = "@//third_party/cudnn/archive:BUILD",
76-
sha256 = "600267f2caaed2fd58eb214ba669d8ea35f396a7d19b94822e6b36f9f7088c20",
76+
sha256 = "0c106ec84f199a0fbcf1199010166986da732f9b0907768c9ac5ea5b120772db",
7777
strip_prefix = "cuda"
7878
)
7979

8080
http_archive(
8181
name = "tensorrt",
82-
urls = ["https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.0/7.0.0.11/tars/TensorRT-7.0.0.11.Ubuntu-18.04.x86_64-gnu.cuda-10.2.cudnn7.6.tar.gz"],
82+
urls = ["https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.1/tars/TensorRT-7.1.3.4.Ubuntu-18.04.x86_64-gnu.cuda-10.2.cudnn8.0.tar.gz"],
8383
build_file = "@//third_party/tensorrt/archive:BUILD",
84-
sha256 = "c7d73b2585b18aae68b740249efa8c8ba5ae852abe9a023720595432a8eb4efd",
85-
strip_prefix = "TensorRT-7.0.0.11"
84+
sha256 = "9205bed204e2ae7aafd2e01cce0f21309e281e18d5bfd7172ef8541771539d41",
85+
strip_prefix = "TensorRT-7.1.3.4"
8686
)
8787

8888
####################################################################################
8989
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
9090
####################################################################################
9191

92-
# NOTE: In the case you are using just the pre-cxx11-abi path or just the cxx11 abi path
92+
# NOTE: In the case you are using just the pre-cxx11-abi path or just the cxx11 abi path
9393
# with your local libtorch, just point deps at the same path to satisfy bazel.
9494

9595
# NOTE: NVIDIA's aarch64 PyTorch (python) wheel file uses the CXX11 ABI unlike PyTorch's standard
96-
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
96+
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
9797
# for both versions here and do not use --config=pre-cxx11-abi
9898

9999
#new_local_repository(

Diff for: third_party/cudnn/archive/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package(default_visibility = ["//visibility:public"])
22

33
cc_library(
44
name = "cudnn_headers",
5-
hdrs = ["include/cudnn.h"] + glob(["include/cudnn+.h"]),
5+
hdrs = glob(["include/cudnn*.h"]),
66
includes = ["include/"],
77
visibility = ["//visibility:private"],
88
)
99

1010
cc_import(
1111
name = "cudnn_lib",
12-
shared_library = "lib64/libcudnn.so.7.6.5",
12+
shared_library = "lib64/libcudnn.so",
1313
visibility = ["//visibility:private"],
1414
)
1515

Diff for: third_party/cudnn/local/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cc_import(
1919
name = "cudnn_lib",
2020
shared_library = select({
2121
":aarch64_linux": "lib/aarch64-linux-gnu/libcudnn.so",
22-
"//conditions:default": "lib/x86_64-linux-gnu/libcudnn.so.7.6.5",
22+
"//conditions:default": "lib/x86_64-linux-gnu/libcudnn.so",
2323
}),
2424
visibility = ["//visibility:private"],
2525
)

Diff for: third_party/tensorrt/archive/BUILD

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cc_library(
1414

1515
cc_import(
1616
name = "nvinfer_lib",
17-
shared_library = "lib/libnvinfer.so.7.0.0",
17+
shared_library = "lib/libnvinfer.so",
1818
visibility = ["//visibility:private"],
1919
)
2020

@@ -34,7 +34,7 @@ cc_library(
3434

3535
cc_import(
3636
name = "nvparsers_lib",
37-
shared_library = "lib/libnvparsers.so.7.0.0",
37+
shared_library = "lib/libnvparsers.so",
3838
visibility = ["//visibility:private"],
3939
)
4040

@@ -66,7 +66,7 @@ cc_library(
6666

6767
cc_import(
6868
name = "nvonnxparser_lib",
69-
shared_library = "lib/libnvonnxparser.so.7.0.0",
69+
shared_library = "lib/libnvonnxparser.so",
7070
visibility = ["//visibility:private"],
7171
)
7272

@@ -95,7 +95,7 @@ cc_library(
9595

9696
cc_import(
9797
name = "nvonnxparser_runtime_lib",
98-
shared_library = "lib/libnvonnxparser_runtime.so.7.0.0",
98+
shared_library = "lib/libnvonnxparser_runtime.so",
9999
visibility = ["//visibility:public"],
100100
)
101101

@@ -120,7 +120,7 @@ cc_library(
120120

121121
cc_import(
122122
name = "nvcaffeparser_lib",
123-
shared_library = "lib/libnvcaffe_parsers.so.7.0.0",
123+
shared_library = "lib/libnvcaffe_parsers.so",
124124
visibility = ["//visibility:private"],
125125
)
126126

@@ -145,7 +145,7 @@ cc_library(
145145

146146
cc_import(
147147
name = "nvinferplugin_lib",
148-
shared_library = "lib/libnvinfer_plugin.so.7.0.0",
148+
shared_library = "lib/libnvinfer_plugin.so",
149149
visibility = ["//visibility:private"],
150150
)
151151

0 commit comments

Comments
 (0)