Skip to content

Commit fb31f7f

Browse files
committed
tensorrt version
1 parent 8f08d2e commit fb31f7f

File tree

5 files changed

+7
-543
lines changed

5 files changed

+7
-543
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ FROM nvidia/cuda:${NVIDIA_CONTAINER_TAG} AS gpu-base
1414
ARG ROS_DISTRO
1515
ARG TENSORRT_RUNTIME_VERSION
1616
ARG TENSORRT_CUDA_VERSION
17-
ARG CUDNN_VERSION
1817

1918
# Install ROS2 manually since we're not using the ros: base image
2019
# Set non-interactive to avoid geographic area prompts
@@ -35,8 +34,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3534
&& rm -rf /var/lib/apt/lists/*
3635
ENV DEBIAN_FRONTEND=interactive
3736

38-
# Install CUDA 12.2 runtime pieces plus TensorRT 10.14 runtime (no dev headers) so
39-
# ONNX Runtime's TensorRT execution provider can resolve unversioned SONAMEs.
4037
RUN curl -fsSL -o cuda-keyring_1.1-1_all.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
4138
&& dpkg -i cuda-keyring_1.1-1_all.deb \
4239
&& apt-get update && apt-get install -y --no-install-recommends \
@@ -59,11 +56,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5956
openssh-client \
6057
git \
6158
curl \
62-
ros-${ROS_DISTRO}-vision-msgs \
6359
&& rm -rf /var/lib/apt/lists/*
6460

65-
# Install pre-commit
66-
RUN python3 -m pip install --no-cache-dir pre-commit==3.8.0
61+
# Install pre-commit (Ubuntu 24.04 ships PEP 668 managed Python, so allow system install)
62+
# RUN python3 -m pip install --no-cache-dir --break-system-packages pre-commit==3.8.0
6763

6864
# Set working dir (matches VSCode workspace)
6965
WORKDIR /deep_ros_ws
@@ -82,6 +78,7 @@ RUN --mount=type=bind,source=.,target=/tmp/src \
8278
| (grep 'apt-get install' || true) \
8379
| awk '{print $3}' \
8480
| sort > /tmp/colcon_install_list
81+
8582
# ===============================================
8683
# Install Dependencies
8784
# ===============================================
@@ -125,6 +122,3 @@ RUN curl -fsSL https://claude.ai/install.sh | bash
125122

126123
# Source ROS in user's bashrc
127124
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc
128-
129-
# Ensure LD_LIBRARY_PATH includes CUDA/TensorRT for the user at runtime
130-
RUN echo 'export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/local/cuda/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}' >> /home/$USERNAME/.bashrc

.devcontainer/generate_devcontainer.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ NVIDIA_CONTAINER_TAG=${3:-12.4.1-cudnn-runtime-ubuntu22.04}
2525
USERNAME=${USER:-vscode}
2626

2727
# TensorRT configuration
28-
TENSORRT_RUNTIME_VERSION="10.14.1.48"
29-
# Truncate CUDA version to major.minor for TensorRT (fallbacks to .0 if minor missing)
30-
TENSORRT_CUDA_VERSION=$(echo "$CUDA_VERSION" | awk -F. '{print $1 "." ($2 ? $2 : "0")}')
28+
TENSORRT_RUNTIME_VERSION="10.9.0.34"
29+
# Truncate CUDA version to major.minor for TensorRT
30+
TENSORRT_CUDA_VERSION="12.8"
3131

3232
echo "Generating devcontainer configuration..."
3333
echo "ROS Distribution: $ROS_DISTRO"
@@ -106,4 +106,4 @@ echo "Environment variables set for this session"
106106
echo ""
107107
echo "You can now:"
108108
echo " 1. Open the command palette (Ctrl+Shift+P)"
109-
echo " 2. Run 'Dev Containers: Rebuild and Reopen in Container'"
109+
echo " 2. Run 'Dev Containers: Rebuild and Reopen in Container'"

BUILD_FIXES.md

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)