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
21
21
# Install CUDA.
22
22
RUN conda install --channel nvidia --yes cuda-runtime="$CUDA_VERSION"
23
23
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 && \
33
26
dpkg -i cuda-keyring_1.1-1_all.deb && \
34
27
rm cuda-keyring_1.1-1_all.deb && \
35
28
apt-get update && \
36
29
apt-get install --yes \
37
30
libcudnn8=$CUDNN_VERSION-1+cuda$CUDA_VERSION \
38
- libnvinfer-lean8=$TENSORRT_VERSION-1+cuda$CUDA_TENSORRT_VERSION && \
39
31
apt-get clean && \
40
32
rm -rf /var/lib/apt/lists/*
You can’t perform that action at this time.
0 commit comments