mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
Add support for python 3.10 for onnxruntime-training cuda and cpu (#14100)
This commit is contained in:
parent
01cafe89f0
commit
68a402e739
4 changed files with 19 additions and 1 deletions
|
|
@ -35,6 +35,8 @@ stages:
|
|||
PythonVersion: '3.8'
|
||||
Python39:
|
||||
PythonVersion: '3.9'
|
||||
Python310:
|
||||
PythonVersion: '3.10'
|
||||
|
||||
steps:
|
||||
- task: CmdLine@2
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
5
tools/ci_build/github/linux/docker/scripts/install_rust.sh
Executable file
5
tools/ci_build/github/linux/docker/scripts/install_rust.sh
Executable 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
|
||||
Loading…
Reference in a new issue