Skip to content

Commit 6517ad5

Browse files
committed
chore: Upgrade bazel version
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 272a9c7 commit 6517ad5

File tree

5 files changed

+13
-23
lines changed

5 files changed

+13
-23
lines changed

.bazelversion

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

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN rm -rf /opt/pytorch/torch_tensorrt /usr/bin/bazel
99

1010
ARG ARCH="x86_64"
1111
ARG TARGETARCH="amd64"
12-
ARG BAZEL_VERSION=4.2.1
12+
ARG BAZEL_VERSION=5.1.1
1313

1414
RUN [[ "$TARGETARCH" == "amd64" ]] && ARCH="x86_64" || ARCH="${TARGETARCH}" \
1515
&& wget -q https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-${ARCH} -O /usr/bin/bazel \

docker/Dockerfile.docs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM nvcr.io/nvidia/tensorrt:22.01-py3
33
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
44
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
55

6-
RUN apt-get update && apt-get install -y bazel-4.2.1 clang-format-9 libjpeg9 libjpeg9-dev
7-
RUN ln -s /usr/bin/bazel-4.2.1 /usr/bin/bazel
6+
RUN apt-get update && apt-get install -y bazel-5.1.1 clang-format-9 libjpeg9 libjpeg9-dev
7+
RUN ln -s /usr/bin/bazel-5.1.1 /usr/bin/bazel
88
RUN ln -s $(which clang-format-9) /usr/bin/clang-format
99

1010
# Workaround for bazel expecting both static and shared versions, we only use shared libraries inside container

docker/WORKSPACE.docs

Lines changed: 8 additions & 18 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 = "190e963e739d5f7c2dcf94b3994de8fcd335706a4ebb333812ea7d8c841beb06",
55+
sha256 = "8d9e829ce9478db4f35bdb7943308cf02e8a2f58cf9bb10f742462c1d57bf287",
5656
strip_prefix = "libtorch",
57-
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.10.0%2Bcu113.zip"],
57+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcu113.zip"],
5858
)
5959

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

6868
####################################################################################
@@ -84,18 +84,8 @@ new_local_repository(
8484
#########################################################################
8585
# Testing Dependencies (optional - comment out on aarch64)
8686
#########################################################################
87-
pip3_import(
88-
name = "torch_tensorrt_py_deps",
89-
requirements = "//py:requirements.txt"
90-
)
91-
92-
load("@torch_tensorrt_py_deps//:requirements.bzl", "pip_install")
93-
pip_install()
94-
95-
pip3_import(
96-
name = "py_test_deps",
97-
requirements = "//tests/py:requirements.txt"
98-
)
9987

100-
load("@py_test_deps//:requirements.bzl", "pip_install")
101-
pip_install()
88+
pip_install(
89+
name = "pylinter_deps",
90+
requirements = "//tools/linter:requirements.txt",
91+
)

docker/setup_nox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
post=${1:-""}
88

99
# fetch bazel executable
10-
BAZEL_VERSION=4.2.1
10+
BAZEL_VERSION=5.1.1
1111
ARCH=$(uname -m)
1212
if [[ "$ARCH" == "aarch64" ]]; then ARCH="arm64"; fi
1313
wget -q https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-linux-${ARCH} -O /usr/bin/bazel

0 commit comments

Comments
 (0)