onnxruntime/tools/ci_build/github/linux
Changming Sun d1ab94c2b0
Add compatibility for NumPy 2.0 (#21085)
### Description

As suggested by SciPy's doc, we will
`Build against NumPy 2.0.0, then it will work for all NumPy versions
with the same major version number (NumPy does maintain backwards ABI
compatibility), and as far back as NumPy 1.19 series at the time of
writing`

I think it works because in
[numpyconfig.h#L64](https://github.com/numpy/numpy/blob/main/numpy/_core/include/numpy/numpyconfig.h#L64)
there is a macro NPY_FEATURE_VERSION. By default it is set to
NPY_1_19_API_VERSION. And the NPY_FEATURE_VERSION macro controls ABI.

This PR only upgrade the build time dependency; When a user installs
ONNX Runtime, they still can use numpy 1.x.

### Motivation and Context
Recently numpy published a new version, 2.0.0, which is incompatible with the latest ONNX Runtime release.
2024-06-27 13:50:53 -07:00
..
docker Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
ort_minimal Remove manylinux build scripts from python packaging pipeline (#20786) 2024-05-24 08:18:22 -07:00
build_cuda_c_api_package.sh Using CPU pool to build Linux GPU C API Package (#20648) 2024-05-20 15:25:14 -07:00
build_cuda_ci.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
build_linux_python_package.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
build_rocm_c_api_package.sh Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
build_tensorrt_c_api_package.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
build_tensorrt_ci.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
build_yocto.sh
copy_strip_binary.sh Update copying API header files (#19736) 2024-03-02 11:33:47 +08:00
create_package.sh
delete_unused_files_before_upload.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
extract_and_bundle_gpu_package.sh [TensorRT EP] Refactor OrtTensorRTProviderOptions initialization and make it easy to add new field (#17617) 2023-10-06 14:12:20 -07:00
java_copy_strip_binary.sh
java_linux_final_test.sh
run_build.sh Fix a build issue: /MP was not enabled correctly (#19190) 2024-01-29 12:45:38 -08:00
run_dockerbuild.sh Fix Multi GPU TensorRT tests (#17269) 2023-08-25 20:30:45 -07:00
run_python_dockerbuild.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
run_python_dockertest.sh Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
run_python_tests.sh Update training packaging pipeline's docker files (#20853) 2024-05-30 23:48:42 -07:00
test_custom_ops_pytorch_export.sh Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
upload_code_coverage_data.sh Fix Android CI pipeline (#19877) 2024-03-13 10:09:43 -07:00
upload_ortsrv_binaries.sh
yocto_build_toolchain.sh