Skip to content

Commit 87f1506

Browse files
committed
Merge branch 'rebased_1.10_update' into 'release/1.0'
refactor! : Update Pytorch version to 1.10 See merge request adlsa/TRTorch!18
2 parents 884a5ac + 06533fe commit 87f1506

File tree

14 files changed

+27
-32
lines changed

14 files changed

+27
-32
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0
1+
4.2.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts")
9696
These are the following dependencies used to verify the testcases. Torch-TensorRT can work with other versions, but the tests are not guaranteed to pass.
9797

9898
- Bazel 4.0.0
99-
- Libtorch 1.9.1 (built with CUDA 11.1)
99+
- Libtorch 1.10.0 (built with CUDA 11.3)
100100
- CUDA 11.1 (10.2 on Jetson)
101101
- cuDNN 8.2
102102
- TensorRT 8.0.3.4 (TensorRT 8.0.1.6 on Jetson)

WORKSPACE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ local_repository(
4141
new_local_repository(
4242
name = "cuda",
4343
build_file = "@//third_party/cuda:BUILD",
44-
path = "/usr/local/cuda-11.1/",
44+
path = "/usr/local/cuda-11.3/",
4545
)
4646

4747
new_local_repository(
@@ -56,17 +56,17 @@ new_local_repository(
5656
http_archive(
5757
name = "libtorch",
5858
build_file = "@//third_party/libtorch:BUILD",
59-
sha256 = "db57b1023fb33768286a98ba22c44cfe03d6ed158bc2dc0ca1d4928ee5f19f60",
59+
sha256 = "190e963e739d5f7c2dcf94b3994de8fcd335706a4ebb333812ea7d8c841beb06",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shared-with-deps-1.9.1%2Bcu111.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.10.0%2Bcu113.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "5563ca53b2b5342f1ab7eef9baf308f197673663ad5b1458a031c46dd802f413",
67+
sha256 = "0996a6a4ea8bbc1137b4fb0476eeca25b5efd8ed38955218dec1b73929090053",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/cu111/libtorch-shared-with-deps-1.9.1%2Bcu111.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.10.0%2Bcu113.zip"],
7070
)
7171

7272
# Download these tarballs manually from the NVIDIA website

core/lowering/register_trt_placeholder_ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RegisterOperators trt_placeholder_ops_reg({
1212
/// to a TRT constant Tensor
1313
Operator(
1414
"trt::const(Tensor val) -> Tensor",
15-
[](Stack* stack) {},
15+
[](Stack& stack) {/*noop*/},
1616
aliasAnalysisFromSchema()),
1717
});
1818

docker/WORKSPACE.docs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ new_local_repository(
5252
http_archive(
5353
name = "libtorch",
5454
build_file = "@//third_party/libtorch:BUILD",
55-
sha256 = "db57b1023fb33768286a98ba22c44cfe03d6ed158bc2dc0ca1d4928ee5f19f60",
55+
sha256 = "190e963e739d5f7c2dcf94b3994de8fcd335706a4ebb333812ea7d8c841beb06",
5656
strip_prefix = "libtorch",
57-
urls = ["https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shared-with-deps-1.9.1%2Bcu111.zip"],
57+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.10.0%2Bcu113.zip"],
5858
)
5959

6060
http_archive(
6161
name = "libtorch_pre_cxx11_abi",
6262
build_file = "@//third_party/libtorch:BUILD",
63-
sha256 = "5563ca53b2b5342f1ab7eef9baf308f197673663ad5b1458a031c46dd802f413",
63+
sha256 = "0996a6a4ea8bbc1137b4fb0476eeca25b5efd8ed38955218dec1b73929090053",
6464
strip_prefix = "libtorch",
65-
urls = ["https://download.pytorch.org/libtorch/cu111/libtorch-shared-with-deps-1.9.1%2Bcu111.zip"],
65+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.10.0%2Bcu113.zip"],
6666
)
6767

6868
####################################################################################
@@ -99,4 +99,3 @@ pip3_import(
9999

100100
load("@py_test_deps//:requirements.bzl", "pip_install")
101101
pip_install()
102-

docsrc/tutorials/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Torch-TensorRT is built with Bazel, so begin by installing it.
5252

5353
.. code-block:: shell
5454
55-
export BAZEL_VERSION=$(cat <PATH_TO_TRTORCH_ROOT>/.bazelversion)
55+
export BAZEL_VERSION=$(cat <PATH_TO_TORCHTRT_ROOT>/.bazelversion)
5656
mkdir bazel
5757
cd bazel
5858
curl -fSsL -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-dist.zip
@@ -66,7 +66,7 @@ the CUDA driver installed and the container must have CUDA)
6666

6767
The correct LibTorch version will be pulled down for you by bazel.
6868

69-
NOTE: For best compatability with official PyTorch, use torch==1.9.1+cuda111, TensorRT 8.0 and cuDNN 8.2 for CUDA 11.1 however Torch-TensorRT itself supports
69+
NOTE: For best compatability with official PyTorch, use torch==1.10.0+cuda113, TensorRT 8.0 and cuDNN 8.2 for CUDA 11.3 however Torch-TensorRT itself supports
7070
TensorRT and cuDNN for CUDA versions other than 11.1 for usecases such as using NVIDIA compiled distributions of PyTorch that use other versions of CUDA
7171
e.g. aarch64 or custom compiled version of PyTorch.
7272

@@ -237,7 +237,7 @@ Install or compile a build of PyTorch/LibTorch for aarch64
237237

238238
NVIDIA hosts builds the latest release branch for Jetson here:
239239

240-
https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-9-0-now-available/72048
240+
https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-10-now-available/72048
241241

242242

243243
Enviorment Setup
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
torch>=1.9.1
1+
torch>=1.10.0
22
tensorboard>=1.14.0
33
pytorch-quantization --extra-index-url https://pypi.ngc.nvidia.com

py/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM pytorch/manylinux-cuda111
1+
FROM pytorch/manylinux-cuda113
22

33
RUN yum install -y ninja-build
44

5-
RUN wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo \
5+
RUN wget --no-check-certificate https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo \
66
&& mv vbatts-bazel-epel-7.repo /etc/yum.repos.d/
77

88
RUN yum install -y bazel4 --nogpgcheck

py/build_whl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Example usage: docker run -it -v$(pwd)/..:/workspace/TRTorch build_trtorch_wheel /bin/bash /workspace/TRTorch/py/build_whl.sh
44

5-
cd /workspace/TRTorch/py
5+
cd /workspace/Torch-TensorRT/py
66

77
export CXX=g++
88

py/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-f https://download.pytorch.org/whl/torch_stable.html
2-
torch==1.9.1+cu111
3-
pybind11==2.6.2
2+
torch==1.10.0+cu113
3+
pybind11==2.6.2

0 commit comments

Comments
 (0)