File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,12 @@ ENV PATH=/opt/conda/bin:$PATH
2121# Install CUDA.
2222RUN conda install --channel nvidia --yes cuda-runtime="$CUDA_VERSION"
2323
24- # Cuda version compatible with tensorRT version
25- RUN if [ "$CUDA_VERSION" = "12.2" ]; then \
26- export CUDA_TENSORRT_VERSION=12.0; \
27- else \
28- export CUDA_TENSORRT_VERSION=$CUDA_VERSION; \
29- fi \
30- && \
31- # Now use $CUDA_TENSORRT_VERSION in the same RUN command
32- wget --quiet https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb && \
24+ # Install CuDNN
25+ RUN wget --quiet https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.1-1_all.deb && \
3326 dpkg -i cuda-keyring_1.1-1_all.deb && \
3427 rm cuda-keyring_1.1-1_all.deb && \
3528 apt-get update && \
3629 apt-get install --yes \
3730 libcudnn8=$CUDNN_VERSION-1+cuda$CUDA_VERSION \
38- libnvinfer-lean8=$TENSORRT_VERSION-1+cuda$CUDA_TENSORRT_VERSION && \
3931 apt-get clean && \
4032 rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments