Skip to content

Commit b4df4cf

Browse files
committed
Breaking: CUDA images: Drop TensorRT
1 parent 819ab7d commit b4df4cf

File tree

3 files changed

+0
-73
lines changed

3 files changed

+0
-73
lines changed

CUDA.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ docker build \
7676
--build-arg BUILD_ON_IMAGE=cuda/python/ver \
7777
--build-arg CUDNN_VERSION=8.9.7.29 \
7878
--build-arg CUDNN_CUDA_VERSION_MAJ_MIN=12.2 \
79-
--build-arg LIBNVINFER_VERSION=10.5.0.18 \
80-
--build-arg LIBNVINFER_CUDA_VERSION_MAJ_MIN=12.6 \
8179
--build-arg CUDA_IMAGE_FLAVOR=runtime \
8280
-t cuda/python/ver \
8381
-f cuda/latest.Dockerfile .

cuda/latest.Dockerfile

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ ARG CUDNN_CUDA_VERSION_MAJ_MIN
55
ARG CUDNN_CUDA_VERSION_MAJ_MIN_AMD64=${CUDNN_CUDA_VERSION_MAJ_MIN}
66
ARG CUDNN_CUDA_VERSION_MAJ_MIN_ARM64=${CUDNN_CUDA_VERSION_MAJ_MIN}
77

8-
ARG LIBNVINFER_VERSION
9-
ARG LIBNVINFER_VERSION_AMD64=${LIBNVINFER_VERSION}
10-
ARG LIBNVINFER_VERSION_ARM64=${LIBNVINFER_VERSION}
11-
ARG LIBNVINFER_CUDA_VERSION_MAJ_MIN
12-
ARG LIBNVINFER_CUDA_VERSION_MAJ_MIN_AMD64=${LIBNVINFER_CUDA_VERSION_MAJ_MIN}
13-
ARG LIBNVINFER_CUDA_VERSION_MAJ_MIN_ARM64=${LIBNVINFER_CUDA_VERSION_MAJ_MIN}
14-
158
ARG BUILD_ON_IMAGE
169
ARG CUDNN_VERSION_MAJ=${CUDNN_VERSION%%.*}
1710
ARG CUDNN_VERSION_MAJ=${CUDNN_VERSION_MAJ:-${CUDNN_VERSION_AMD64%%.*}}
@@ -130,11 +123,6 @@ FROM cudnn${CUDNN_VERSION_MAJ}-${CUDA_IMAGE_FLAVOR}-${TARGETARCH}
130123

131124
ARG DEBIAN_FRONTEND=noninteractive
132125

133-
ARG LIBNVINFER_VERSION_AMD64
134-
ARG LIBNVINFER_VERSION_ARM64
135-
ARG LIBNVINFER_CUDA_VERSION_MAJ_MIN_AMD64
136-
ARG LIBNVINFER_CUDA_VERSION_MAJ_MIN_ARM64
137-
138126
ARG CUDA_HOME=/usr/local/cuda
139127
ARG NVBLAS_CONFIG_FILE=/etc/nvblas.conf
140128

