Add support for python 3.10 for onnxruntime-training cuda and cpu (#14100)

This commit is contained in:
Baiju Meswani 2023-02-02 11:32:41 -08:00 committed by GitHub
parent 01cafe89f0
commit 68a402e739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -35,6 +35,8 @@ stages:
PythonVersion: '3.8'
Python39:
PythonVersion: '3.9'
Python310:
PythonVersion: '3.10'
steps:
- task: CmdLine@2

View file

@ -100,6 +100,13 @@ stages:
CudaVersion: ${{ parameters.cuda_version }}
GccVersion: ${{ parameters.gcc_version }}
UploadWheel: ${{ parameters.upload_wheel }}
Python310:
PythonVersion: '3.10'
TorchVersion: ${{ parameters.torch_version }}
OpsetVersion: ${{ parameters.opset_version }}
CudaVersion: ${{ parameters.cuda_version }}
GccVersion: ${{ parameters.gcc_version }}
UploadWheel: ${{ parameters.upload_wheel }}
steps:
- task: CmdLine@2

View file

@ -174,7 +174,11 @@ ADD scripts /tmp/scripts
RUN cd /tmp/scripts && \
/tmp/scripts/manylinux/install_centos.sh && \
/tmp/scripts/install_os_deps.sh -d gpu $INSTALL_DEPS_EXTRA_ARGS && \
/tmp/scripts/install_ninja.sh && \
/tmp/scripts/install_rust.sh
ENV PATH="/root/.cargo/bin/:$PATH"
RUN /tmp/scripts/install_ninja.sh && \
/tmp/scripts/install_python_deps.sh -d gpu -v 11.6 -p $PYTHON_VERSION -h $TORCH_VERSION $INSTALL_DEPS_EXTRA_ARGS && \
rm -rf /tmp/scripts

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -e
echo "Installing rust from https://sh.rustup.rs non interatively."
curl https://sh.rustup.rs -sSf | sh -s -- -y