Skip to content

Commit 7df9eae

Browse files
authored
support latest tensorrt version (driver version 550.90.07 is required)
1 parent 170d43a commit 7df9eae

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

yolox_ros_cpp/docker/tensorrt/docker-compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
build:
66
context: .
77
args:
8-
- TENSORRT_VERSION=8.6
9-
- CUDNN_VERSION=8.8
8+
- TENSORRT_VERSION=10.1
9+
- CUDNN_VERSION=9.2
1010
- PYTHON_VERSION=3.10
1111
network_mode: host
1212
runtime: nvidia
@@ -20,4 +20,3 @@ services:
2020
working_dir: /root/ros2_ws
2121
tty: true
2222
command: bash
23-

yolox_ros_cpp/docker/tensorrt/dockerfile

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# pytorch/TensorRT/docker/Dockerfile
22
# Base image starts with CUDA
3-
ARG BASE_IMG=nvidia/cuda:12.1.1-devel-ubuntu22.04
3+
ARG BASE_IMG=nvidia/cuda:12.4.1-devel-ubuntu22.04
44
FROM ${BASE_IMG} as base
5-
ENV BASE_IMG=nvidia/cuda:12.1.1-devel-ubuntu22.04
5+
ENV BASE_IMG=nvidia/cuda:12.4.1-devel-ubuntu22.04
66

77
ARG TENSORRT_VERSION
88
ENV TENSORRT_VERSION=${TENSORRT_VERSION}
99
RUN test -n "$TENSORRT_VERSION" || (echo "No tensorrt version specified, please use --build-arg TENSORRT_VERSION=x.y to specify a version." && exit 1)
10-
ARG CUDNN_VERSION
11-
ENV CUDNN_VERSION=${CUDNN_VERSION}
12-
RUN test -n "$CUDNN_VERSION" || (echo "No cudnn version specified, please use --build-arg CUDNN_VERSION=x.y to specify a version." && exit 1)
1310

1411
ARG PYTHON_VERSION=3.10
1512
ENV PYTHON_VERSION=${PYTHON_VERSION}
@@ -34,21 +31,11 @@ RUN wget -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-instal
3431
RUN pyenv install -v ${PYTHON_VERSION}
3532
RUN pyenv global ${PYTHON_VERSION}
3633

37-
# Install CUDNN + TensorRT + dependencies
38-
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
39-
RUN mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
40-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/7fa2af80.pub
41-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 536F8F1DE80F6A35
42-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
43-
RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
44-
RUN apt-get update
45-
RUN apt-get install -y libcudnn8=${CUDNN_VERSION}* libcudnn8-dev=${CUDNN_VERSION}*
46-
34+
# Install TensorRT + dependencies
4735
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
4836
RUN add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/ /"
4937
RUN apt-get update
50-
51-
RUN apt-get install -y libnvinfer8=${TENSORRT_VERSION}.* libnvinfer-plugin8=${TENSORRT_VERSION}.* libnvinfer-dev=${TENSORRT_VERSION}.* libnvinfer-plugin-dev=${TENSORRT_VERSION}.* libnvonnxparsers8=${TENSORRT_VERSION}.* libnvonnxparsers-dev=${TENSORRT_VERSION}.* libnvparsers8=${TENSORRT_VERSION}.* libnvparsers-dev=${TENSORRT_VERSION}.*
38+
RUN TENSORRT_MAJOR_VERSION=`echo ${TENSORRT_VERSION} | cut -d '.' -f 1` && apt-get install -y tensorrt
5239

5340
ENV DEBIAN_FRONTEND=noninteractive
5441

0 commit comments

Comments
 (0)