@@ -181,60 +169,5 @@ RUN cpuBlasLib="$(update-alternatives --query \
181169
&& apt-mark hold \
182170
${NV_CUDNN_PACKAGE_NAME} \
183171
${NV_CUDNN_DEV_PACKAGE_NAME} \
184-
## Install TensorRT
185-
&& case "$dpkgArch" in \
186-
amd64) LIBNVINFER_VERSION=$LIBNVINFER_VERSION_AMD64 LIBNVINFER_CUDA_VERSION_MAJ_MIN=$LIBNVINFER_CUDA_VERSION_MAJ_MIN_AMD64 ;; \
187-
arm64) LIBNVINFER_VERSION=$LIBNVINFER_VERSION_ARM64 LIBNVINFER_CUDA_VERSION_MAJ_MIN=$LIBNVINFER_CUDA_VERSION_MAJ_MIN_ARM64 ;; \
188-
*) echo "error: Architecture $dpkgArch unsupported"; exit 1 ;; \
189-
esac \
190-
## Install development libraries and headers
191-
## if devel-flavor of CUDA image is used
192-
&& if [ ${CUDA_IMAGE_FLAVOR} = "devel" ]; then \
193-
dev="-dev"; \
194-
if dpkg --compare-versions ${LIBNVINFER_VERSION} gt "8.6"; then \
195-
headers="-headers"; \
196-
fi; \
197-
fi \
198-
&& LIBNVINFER_VERSION_MAJ=${LIBNVINFER_VERSION%%.*} \
199-
&& CUDA_VERSION_MAJ_MIN=${LIBNVINFER_CUDA_VERSION_MAJ_MIN:-${CUDA_VERSION%.*}} \
200-
&& apt-get -y install --no-install-recommends \
201-
libnvinfer${LIBNVINFER_VERSION_MAJ}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
202-
libnvinfer${dev:-${LIBNVINFER_VERSION_MAJ}}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
203-
libnvinfer${headers}${dev:-${LIBNVINFER_VERSION_MAJ}}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
204-
libnvinfer-plugin${LIBNVINFER_VERSION_MAJ}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
205-
libnvinfer-plugin${dev:-${LIBNVINFER_VERSION_MAJ}}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
206-
libnvinfer${headers}-plugin${dev:-${LIBNVINFER_VERSION_MAJ}}=${LIBNVINFER_VERSION}-1+cuda${CUDA_VERSION_MAJ_MIN} \
207-
## Keep apt from auto upgrading the libnvinfer packages
208-
&& apt-mark hold \
209-
libnvinfer${LIBNVINFER_VERSION_MAJ} \
210-
libnvinfer${dev:-${LIBNVINFER_VERSION_MAJ}} \
211-
libnvinfer${headers}${dev:-${LIBNVINFER_VERSION_MAJ}} \
212-
libnvinfer-plugin${LIBNVINFER_VERSION_MAJ} \
213-
libnvinfer-plugin${dev:-${LIBNVINFER_VERSION_MAJ}} \
214-
libnvinfer${headers}-plugin${dev:-${LIBNVINFER_VERSION_MAJ}} \
215-
## Create symlink when only newer TensorRT libraries are available
216-
&& trtRunLib=$(ls -d /usr/lib/$(uname -m)-linux-gnu/* | \
217-
grep 'libnvinfer.so.[0-9]\+$') \
218-
&& trtPluLib=$(ls -d /usr/lib/$(uname -m)-linux-gnu/* | \
219-
grep 'libnvinfer_plugin.so.[0-9]\+$') \
220-
&& if [ "$(echo $trtRunLib | sed -n 's/.*.so.\([0-9]\+\)/\1/p')" -gt "8" ]; then \
221-
## TensorFlow versions < 2.18 expect TensorRT libraries version 8.6.1/8.6.2
222-
if [ "$dpkgArch" = "amd64" ]; then \
223-
ln -rs $trtRunLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer.so.8.6.1; \
224-
ln -rs $trtPluLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer_plugin.so.8.6.1; \
225-
fi; \
226-
if [ "$dpkgArch" = "arm64" ]; then \
227-
ln -rs $trtRunLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer.so.8.6.2; \
228-
ln -rs $trtPluLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer_plugin.so.8.6.2; \
229-
fi; \
230-
## TensorFlow versions < 2.15 expect TensorRT libraries version 8
231-
ln -rs $trtRunLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer.so.8; \
232-
ln -rs $trtPluLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer_plugin.so.8; \
233-
fi \
234-
&& if [ "$(echo $trtRunLib | sed -n 's/.*.so.\([0-9]\+\)/\1/p')" -gt "7" ]; then \
235-
## TensorFlow versions < 2.12 expect TensorRT libraries version 7
236-
ln -rs $trtRunLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer.so.7; \
237-
ln -rs $trtPluLib /usr/lib/$(uname -m)-linux-gnu/libnvinfer_plugin.so.7; \
238-
fi \
239172
## Clean up
240173
&& rm -rf /var/lib/apt/lists/*

ver/.gitlab-ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
CUDNN_VERSION_ARM64: "8.9.7.29"
77
CUDNN_CUDA_VERSION_MAJ_MIN_AMD64: "12.2"
88
CUDNN_CUDA_VERSION_MAJ_MIN_ARM64: "12.2"
9-
LIBNVINFER_VERSION_AMD64: "10.5.0.18"
10-
LIBNVINFER_VERSION_ARM64: "10.3.0.26"
11-
LIBNVINFER_CUDA_VERSION_MAJ_MIN_AMD64: "12.6"
12-
LIBNVINFER_CUDA_VERSION_MAJ_MIN_ARM64: "12.5"
139
TAG_VERSION_MAJ_MIN: "false"
1410
TAG_VERSION_MAJ: "false"
1511

0 commit comments

Comments
 (0)