-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating cudnn from 8 to 9 on exsiting cuda 12 docker image (#20925)
Adding support of cudnn 9 Keep exsiting cuda 12.2 with nvidia dirver 535
- Loading branch information
1 parent
61171af
commit e2fa8c9
Showing
10 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
tools/ci_build/github/linux/docker/Dockerfile.manylinux2_28_training_cuda12_2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tools/ci_build/github/linux/docker/inference/x86_64/default/cuda12/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
# This file is used by Zip-Nuget Packaging NoContribOps Pipeline,Zip-Nuget-Java Packaging Pipeline | ||
FROM onnxruntimebuildcache.azurecr.io/internal/azureml/onnxruntime/build/cuda12_x64_ubi8_gcc12_dotnet:20240610.1 | ||
ARG TRT_VERSION | ||
|
||
#Install TensorRT only if TRT_VERSION is not empty | ||
RUN if [ -n "$TRT_VERSION" ]; then \ | ||
echo "TRT_VERSION is $TRT_VERSION" && \ | ||
dnf -y install \ | ||
libnvinfer10-${TRT_VERSION} \ | ||
libnvinfer-headers-devel-${TRT_VERSION} \ | ||
libnvinfer-devel-${TRT_VERSION} \ | ||
libnvinfer-lean10-${TRT_VERSION} \ | ||
libnvonnxparsers10-${TRT_VERSION} \ | ||
libnvonnxparsers-devel-${TRT_VERSION} \ | ||
libnvinfer-dispatch10-${TRT_VERSION} \ | ||
libnvinfer-plugin10-${TRT_VERSION} \ | ||
libnvinfer-vc-plugin10-${TRT_VERSION} \ | ||
libnvinfer-bin-${TRT_VERSION} \ | ||
libnvinfer-plugin10-${TRT_VERSION} \ | ||
libnvinfer-plugin-devel-${TRT_VERSION} \ | ||
libnvinfer-vc-plugin-devel-${TRT_VERSION} \ | ||
libnvinfer-lean-devel-${TRT_VERSION} \ | ||
libnvinfer-dispatch-devel-${TRT_VERSION} \ | ||
libnvinfer-headers-plugin-devel-${TRT_VERSION} && \ | ||
dnf clean dbcache ; \ | ||
else \ | ||
echo "TRT_VERSION is none skipping Tensor RT Installation" ; \ | ||
fi | ||
|
||
|
||
|
||
ENV LANG=en_US.UTF-8 | ||
ENV LC_ALL=en_US.UTF-8 | ||
|
||
ENV CUDAHOSTCXX /opt/rh/gcc-toolset-12/root/usr/bin/g++ | ||
ADD scripts /tmp/scripts | ||
RUN sed -i 's/enabled\s*=\s*1/enabled = 1\nexclude=dotnet* aspnet* netstandard*/g' /etc/yum.repos.d/ubi.repo && \ | ||
rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm && dnf install -y msopenjdk-11 && cd /tmp/scripts && /tmp/scripts/install_deps.sh && rm -rf /tmp/scripts | ||
ENV PATH /usr/lib/jvm/msopenjdk-11/bin:$PATH | ||
ENV JAVA_HOME=/usr/lib/jvm/msopenjdk-11 | ||
ARG BUILD_UID=1001 | ||
ARG BUILD_USER=onnxruntimedev | ||
RUN adduser --uid $BUILD_UID $BUILD_USER | ||
WORKDIR /home/$BUILD_USER | ||
USER $BUILD_USER |