Skip to content

Commit 33ba8b2

Browse files
committed
chore: updates
1 parent f9cf75a commit 33ba8b2

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

packaging/pre_build_script.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
python3 -m pip install pyyaml
55
yum install -y ninja-build gettext
66
TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
7-
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo
8-
yum check-update
9-
yum install tensorrt-${TRT_VERSION}
7+
wget -P /opt/torch-tensorrt-builds/ https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.0/TensorRT-10.0.0.6.Linux.x86_64-gnu.cuda-12.4.tar.gz
8+
tar -xvzf /opt/torch-tensorrt-builds/TensorRT-10.0.0.6.Linux.x86_64-gnu.cuda-12.4.tar.gz -C /opt/torch-tensorrt-builds/
9+
export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
1010
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64 \
1111
&& mv bazelisk-linux-amd64 /usr/bin/bazel \
1212
&& chmod +x /usr/bin/bazel

toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel.tmpl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,11 @@ http_archive(
6868
urls = ["https://download.pytorch.org/libtorch/test/cu121/libtorch-shared-with-deps-2.3.0%2Bcu121.zip"],
6969
)
7070

71-
####################################################################################
72-
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
73-
####################################################################################
74-
75-
new_local_repository(
76-
name = "tensorrt",
77-
path = "/usr/",
78-
build_file = "@//third_party/tensorrt/local:BUILD"
71+
http_archive(
72+
name = "tensorrt",
73+
urls = ["file:////opt/torch-tensorrt-builds/TensorRT-10.0.0.6.Linux.x86_64-gnu.cuda-12.4.tar.gz",],
74+
build_file = "@//third_party/tensorrt/archive:BUILD",
75+
strip_prefix = "TensorRT-10.0.0.6"
7976
)
8077

8178
# #########################################################################

0 commit comments

Comments
 (0)