onnxruntime/tools/ci_build/github/linux/docker
Tianlei Wu b4afc6266f
[ROCm] Python 3.10 in ROCm CI, and ROCm 6.2.3 in MigraphX CI (#22527)
### Description
Upgrade python from 3.9 to 3.10 in ROCm and MigraphX docker files and CI
pipelines. Upgrade ROCm version to 6.2.3 in most places except ROCm CI,
see comment below.

Some improvements/upgrades on ROCm/Migraphx docker or pipeline:
* rocm 6.0/6.1.3 => 6.2.3
* python 3.9 => 3.10
* Ubuntu 20.04 => 22.04
* Also upgrade ml_dtypes, numpy and scipy packages.
* Fix message "ROCm version from ..." with correct file path in
CMakeList.txt
* Exclude some NHWC tests since ROCm EP lacks support for NHWC
convolution.

#### ROCm CI Pipeline:
ROCm 6.1.3 is kept in the pipeline for now.
- Failed after upgrading to ROCm 6.2.3: `HIPBLAS_STATUS_INVALID_VALUE ;
GPU=0 ; hostname=76123b390aed ;
file=/onnxruntime_src/onnxruntime/core/providers/rocm/rocm_execution_provider.cc
; line=170 ; expr=hipblasSetStream(hipblas_handle_, stream);` . It need
further investigation.
- cupy issues:
(1) It currently supports numpy < 1.27, might not work with numpy 2.x.
So we locked numpy==1.26.4 for now.
(2) cupy support of ROCm 6.2 is still in progress:
https://github.com/cupy/cupy/issues/8606.

Note that miniconda issues: its libstdc++.so.6 and libgcc_s.so.1 might
have conflict with the system ones. So we created links to use the
system ones.

#### MigraphX CI pipeline

MigraphX CI does not use cupy, and we are able to use ROCm 6.2.3 and
numpy 2.x in the pipeline.

#### Other attempts

Other things that I've tried which might help in the future: 

Attempt to use a single docker file for both ROCm and Migraphx:
https://github.com/microsoft/onnxruntime/pull/22478

Upgrade to ubuntu 24.04 and python 3.12, and use venv like
[this](27903e7ff1/tools/ci_build/github/linux/docker/rocm-ci-pipeline-env.Dockerfile).

### Motivation and Context
In 1.20 release, ROCm nuget packaging pipeline will use 6.2:
https://github.com/microsoft/onnxruntime/pull/22461.
This upgrades rocm to 6.2.3 in CI pipelines to be consistent.
2024-10-25 11:47:16 -07:00
..
inference Bump onnx from 1.16.1 to 1.17.0 in /tools/ci_build/github/linux/docker/inference/aarch64/python/cpu/scripts (#22593) 2024-10-25 10:03:43 -07:00
scripts [ROCm] Python 3.10 in ROCm CI, and ROCm 6.2.3 in MigraphX CI (#22527) 2024-10-25 11:47:16 -07:00
Dockerfile.manylinux2_28_cpu Update CMake (#22516) 2024-10-21 07:51:05 -07:00
Dockerfile.manylinux2_28_cuda Set CUDA12 as default in GPU packages (#21438) 2024-07-25 10:17:16 -07:00
Dockerfile.manylinux2_28_rocm [ROCm] Python 3.10 in ROCm CI, and ROCm 6.2.3 in MigraphX CI (#22527) 2024-10-25 11:47:16 -07:00
Dockerfile.package_ubi8_cuda11_8_tensorrt8_6 Create a new Nuget Package pipeline for CUDA 12 (#18135) 2023-11-28 09:03:46 -08:00
Dockerfile.package_ubi8_cuda_tensorrt10_0 [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.package_ubi8_cuda_tensorrt10_0_torch [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.package_ubuntu_2004_gpu [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.package_ubuntu_2004_gpu_ffmpeg [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.ubuntu_cuda11_8_tensorrt8_6 Update C++ dependencies (#21410) 2024-07-23 10:00:36 -07:00
Dockerfile.ubuntu_cuda11_tensorrt10 [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.ubuntu_cuda12_3_tensorrt8_6 Update C++ dependencies (#21410) 2024-07-23 10:00:36 -07:00
Dockerfile.ubuntu_cuda12_tensorrt10 [Running CI] Update TensorRT to 10.4 (#22049) 2024-09-26 11:10:52 -07:00
Dockerfile.ubuntu_openvino Memory Optimization for Compilation in OVEP (#21872) 2024-09-03 13:52:31 -07:00
Dockerfile.ubuntu_tensorrt_bin Update C++ dependencies (#21410) 2024-07-23 10:00:36 -07:00
manylinux.patch Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
migraphx-ci-pipeline-env.Dockerfile [ROCm] Python 3.10 in ROCm CI, and ROCm 6.2.3 in MigraphX CI (#22527) 2024-10-25 11:47:16 -07:00
rocm-ci-pipeline-env.Dockerfile [ROCm] Python 3.10 in ROCm CI, and ROCm 6.2.3 in MigraphX CI (#22527) 2024-10-25 11:47:16 -07:00