public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Diego Herrera <dherrera@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/onnxruntime] rawhide: Release 1.26.0
Date: Fri, 26 Jun 2026 23:58:56 GMT [thread overview]
Message-ID: <178251833630.1.15524554267058072629.rpms-onnxruntime-73ded64e3353@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/onnxruntime
Branch : rawhide
Commit : 73ded64e33533383368bb01a433e8962c8f24ce9
Author : Diego Herrera <dherrera@redhat.com>
Date : 2026-06-26T19:57:56-04:00
Stats : +1501/-2094 in 38 file(s)
URL : https://src.fedoraproject.org/rpms/onnxruntime/c/73ded64e33533383368bb01a433e8962c8f24ce9?branch=rawhide
Log:
Release 1.26.0
---
diff --git a/.gitignore b/.gitignore
index 32f3f0d..16bf56b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
results_*
-*.rpm
+review-*
+*.src.rpm
+*.tar.gz
/onnxruntime-1.15.1.tar.gz
/onnxruntime-1.16.3.tar.gz
/onnxruntime-1.17.3.tar.gz
diff --git a/0000-don-t-install-tests.patch b/0000-don-t-install-tests.patch
deleted file mode 100644
index cf355e6..0000000
--- a/0000-don-t-install-tests.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 6b08b48d47dbe70908c19bee5b6313b5763a1bc2 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:07:49 -0300
-Subject: [PATCH 00/19] don't install tests
-
----
- cmake/CMakeLists.txt | 1 +
- cmake/onnxruntime_unittests.cmake | 12 +++++++-----
- 2 files changed, 8 insertions(+), 5 deletions(-)
-
-diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index adf0fc0261..0d5ec393e1 100644
---- a/cmake/CMakeLists.txt
-+++ b/cmake/CMakeLists.txt
-@@ -85,6 +85,7 @@ option(onnxruntime_USE_DNNL "Build with DNNL support" OFF)
- option(onnxruntime_USE_JSEP "Build with JavaScript implemented kernels support" OFF)
- option(onnxruntime_USE_KLEIDIAI "Build with KleidiAI integration in MLAS" OFF)
- option(onnxruntime_BUILD_UNIT_TESTS "Build ONNXRuntime unit tests" ON)
-+option(onnxruntime_INSTALL_UNIT_TESTS "Install ONNXRuntime unit tests" ON)
- option(onnxruntime_BUILD_CSHARP "Build C# library" OFF)
- option(onnxruntime_BUILD_OBJC "Build Objective-C library" OFF)
- option(onnxruntime_USE_PREINSTALLED_EIGEN "Use pre-installed EIGEN. Need to provide eigen_SOURCE_PATH if turn this on." OFF)
-diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
-index 5ec174b43e..ee928f5838 100644
---- a/cmake/onnxruntime_unittests.cmake
-+++ b/cmake/onnxruntime_unittests.cmake
-@@ -1134,11 +1134,13 @@ if (NOT IOS)
- endif()
- set_target_properties(onnx_test_runner PROPERTIES FOLDER "ONNXRuntimeTest")
-
-- install(TARGETS onnx_test_runner
-- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
-- BUNDLE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-+ if (onnxruntime_INSTALL_UNIT_TESTS)
-+ install(TARGETS onnx_test_runner
-+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
-+ BUNDLE DESTINATION ${CMAKE_INSTALL_LIBDIR}
-+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
-+ endif()
- endif()
-
- if (NOT onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
---
-2.51.0
-
diff --git a/0001-Disable-download-deps.patch b/0001-Disable-download-deps.patch
new file mode 100644
index 0000000..2ceac80
--- /dev/null
+++ b/0001-Disable-download-deps.patch
@@ -0,0 +1,48 @@
+From 1ce596a3f94a8f7cbd07ea43c67d4a42c156f33f Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:16:49 -0400
+Subject: [PATCH 01/11] Disable download deps
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index be0abc980b..e6ca63a330 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -5,34 +5,6 @@ message(STATUS "Loading Dependencies URLs ...")
+
+ include(external/helper_functions.cmake)
+
+-file(STRINGS deps.txt ONNXRUNTIME_DEPS_LIST)
+-foreach(ONNXRUNTIME_DEP IN LISTS ONNXRUNTIME_DEPS_LIST)
+- # Lines start with "#" are comments
+- if(NOT ONNXRUNTIME_DEP MATCHES "^#")
+- # The first column is name
+- list(POP_FRONT ONNXRUNTIME_DEP ONNXRUNTIME_DEP_NAME)
+- # The second column is URL
+- # The URL below may be a local file path or an HTTPS URL
+- list(POP_FRONT ONNXRUNTIME_DEP ONNXRUNTIME_DEP_URL)
+- set(DEP_URL_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP_URL})
+- # The third column is SHA1 hash value
+- set(DEP_SHA1_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP})
+-
+- if(ONNXRUNTIME_DEP_URL MATCHES "^https://")
+- # Search a local mirror folder
+- string(REGEX REPLACE "^https://" "${onnxruntime_CMAKE_DEPS_MIRROR_DIR}/" LOCAL_URL "${ONNXRUNTIME_DEP_URL}")
+-
+- if(EXISTS "${LOCAL_URL}")
+- cmake_path(ABSOLUTE_PATH LOCAL_URL)
+- set(DEP_URL_${ONNXRUNTIME_DEP_NAME} "${LOCAL_URL}")
+- endif()
+- endif()
+- endif()
+-endforeach()
+-
+-message(STATUS "Loading Dependencies ...")
+-include(FetchContent)
+-
+ # ABSL should be included before protobuf because protobuf may use absl
+ include(external/abseil-cpp.cmake)
+
+--
+2.54.0
+
diff --git a/0001-onnxruntime-ignore-deprecated-thrust-warnings.patch b/0001-onnxruntime-ignore-deprecated-thrust-warnings.patch
deleted file mode 100644
index 789d8a1..0000000
--- a/0001-onnxruntime-ignore-deprecated-thrust-warnings.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From a43067dfe698708c98ca9ce4b28238d774b0eccd Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Fri, 3 Oct 2025 08:53:56 -0700
-Subject: [PATCH] onnxruntime ignore deprecated thrust warnings
-
----
- onnxruntime/core/providers/cuda/tensor/compress_impl.cu | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/onnxruntime/core/providers/cuda/tensor/compress_impl.cu b/onnxruntime/core/providers/cuda/tensor/compress_impl.cu
-index b2c7b60866a7..16a6a9fcd80e 100644
---- a/onnxruntime/core/providers/cuda/tensor/compress_impl.cu
-+++ b/onnxruntime/core/providers/cuda/tensor/compress_impl.cu
-@@ -11,6 +11,8 @@
- #pragma warning(disable : 4244)
- #endif
-
-+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-+
- #include "core/providers/cuda/tensor/compress_impl.h"
-
- #include <thrust/iterator/transform_iterator.h>
---
-2.51.0
-
diff --git a/0001-onnxruntime-rocm-no-CUBLAS_GEMM_DEFAULT_TENSOR_OP-su.patch b/0001-onnxruntime-rocm-no-CUBLAS_GEMM_DEFAULT_TENSOR_OP-su.patch
deleted file mode 100644
index 5af27aa..0000000
--- a/0001-onnxruntime-rocm-no-CUBLAS_GEMM_DEFAULT_TENSOR_OP-su.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From ba960a576975bf323eb63370a748a7c3c937eafc Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 7 Dec 2025 09:14:08 -0800
-Subject: [PATCH] onnxruntime rocm no CUBLAS_GEMM_DEFAULT_TENSOR_OP support
-
----
- .../contrib_ops/cuda/bert/longformer_attention_impl.cu | 6 ++++++
- .../contrib_ops/cuda/bert/longformer_attention_softmax.cu | 6 ++++++
- 2 files changed, 12 insertions(+)
-
-diff --git a/onnxruntime/contrib_ops/cuda/bert/longformer_attention_impl.cu b/onnxruntime/contrib_ops/cuda/bert/longformer_attention_impl.cu
-index a8f94304f814..1915a06f40a6 100644
---- a/onnxruntime/contrib_ops/cuda/bert/longformer_attention_impl.cu
-+++ b/onnxruntime/contrib_ops/cuda/bert/longformer_attention_impl.cu
-@@ -413,7 +413,13 @@ Status LaunchLongformerSoftmaxKernel(
- Btype = CUDA_R_16F;
- Ctype = CUDA_R_16F;
- resultType = CUBLAS_COMPUTE_16F;
-+#ifdef USE_ROCM
-+ return ORT_MAKE_STATUS(ONNXRUNTIME, StatusCode::NOT_IMPLEMENTED,
-+ "ROCm does not support CUBLAS_GEMM_DEFAULT_TENSOR_OP");
-+
-+#else
- algo = CUBLAS_GEMM_DEFAULT_TENSOR_OP;
-+#endif
- } else {
- one_fp32 = 1.f;
- zero_fp32 = 0.f;
-diff --git a/onnxruntime/contrib_ops/cuda/bert/longformer_attention_softmax.cu b/onnxruntime/contrib_ops/cuda/bert/longformer_attention_softmax.cu
-index 9f92faac25b7..4e2adbd3a904 100644
---- a/onnxruntime/contrib_ops/cuda/bert/longformer_attention_softmax.cu
-+++ b/onnxruntime/contrib_ops/cuda/bert/longformer_attention_softmax.cu
-@@ -238,7 +238,13 @@ Status LaunchLongformerSoftmaxSimpleKernel(
- Btype = CUDA_R_16F;
- Ctype = CUDA_R_16F;
- resultType = CUBLAS_COMPUTE_16F;
-+#ifdef USE_ROCM
-+ return ORT_MAKE_STATUS(ONNXRUNTIME, StatusCode::NOT_IMPLEMENTED,
-+ "ROCm does not support CUBLAS_GEMM_DEFAULT_TENSOR_OP");
-+
-+#else
- algo = CUBLAS_GEMM_DEFAULT_TENSOR_OP;
-+#endif
- } else {
- one_fp32 = 1.f;
- zero_fp32 = 0.f;
---
-2.52.0
-
diff --git a/0001-onnxruntime-use-hipblasGemmStridedBatchedEx-instead-of-_v2.patch b/0001-onnxruntime-use-hipblasGemmStridedBatchedEx-instead-of-_v2.patch
deleted file mode 100644
index 7980966..0000000
--- a/0001-onnxruntime-use-hipblasGemmStridedBatchedEx-instead-of-_v2.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From cd5402dd802b661ea4fbc57b5ea4f8e1557e7515 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Sun, 18 Jan 2026 00:58:29 -0300
-Subject: [PATCH] onnxruntime use hipblasGemmStridedBatchedEx instead of _v2
-
----
- tools/ci_build/hipify-perl | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tools/ci_build/hipify-perl b/tools/ci_build/hipify-perl
-index ac1393cf0d..2c36f14e1f 100755
---- a/tools/ci_build/hipify-perl
-+++ b/tools/ci_build/hipify-perl
-@@ -4284,7 +4284,7 @@ sub simpleSubstitutions {
- subst("cublasDznrm2_v2_64", "hipblasDznrm2_v2_64", "library");
- subst("cublasGemmBatchedEx", "hipblasGemmBatchedEx_v2", "library");
- subst("cublasGemmEx", "hipblasGemmEx_v2", "library");
-- subst("cublasGemmStridedBatchedEx", "hipblasGemmStridedBatchedEx_v2", "library");
-+ subst("cublasGemmStridedBatchedEx", "hipblasGemmStridedBatchedEx", "library");
- subst("cublasGetAtomicsMode", "hipblasGetAtomicsMode", "library");
- subst("cublasGetMathMode", "hipblasGetMathMode", "library");
- subst("cublasGetMatrix", "hipblasGetMatrix", "library");
---
-2.52.0
-
diff --git a/0001-onnxruntime-warpSize-is-not-constant-in-ROCm-7.patch b/0001-onnxruntime-warpSize-is-not-constant-in-ROCm-7.patch
deleted file mode 100644
index 43359ab..0000000
--- a/0001-onnxruntime-warpSize-is-not-constant-in-ROCm-7.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 25e0d36127319aaa2e847f2860c520913b0e84dc Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Fri, 3 Oct 2025 08:20:29 -0700
-Subject: [PATCH] onnxruntime: warpSize is not constant in ROCm 7
-
-The values can be either 32 (radeon) or 64 (instict).
-Pick 32
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- onnxruntime/core/providers/rocm/cu_inc/common.cuh | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/onnxruntime/core/providers/rocm/cu_inc/common.cuh b/onnxruntime/core/providers/rocm/cu_inc/common.cuh
-index cdb4d1f7edac..6e57b5c1e7b6 100644
---- a/onnxruntime/core/providers/rocm/cu_inc/common.cuh
-+++ b/onnxruntime/core/providers/rocm/cu_inc/common.cuh
-@@ -523,7 +523,7 @@ struct alignas(sizeof(T) * vec_size) aligned_vector {
- #define HIP_KERNEL_ASSERT(...) assert(__VA_ARGS__)
-
- // WARP related definitions and functions
--constexpr int GPU_WARP_SIZE = warpSize;
-+constexpr int GPU_WARP_SIZE = 32;
- inline int GPU_WARP_SIZE_HOST = warpSizeDynamic();
-
- template <typename T>
---
-2.51.0
-
diff --git a/0001-system-flatbuffers.patch b/0001-system-flatbuffers.patch
deleted file mode 100644
index 62354b7..0000000
--- a/0001-system-flatbuffers.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From d6b7af344d1bb3bd5e4e8ce19b3b46ea7f2476f4 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:15:20 -0300
-Subject: [PATCH 01/19] system flatbuffers
-
----
- cmake/external/onnxruntime_external_deps.cmake | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 0e0083af9e..94bd21a4d1 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -449,7 +449,7 @@ onnxruntime_fetchcontent_declare(
- URL_HASH SHA1=${DEP_SHA1_flatbuffers}
- PATCH_COMMAND ${ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND}
- EXCLUDE_FROM_ALL
-- FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers
-+ FIND_PACKAGE_ARGS 23.5.9...<25.0.0 NAMES Flatbuffers flatbuffers FlatBuffers
- )
-
- onnxruntime_fetchcontent_makeavailable(flatbuffers)
-@@ -477,6 +477,8 @@ namespace std { using ::getenv; }
- target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h)
- endif()
- endif()
-+else()
-+ add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared)
- endif()
- endif()
-
---
-2.51.0
-
diff --git a/0002-System-abseil.patch b/0002-System-abseil.patch
new file mode 100644
index 0000000..3d7b72a
--- /dev/null
+++ b/0002-System-abseil.patch
@@ -0,0 +1,23 @@
+From 3b23eb11c77570cdacbbca2744c03944517255a7 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:18:08 -0400
+Subject: [PATCH 02/11] System abseil
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index e6ca63a330..c564f68467 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -5,9 +5,6 @@ message(STATUS "Loading Dependencies URLs ...")
+
+ include(external/helper_functions.cmake)
+
+-# ABSL should be included before protobuf because protobuf may use absl
+-include(external/abseil-cpp.cmake)
+-
+ set(RE2_BUILD_TESTING OFF CACHE BOOL "" FORCE)
+
+ onnxruntime_fetchcontent_declare(
+--
+2.54.0
+
diff --git a/0002-system-protobuf.patch b/0002-system-protobuf.patch
deleted file mode 100644
index 55a28d8..0000000
--- a/0002-system-protobuf.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 02a3d0535fd8ba3ff540d291b7eb2940a67bc998 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:37:09 -0300
-Subject: [PATCH 02/19] system protobuf
-
----
- .../external/onnxruntime_external_deps.cmake | 28 +------------------
- 1 file changed, 1 insertion(+), 27 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 94bd21a4d1..fdae0b1a9f 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -184,36 +184,10 @@ else()
- set(ONNXRUNTIME_PROTOBUF_PATCH_COMMAND "")
- endif()
-
--#Protobuf depends on absl and utf8_range
--onnxruntime_fetchcontent_declare(
-- Protobuf
-- URL ${DEP_URL_protobuf}
-- URL_HASH SHA1=${DEP_SHA1_protobuf}
-- PATCH_COMMAND ${ONNXRUNTIME_PROTOBUF_PATCH_COMMAND}
-- EXCLUDE_FROM_ALL
-- FIND_PACKAGE_ARGS NAMES Protobuf protobuf
--)
--
--set(protobuf_BUILD_TESTS OFF CACHE BOOL "Build protobuf tests" FORCE)
--#TODO: we'd better to turn the following option off. However, it will cause
--# ".\build.bat --config Debug --parallel --skip_submodule_sync --update" fail with an error message:
--# install(EXPORT "ONNXTargets" ...) includes target "onnx_proto" which requires target "libprotobuf-lite" that is
--# not in any export set.
--#set(protobuf_INSTALL OFF CACHE BOOL "Install protobuf binaries and files" FORCE)
--set(protobuf_USE_EXTERNAL_GTEST ON CACHE BOOL "" FORCE)
--
--if (ANDROID)
-- set(protobuf_WITH_ZLIB OFF CACHE BOOL "Build protobuf with zlib support" FORCE)
--endif()
--
--if (onnxruntime_DISABLE_RTTI)
-- set(protobuf_DISABLE_RTTI ON CACHE BOOL "Remove runtime type information in the binaries" FORCE)
--endif()
--
-+find_package(Protobuf REQUIRED)
- include(protobuf_function)
- #protobuf end
-
--onnxruntime_fetchcontent_makeavailable(Protobuf)
- if(Protobuf_FOUND)
- message(STATUS "Using protobuf from find_package(or vcpkg). Protobuf version: ${Protobuf_VERSION}")
- else()
---
-2.51.0
-
diff --git a/0003-System-date-and-mp11.patch b/0003-System-date-and-mp11.patch
new file mode 100644
index 0000000..51bbdf2
--- /dev/null
+++ b/0003-System-date-and-mp11.patch
@@ -0,0 +1,645 @@
+From 1ddad843d4d7a8783570998f452d99607f8c2443 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:06:32 -0400
+Subject: [PATCH 03/11] System date and mp11
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index c564f68467..e64ad4a2d6 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -238,36 +238,8 @@ endif()
+ set(ENABLE_DATE_TESTING OFF CACHE BOOL "" FORCE)
+ set(USE_SYSTEM_TZ_DB ON CACHE BOOL "" FORCE)
+
+-onnxruntime_fetchcontent_declare(
+- date
+- URL ${DEP_URL_date}
+- URL_HASH SHA1=${DEP_SHA1_date}
+- EXCLUDE_FROM_ALL
+- PATCH_COMMAND
+- ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/date/date.patch
+- FIND_PACKAGE_ARGS 3...<4 NAMES date
+-)
+-onnxruntime_fetchcontent_makeavailable(date)
+-
+-if(NOT TARGET Boost::mp11)
+- if(onnxruntime_USE_VCPKG)
+- find_package(Boost REQUIRED)
+- message(STATUS "Aliasing Boost::headers to Boost::mp11")
+- add_library(Boost::mp11 ALIAS Boost::headers)
+- else()
+- onnxruntime_fetchcontent_declare(
+- mp11
+- URL ${DEP_URL_mp11}
+- EXCLUDE_FROM_ALL
+- FIND_PACKAGE_ARGS NAMES Boost
+- )
+- FetchContent_Populate(mp11)
+- if(NOT TARGET Boost::mp11)
+- add_library(Boost::mp11 IMPORTED INTERFACE)
+- target_include_directories(Boost::mp11 INTERFACE $<BUILD_INTERFACE:${mp11_SOURCE_DIR}/include>)
+- endif()
+- endif()
+-endif()
++find_package(date)
++find_package(Boost COMPONENTS mp11)
+
+ set(JSON_BuildTests OFF CACHE INTERNAL "")
+ set(JSON_Install ON CACHE INTERNAL "")
+@@ -563,7 +535,7 @@ if (onnxruntime_USE_XNNPACK)
+ endif()
+
+ set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${WIL_TARGET} nlohmann_json::nlohmann_json
+- onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::mp11 safeint_interface
++ onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::boost safeint_interface
+ flatbuffers::flatbuffers ${GSL_TARGET} ${ABSEIL_LIBS} date::date Eigen3::Eigen)
+
+ # The source code of onnx_proto is generated, we must build this lib first before starting to compile the other source code that uses ONNX protobuf types.
+diff --git a/cmake/onnxruntime_framework.cmake b/cmake/onnxruntime_framework.cmake
+index 15f3105b34..615e51beb0 100644
+--- a/cmake/onnxruntime_framework.cmake
++++ b/cmake/onnxruntime_framework.cmake
+@@ -81,7 +81,7 @@ endif()
+ if (onnxruntime_ENABLE_ATEN)
+ onnxruntime_add_include_to_target(onnxruntime_framework dlpack::dlpack)
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 nlohmann_json::nlohmann_json Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost nlohmann_json::nlohmann_json Eigen3::Eigen)
+
+ if (onnxruntime_USE_MIMALLOC)
+ onnxruntime_add_include_to_target(onnxruntime_framework mimalloc-static)
+diff --git a/cmake/onnxruntime_graph.cmake b/cmake/onnxruntime_graph.cmake
+index fba1a680bb..11fa2bbbe6 100644
+--- a/cmake/onnxruntime_graph.cmake
++++ b/cmake/onnxruntime_graph.cmake
+@@ -96,7 +96,7 @@ endif()
+
+ onnxruntime_add_static_library(onnxruntime_graph ${onnxruntime_graph_src} ${orttraining_graph_src})
+ add_dependencies(onnxruntime_graph onnx_proto flatbuffers::flatbuffers)
+-onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
++onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
+
+ if (MSVC)
+ set(ONNX_PROTOBUF_NATVIS_FILE "onnx_protobuf.natvis")
+diff --git a/cmake/onnxruntime_lora.cmake b/cmake/onnxruntime_lora.cmake
+index e0579f571e..130ca3d5e1 100644
+--- a/cmake/onnxruntime_lora.cmake
++++ b/cmake/onnxruntime_lora.cmake
+@@ -10,7 +10,7 @@ file(GLOB onnxruntime_lora_srcs CONFIGURE_DEPENDS
+ source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_lora_srcs})
+
+ onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 ${GSL_TARGET})
++onnxruntime_add_include_to_target(onnxruntime_lora onnxruntime_framework onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost ${GSL_TARGET})
+
+ if(onnxruntime_ENABLE_INSTRUMENT)
+ target_compile_definitions(onnxruntime_lora PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
+diff --git a/cmake/onnxruntime_opschema_lib.cmake b/cmake/onnxruntime_opschema_lib.cmake
+index 8a5b4bc907..52dd9ba343 100644
+--- a/cmake/onnxruntime_opschema_lib.cmake
++++ b/cmake/onnxruntime_opschema_lib.cmake
+@@ -27,10 +27,10 @@ target_compile_options(ort_opschema_lib PRIVATE -D_OPSCHEMA_LIB_=1)
+ if(NOT MSVC)
+ target_compile_options(ort_opschema_lib PRIVATE "-Wno-parentheses")
+ endif()
+-set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 safeint_interface)
++set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost safeint_interface)
+
+ # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" is found
+ target_include_directories(ort_opschema_lib PRIVATE ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CMAKE_CURRENT_BINARY_DIR})
+-onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ add_dependencies(ort_opschema_lib ${OPSCHEMA_LIB_DEPENDENCIES})
+
+diff --git a/cmake/onnxruntime_optimizer.cmake b/cmake/onnxruntime_optimizer.cmake
+index c4aa2c522b..d992afef26 100644
+--- a/cmake/onnxruntime_optimizer.cmake
++++ b/cmake/onnxruntime_optimizer.cmake
+@@ -115,7 +115,7 @@ endif()
+
+ onnxruntime_add_static_library(onnxruntime_optimizer ${onnxruntime_optimizer_srcs})
+
+-onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_optimizer PRIVATE ${ONNXRUNTIME_ROOT})
+ if (onnxruntime_ENABLE_TRAINING)
+ target_include_directories(onnxruntime_optimizer PRIVATE ${ORTTRAINING_ROOT})
+diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake
+index afa41d72c1..baa4de0b4f 100644
+--- a/cmake/onnxruntime_providers_acl.cmake
++++ b/cmake/onnxruntime_providers_acl.cmake
+@@ -10,7 +10,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_acl_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_acl ${onnxruntime_providers_acl_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_acl
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen
+ )
+
+ if (DEFINED ENV{LD_LIBRARY_PATH})
+diff --git a/cmake/onnxruntime_providers_azure.cmake b/cmake/onnxruntime_providers_azure.cmake
+index 1b03563848..b856ce2e56 100644
+--- a/cmake/onnxruntime_providers_azure.cmake
++++ b/cmake/onnxruntime_providers_azure.cmake
+@@ -8,7 +8,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_azure_src})
+ onnxruntime_add_static_library(onnxruntime_providers_azure ${onnxruntime_providers_azure_src})
+ add_dependencies(onnxruntime_providers_azure ${onnxruntime_EXTERNAL_DEPENDENCIES})
+- onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11)
++ onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost)
+ target_link_libraries(onnxruntime_providers_azure PRIVATE onnx onnxruntime_common onnxruntime_framework)
+ set_target_properties(onnxruntime_providers_azure PROPERTIES FOLDER "ONNXRuntime")
+ set_target_properties(onnxruntime_providers_azure PROPERTIES LINKER_LANGUAGE CXX)
+diff --git a/cmake/onnxruntime_providers_cann.cmake b/cmake/onnxruntime_providers_cann.cmake
+index 30c13c0b4a..fa5ee74b26 100644
+--- a/cmake/onnxruntime_providers_cann.cmake
++++ b/cmake/onnxruntime_providers_cann.cmake
+@@ -18,7 +18,7 @@
+ set(onnxruntime_providers_cann_src ${onnxruntime_providers_cann_cc_srcs} ${onnxruntime_providers_cann_shared_srcs})
+
+ onnxruntime_add_shared_library_module(onnxruntime_providers_cann ${onnxruntime_providers_cann_src})
+- onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+
+ add_dependencies(onnxruntime_providers_cann onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_link_libraries(onnxruntime_providers_cann PRIVATE Eigen3::Eigen ascendcl acl_op_compiler fmk_onnx_parser ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED})
+diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake
+index 757198ffb6..10d6cb9271 100644
+--- a/cmake/onnxruntime_providers_coreml.cmake
++++ b/cmake/onnxruntime_providers_coreml.cmake
+@@ -151,7 +151,7 @@ onnxruntime_add_static_library(onnxruntime_providers_coreml
+ )
+
+ onnxruntime_add_include_to_target(onnxruntime_providers_coreml
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost
+ safeint_interface nlohmann_json::nlohmann_json
+ )
+
+diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake
+index f6efcb3fad..c7618c85b8 100644
+--- a/cmake/onnxruntime_providers_cpu.cmake
++++ b/cmake/onnxruntime_providers_cpu.cmake
+@@ -154,7 +154,7 @@ if (MSVC)
+ # target_compile_options(onnxruntime_providers PRIVATE "/wd4244")
+ # endif()
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
+
+ if (onnxruntime_BUILD_MS_EXPERIMENTAL_OPS)
+ target_compile_definitions(onnxruntime_providers PRIVATE BUILD_MS_EXPERIMENTAL_OPS=1)
+@@ -239,7 +239,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
+
+
+ # On Apple/Unix we don't directly link with this library as we load it with RTLD_GLOBAL, so this is only set to the actual library on WIN32
+- # But, in exchange we need to manually add Boost::mp11 to include dirs for every EP.
++ # But, in exchange we need to manually add Boost::boost to include dirs for every EP.
+ # It is because "provider_api.h" includes core/framework/op_kernel.h which includes op_kernel.h which includes "boost/mp11.hpp"
+ set(ONNXRUNTIME_PROVIDERS_SHARED)
+
+diff --git a/cmake/onnxruntime_providers_cuda.cmake b/cmake/onnxruntime_providers_cuda.cmake
+index 624057dd43..78e1b681c1 100644
+--- a/cmake/onnxruntime_providers_cuda.cmake
++++ b/cmake/onnxruntime_providers_cuda.cmake
+@@ -300,7 +300,7 @@
+ add_dependencies(${target} onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ if(onnxruntime_CUDA_MINIMAL)
+ target_compile_definitions(${target} PRIVATE USE_CUDA_MINIMAL)
+- target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface CUDA::cudart)
++ target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface CUDA::cudart)
+ else()
+ include(cudnn_frontend) # also defines CUDNN::*
+ if (onnxruntime_USE_CUDA_NHWC_OPS)
+@@ -311,7 +311,7 @@
+ endif()
+ endif()
+ target_link_libraries(${target} PRIVATE CUDA::cublasLt CUDA::cublas CUDNN::cudnn_all cudnn_frontend CUDA::curand CUDA::cufft CUDA::cudart
+- ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface)
++ ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface)
+ endif()
+
+ include(cutlass)
+diff --git a/cmake/onnxruntime_providers_cuda_plugin.cmake b/cmake/onnxruntime_providers_cuda_plugin.cmake
+index e345c944dc..e27a6fa22b 100644
+--- a/cmake/onnxruntime_providers_cuda_plugin.cmake
++++ b/cmake/onnxruntime_providers_cuda_plugin.cmake
+@@ -252,7 +252,7 @@ target_link_libraries(onnxruntime_providers_cuda_plugin PRIVATE
+ CUDA::cufft
+ CUDNN::cudnn_all
+ cudnn_frontend
+- Boost::mp11
++ Boost::boost
+ safeint_interface
+ onnxruntime_framework
+ onnxruntime_graph
+diff --git a/cmake/onnxruntime_providers_dml.cmake b/cmake/onnxruntime_providers_dml.cmake
+index ac4f0103ea..19ffe5b50b 100644
+--- a/cmake/onnxruntime_providers_dml.cmake
++++ b/cmake/onnxruntime_providers_dml.cmake
+@@ -9,7 +9,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_dml_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_dml ${onnxruntime_providers_dml_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_dml
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${WIL_TARGET}
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${WIL_TARGET}
+ )
+ if(TARGET Microsoft::DirectX-Headers)
+ onnxruntime_add_include_to_target(onnxruntime_providers_dml Microsoft::DirectX-Headers)
+diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
+index 07926a34d5..965c4df7a0 100644
+--- a/cmake/onnxruntime_providers_dnnl.cmake
++++ b/cmake/onnxruntime_providers_dnnl.cmake
+@@ -19,7 +19,7 @@
+ add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
+ # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
+- target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
++ target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
+ install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/dnnl/dnnl_provider_options.h
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/)
+ set_target_properties(onnxruntime_providers_dnnl PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_js.cmake b/cmake/onnxruntime_providers_js.cmake
+index fefbab5082..800c31b83d 100644
+--- a/cmake/onnxruntime_providers_js.cmake
++++ b/cmake/onnxruntime_providers_js.cmake
+@@ -19,7 +19,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_js_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_js ${onnxruntime_providers_js_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_js
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::mp11 Eigen3::Eigen
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::boost Eigen3::Eigen
+ )
+
+ add_dependencies(onnxruntime_providers_js ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_migraphx.cmake b/cmake/onnxruntime_providers_migraphx.cmake
+index 8cb5dcf951..dae4ef20ee 100644
+--- a/cmake/onnxruntime_providers_migraphx.cmake
++++ b/cmake/onnxruntime_providers_migraphx.cmake
+@@ -31,9 +31,9 @@
+ )
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_migraphx_cc_srcs})
+ onnxruntime_add_shared_library(onnxruntime_providers_migraphx ${onnxruntime_providers_migraphx_cc_srcs})
+- onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
+ add_dependencies(onnxruntime_providers_migraphx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+- target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ target_link_libraries(onnxruntime_providers_migraphx PRIVATE migraphx::c hip::host ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_providers_migraphx PRIVATE ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/migraphx/onnxruntime)
+ set_target_properties(onnxruntime_providers_migraphx PROPERTIES LINKER_LANGUAGE CXX)
+ set_target_properties(onnxruntime_providers_migraphx PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_nnapi.cmake b/cmake/onnxruntime_providers_nnapi.cmake
+index 06364ebd49..b202c15e11 100644
+--- a/cmake/onnxruntime_providers_nnapi.cmake
++++ b/cmake/onnxruntime_providers_nnapi.cmake
+@@ -60,7 +60,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nnapi_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_nnapi ${onnxruntime_providers_nnapi_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_nnapi
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
+ )
+ target_link_libraries(onnxruntime_providers_nnapi)
+ add_dependencies(onnxruntime_providers_nnapi onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_nv.cmake b/cmake/onnxruntime_providers_nv.cmake
+index 92fc0ccadd..38830f9c4d 100644
+--- a/cmake/onnxruntime_providers_nv.cmake
++++ b/cmake/onnxruntime_providers_nv.cmake
+@@ -147,7 +147,7 @@ endif ()
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
+ onnxruntime_add_shared_library_module(onnxruntime_providers_nv_tensorrt_rtx ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_common)
+- target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++ target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+ add_dependencies(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ # Make NVML linkage optional: only link CUDA::nvml if the target exists.
+ set(_nvml_lib "")
+@@ -155,7 +155,7 @@ endif ()
+ set(_nvml_lib CUDA::nvml)
+ endif()
+ if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
+- target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
++ target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
+ else()
+ target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} ${_nvml_lib} PUBLIC CUDA::cudart CUDA::cuda_driver)
+ endif()
+diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
+index 882fc56d9a..819bdb7adc 100644
+--- a/cmake/onnxruntime_providers_openvino.cmake
++++ b/cmake/onnxruntime_providers_openvino.cmake
+@@ -54,7 +54,7 @@
+ endif()
+ add_dependencies(onnxruntime_providers_openvino onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(onnxruntime_providers_openvino SYSTEM PUBLIC ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${OpenVINO_INCLUDE_DIR} ${OPENVINO_INCLUDE_DIR_LIST} ${PYTHON_INCLUDE_DIRS} $ENV{OPENCL_INCS} $ENV{OPENCL_INCS}/../../cl_headers/)
+- target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
++ target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen onnx_proto)
+
+ # ETW TraceLogging depends on Advapi32 on Windows
+ if(WIN32)
+diff --git a/cmake/onnxruntime_providers_qnn.cmake b/cmake/onnxruntime_providers_qnn.cmake
+index f499c83d5f..fad6234cb3 100644
+--- a/cmake/onnxruntime_providers_qnn.cmake
++++ b/cmake/onnxruntime_providers_qnn.cmake
+@@ -43,7 +43,7 @@
+ onnxruntime_add_static_library(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_qnn onnxruntime_common onnxruntime_framework onnx
+ onnx_proto protobuf::libprotobuf-lite
+- flatbuffers::flatbuffers Boost::mp11
++ flatbuffers::flatbuffers Boost::boost
+ nlohmann_json::nlohmann_json)
+ add_dependencies(onnxruntime_providers_qnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ set_target_properties(onnxruntime_providers_qnn PROPERTIES CXX_STANDARD_REQUIRED ON)
+@@ -94,7 +94,7 @@
+
+ onnxruntime_add_shared_library_module(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_all_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx
+- onnxruntime_common Boost::mp11 safeint_interface
++ onnxruntime_common Boost::boost safeint_interface
+ nlohmann_json::nlohmann_json)
+ target_link_libraries(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS} ${CMAKE_DL_LIBS})
+ add_dependencies(onnxruntime_providers_qnn onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_rknpu.cmake b/cmake/onnxruntime_providers_rknpu.cmake
+index 831df84aa6..312cf86e68 100644
+--- a/cmake/onnxruntime_providers_rknpu.cmake
++++ b/cmake/onnxruntime_providers_rknpu.cmake
+@@ -24,7 +24,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_rknpu_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_rknpu ${onnxruntime_providers_rknpu_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_rknpu
+- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
++ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
+ )
+ target_link_libraries(onnxruntime_providers_rknpu PRIVATE -lrknpu_ddk)
+ add_dependencies(onnxruntime_providers_rknpu onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+diff --git a/cmake/onnxruntime_providers_tensorrt.cmake b/cmake/onnxruntime_providers_tensorrt.cmake
+index 4184e0b049..d0bfdbee0d 100644
+--- a/cmake/onnxruntime_providers_tensorrt.cmake
++++ b/cmake/onnxruntime_providers_tensorrt.cmake
+@@ -175,10 +175,10 @@
+
+ onnxruntime_add_shared_library_module(onnxruntime_providers_tensorrt ${onnxruntime_providers_tensorrt_all_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_tensorrt onnxruntime_common)
+- target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++ target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+ add_dependencies(onnxruntime_providers_tensorrt onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
+- target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
++ target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
+ else()
+ target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
+ endif()
+diff --git a/cmake/onnxruntime_providers_vitisai.cmake b/cmake/onnxruntime_providers_vitisai.cmake
+index d59c944c89..f925190908 100644
+--- a/cmake/onnxruntime_providers_vitisai.cmake
++++ b/cmake/onnxruntime_providers_vitisai.cmake
+@@ -29,7 +29,7 @@
+ # FILE_NAME preprocessor definition is used in onnxruntime_providers_vitisai.rc
+ target_compile_definitions(onnxruntime_providers_vitisai PRIVATE FILE_NAME=\"onnxruntime_providers_vitisai.dll\")
+ endif()
+- onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11)
++ onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost)
+ target_link_libraries(onnxruntime_providers_vitisai PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS})
+ if(MSVC)
+ onnxruntime_add_include_to_target(onnxruntime_providers_vitisai dbghelp)
+diff --git a/cmake/onnxruntime_providers_vsinpu.cmake b/cmake/onnxruntime_providers_vsinpu.cmake
+index e3b6c3c302..1d86af395e 100644
+--- a/cmake/onnxruntime_providers_vsinpu.cmake
++++ b/cmake/onnxruntime_providers_vsinpu.cmake
+@@ -10,7 +10,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_vsinpu_srcs})
+ add_library(onnxruntime_providers_vsinpu ${onnxruntime_providers_vsinpu_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_vsinpu
+- onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::mp11
++ onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::boost
+ safeint_interface )
+ add_dependencies(onnxruntime_providers_vsinpu ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ set_target_properties(onnxruntime_providers_vsinpu PROPERTIES FOLDER "ONNXRuntime" LINKER_LANGUAGE CXX)
+diff --git a/cmake/onnxruntime_providers_webgpu.cmake b/cmake/onnxruntime_providers_webgpu.cmake
+index f64aafa161..fbbaaecc9d 100644
+--- a/cmake/onnxruntime_providers_webgpu.cmake
++++ b/cmake/onnxruntime_providers_webgpu.cmake
+@@ -45,7 +45,7 @@
+ source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_webgpu_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_webgpu ${onnxruntime_providers_webgpu_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_webgpu
+- onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
+ else()
+ #
+ # Build WebGPU EP as a shared library
+@@ -63,7 +63,7 @@
+ onnx
+ onnx_proto
+ flatbuffers::flatbuffers
+- Boost::mp11
++ Boost::boost
+ safeint_interface)
+
+ target_link_libraries(onnxruntime_providers_webgpu PRIVATE
+diff --git a/cmake/onnxruntime_providers_webnn.cmake b/cmake/onnxruntime_providers_webnn.cmake
+index da5720a9f7..d27275cbbc 100644
+--- a/cmake/onnxruntime_providers_webnn.cmake
++++ b/cmake/onnxruntime_providers_webnn.cmake
+@@ -18,7 +18,7 @@
+
+ source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webnn_cc_srcs})
+ onnxruntime_add_static_library(onnxruntime_providers_webnn ${onnxruntime_providers_webnn_cc_srcs})
+- onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
+
+ add_dependencies(onnxruntime_providers_webnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ set_target_properties(onnxruntime_providers_webnn PROPERTIES FOLDER "ONNXRuntime")
+diff --git a/cmake/onnxruntime_providers_xnnpack.cmake b/cmake/onnxruntime_providers_xnnpack.cmake
+index 1fbe553fa5..614417b80a 100644
+--- a/cmake/onnxruntime_providers_xnnpack.cmake
++++ b/cmake/onnxruntime_providers_xnnpack.cmake
+@@ -13,7 +13,7 @@
+ onnxruntime_add_static_library(onnxruntime_providers_xnnpack ${onnxruntime_providers_xnnpack_cc_srcs})
+ onnxruntime_add_include_to_target(onnxruntime_providers_xnnpack
+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} XNNPACK pthreadpool
+- flatbuffers::flatbuffers Boost::mp11 safeint_interface
++ flatbuffers::flatbuffers Boost::boost safeint_interface
+ )
+
+ # TODO fix stringop-overflow warnings
+diff --git a/cmake/onnxruntime_session.cmake b/cmake/onnxruntime_session.cmake
+index 1e3357464e..adcfc219b6 100644
+--- a/cmake/onnxruntime_session.cmake
++++ b/cmake/onnxruntime_session.cmake
+@@ -42,7 +42,7 @@ endif()
+ source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_session_srcs})
+
+ onnxruntime_add_static_library(onnxruntime_session ${onnxruntime_session_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
+ target_link_libraries(onnxruntime_session PRIVATE onnxruntime_lora)
+ if(onnxruntime_ENABLE_INSTRUMENT)
+ target_compile_definitions(onnxruntime_session PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
+diff --git a/cmake/onnxruntime_training.cmake b/cmake/onnxruntime_training.cmake
+index fab40da157..818d002395 100644
+--- a/cmake/onnxruntime_training.cmake
++++ b/cmake/onnxruntime_training.cmake
+@@ -30,7 +30,7 @@ list(REMOVE_ITEM onnxruntime_training_srcs ${onnxruntime_training_framework_excl
+
+ onnxruntime_add_static_library(onnxruntime_training ${onnxruntime_training_srcs})
+ add_dependencies(onnxruntime_training onnx tensorboard ${onnxruntime_EXTERNAL_DEPENDENCIES})
+-onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::mp11 safeint_interface Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::boost safeint_interface Eigen3::Eigen)
+
+ # fix event_writer.cc 4100 warning
+ if(WIN32)
+@@ -73,7 +73,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ target_link_libraries(onnxruntime_training_runner PRIVATE Python::Python)
+ endif()
+
+- onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++ onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+
+ target_include_directories(onnxruntime_training_runner PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} PUBLIC ${onnxruntime_graph_header})
+ target_link_libraries(onnxruntime_training_runner PRIVATE nlohmann_json::nlohmann_json)
+@@ -101,7 +101,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ "${ORTTRAINING_SOURCE_DIR}/models/mnist/main.cc"
+ )
+ onnxruntime_add_executable(onnxruntime_training_mnist ${training_mnist_src})
+- onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_training_mnist PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+
+ set(ONNXRUNTIME_LIBS
+@@ -124,7 +124,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ ${ONNXRUNTIME_MLAS_LIBS}
+ onnxruntime_common
+ onnxruntime_flatbuffers
+- Boost::mp11 safeint_interface Eigen3::Eigen
++ Boost::boost safeint_interface Eigen3::Eigen
+ )
+
+ if(UNIX AND NOT APPLE)
+@@ -143,7 +143,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ "${ORTTRAINING_SOURCE_DIR}/models/squeezenet/*.cc"
+ )
+ onnxruntime_add_executable(onnxruntime_training_squeezenet ${training_squeezene_src})
+- onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_training_squeezenet PUBLIC ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+
+ if(UNIX AND NOT APPLE)
+@@ -166,7 +166,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ endif()
+ endif()
+
+- onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_training_bert PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+
+ target_link_libraries(onnxruntime_training_bert PRIVATE onnxruntime_training_runner onnxruntime_training ${ONNXRUNTIME_LIBS} ${onnxruntime_EXTERNAL_LIBRARIES})
+@@ -185,7 +185,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
+ endif()
+ endif()
+
+- onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
++ onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
+ target_include_directories(onnxruntime_training_pipeline_poc PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
+ if (onnxruntime_USE_NCCL)
+ target_include_directories(onnxruntime_training_pipeline_poc PRIVATE ${NCCL_INCLUDE_DIRS})
+diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
+index 7f361aa639..9e3860969c 100644
+--- a/cmake/onnxruntime_unittests.cmake
++++ b/cmake/onnxruntime_unittests.cmake
+@@ -854,7 +854,7 @@ endif()
+ if (onnxruntime_USE_NCCL)
+ target_include_directories(onnxruntime_test_utils PRIVATE ${NCCL_INCLUDE_DIRS})
+ endif()
+-onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::mp11 safeint_interface Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::boost safeint_interface Eigen3::Eigen)
+ if (onnxruntime_USE_DML)
+ target_add_dml(onnxruntime_test_utils)
+ endif()
+@@ -944,7 +944,7 @@ if(NOT IOS)
+ target_compile_options(onnx_test_runner_common PRIVATE "/wd4244")
+ endif()
+ onnxruntime_add_include_to_target(onnx_test_runner_common onnxruntime_common onnxruntime_framework
+- onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
++ onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
+
+ add_dependencies(onnx_test_runner_common onnx_test_data_proto ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(onnx_test_runner_common PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT})
+diff --git a/cmake/onnxruntime_util.cmake b/cmake/onnxruntime_util.cmake
+index 851b68a4b6..7db9321551 100644
+--- a/cmake/onnxruntime_util.cmake
++++ b/cmake/onnxruntime_util.cmake
+@@ -9,7 +9,7 @@ file(GLOB_RECURSE onnxruntime_util_srcs CONFIGURE_DEPENDS
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_util_srcs})
+
+ onnxruntime_add_static_library(onnxruntime_util ${onnxruntime_util_srcs})
+-onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::mp11 Eigen3::Eigen)
++onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::boost Eigen3::Eigen)
+ if(UNIX)
+ target_compile_options(onnxruntime_util PUBLIC "-Wno-error=comment")
+ endif()
+diff --git a/cmake/winml.cmake b/cmake/winml.cmake
+index 8f80299cc4..2701da407a 100644
+--- a/cmake/winml.cmake
++++ b/cmake/winml.cmake
+@@ -320,7 +320,7 @@ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD 20)
+ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD_REQUIRED ON)
+
+ # Compiler definitions
+-onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 Eigen3::Eigen)
++onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost Eigen3::Eigen)
+ target_include_directories(winml_adapter PRIVATE ${ONNXRUNTIME_ROOT})
+ add_dependencies(winml_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
+
+@@ -404,7 +404,7 @@ target_include_directories(winml_lib_image PRIVATE ${winml_lib_api_image_dir})
+ target_include_directories(winml_lib_image PRIVATE ${winml_lib_common_dir}/inc)
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}) # for status.h
+-onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::mp11)
++onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::boost)
+ target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core/platform/windows)
+ target_include_directories(winml_lib_image PRIVATE ${REPO_ROOT}/winml)
+ target_include_directories(winml_lib_image PRIVATE ${GSL_INCLUDE_DIR})
+@@ -515,7 +515,7 @@ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core
+ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+ target_include_directories(winml_lib_api PRIVATE ${REPO_ROOT}/winml)
+-target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto Eigen3::Eigen)
++target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto Eigen3::Eigen)
+
+ # Properties
+ set_target_properties(winml_lib_api
+@@ -601,7 +601,7 @@ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_INCL
+ target_include_directories(winml_lib_api_experimental PRIVATE ${REPO_ROOT}/winml)
+ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+-onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
++onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
+
+ # Properties
+ set_target_properties(winml_lib_api_experimental
+@@ -750,7 +750,7 @@ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT})
+ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
+
+ target_include_directories(winml_dll PRIVATE ${REPO_ROOT}/winml)
+-target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 ${GSL_TARGET} Eigen3::Eigen)
++target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost ${GSL_TARGET} Eigen3::Eigen)
+ target_link_libraries(winml_dll PRIVATE debug Dbghelp)
+ # Properties
+ set_target_properties(winml_dll
+diff --git a/cmake/winml_unittests.cmake b/cmake/winml_unittests.cmake
+index eb2d69e162..7b46d1b559 100644
+--- a/cmake/winml_unittests.cmake
++++ b/cmake/winml_unittests.cmake
+@@ -273,7 +273,7 @@ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/in
+ target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})
+ target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_ROOT})
+
+-onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
++onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
+ add_dependencies(winml_test_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(winml_test_adapter PRIVATE ${winml_adapter_dir})
+ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/inc)
+--
+2.54.0
+
diff --git a/0003-system-onnx.patch b/0003-system-onnx.patch
deleted file mode 100644
index 98b1a8c..0000000
--- a/0003-system-onnx.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 515003925bd842de84e4de2bccb33ae84b2fa8c0 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:39:41 -0300
-Subject: [PATCH 03/19] system onnx
-
----
- .../external/onnxruntime_external_deps.cmake | 22 ++-----------------
- 1 file changed, 2 insertions(+), 20 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index fdae0b1a9f..6c488e2f47 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -484,19 +484,8 @@ else()
- endif()
-
- endif()
--onnxruntime_fetchcontent_declare(
-- onnx
-- URL ${DEP_URL_onnx}
-- URL_HASH SHA1=${DEP_SHA1_onnx}
-- PATCH_COMMAND ${ONNXRUNTIME_ONNX_PATCH_COMMAND}
-- EXCLUDE_FROM_ALL
-- FIND_PACKAGE_ARGS NAMES ONNX onnx
--)
--if (NOT onnxruntime_MINIMAL_BUILD)
-- onnxruntime_fetchcontent_makeavailable(onnx)
--else()
-- include(onnx_minimal)
--endif()
-+
-+find_package(ONNX REQUIRED)
-
- if(TARGET ONNX::onnx AND NOT TARGET onnx)
- message(STATUS "Aliasing ONNX::onnx to onnx")
-@@ -554,13 +543,6 @@ set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${W
- # The other libs do not have the problem. All the sources are already there. We can compile them in any order.
- set(onnxruntime_EXTERNAL_DEPENDENCIES onnx_proto flatbuffers::flatbuffers)
-
--if(NOT (onnx_FOUND OR ONNX_FOUND)) # building ONNX from source
-- target_compile_definitions(onnx PUBLIC $<TARGET_PROPERTY:onnx_proto,INTERFACE_COMPILE_DEFINITIONS> PRIVATE "__ONNX_DISABLE_STATIC_REGISTRATION")
-- if (NOT onnxruntime_USE_FULL_PROTOBUF)
-- target_compile_definitions(onnx PUBLIC "__ONNX_NO_DOC_STRINGS")
-- endif()
--endif()
--
- if (onnxruntime_RUN_ONNX_TESTS)
- add_definitions(-DORT_RUN_EXTERNAL_ONNX_TESTS)
- endif()
---
-2.51.0
-
diff --git a/0004-System-safeint.patch b/0004-System-safeint.patch
new file mode 100644
index 0000000..95db7e0
--- /dev/null
+++ b/0004-System-safeint.patch
@@ -0,0 +1,48 @@
+From deadee0082c35e74139984c34ce8276ec1a9f384 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:06:51 -0400
+Subject: [PATCH 04/11] System safeint
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index e64ad4a2d6..819df57c7c 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -375,21 +375,8 @@ if (NOT GSL_FOUND AND NOT onnxruntime_BUILD_SHARED_LIB)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ endif()
+
+-find_path(safeint_SOURCE_DIR NAMES "SafeInt.hpp")
+-if(NOT safeint_SOURCE_DIR)
+- unset(safeint_SOURCE_DIR)
+- onnxruntime_fetchcontent_declare(
+- safeint
+- URL ${DEP_URL_safeint}
+- URL_HASH SHA1=${DEP_SHA1_safeint}
+- EXCLUDE_FROM_ALL
+- )
+-
+- # use fetch content rather than makeavailable because safeint only includes unconditional test targets
+- FetchContent_Populate(safeint)
+-endif()
+ add_library(safeint_interface IMPORTED INTERFACE)
+-target_include_directories(safeint_interface INTERFACE ${safeint_SOURCE_DIR})
++target_include_directories(safeint_interface INTERFACE /usr/include/SafeInt)
+
+
+ # Flatbuffers
+diff --git a/onnxruntime/core/common/safeint.h b/onnxruntime/core/common/safeint.h
+index 7062e99f6c..cd2137bbf8 100644
+--- a/onnxruntime/core/common/safeint.h
++++ b/onnxruntime/core/common/safeint.h
+@@ -24,6 +24,7 @@ class SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException> {
+
+ #define SAFEINT_EXCEPTION_HANDLER_CPP 1
+ #define SafeIntDefaultExceptionHandler SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>
++#define SAFEINT_CPP_THROW noexcept(false)
+
+ #if defined(__GNUC__)
+ #include "onnxruntime_config.h"
+--
+2.54.0
+
diff --git a/0004-disable-power10.patch b/0004-disable-power10.patch
deleted file mode 100644
index 787a1e5..0000000
--- a/0004-disable-power10.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From ec94af756b15b69ffcfdddaab4781569e82067f8 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:41:22 -0300
-Subject: [PATCH 04/19] disable power10
-
----
- cmake/onnxruntime_mlas.cmake | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/cmake/onnxruntime_mlas.cmake b/cmake/onnxruntime_mlas.cmake
-index 698192aee1..4ad40e76c2 100644
---- a/cmake/onnxruntime_mlas.cmake
-+++ b/cmake/onnxruntime_mlas.cmake
-@@ -493,7 +493,8 @@ else()
- set_source_files_properties(${MLAS_SRC_DIR}/power/QuantizePowerVSX.cpp PROPERTIES COMPILE_FLAGS "-mcpu=power9")
- endif()
-
-- check_cxx_compiler_flag("-mcpu=power10" HAS_POWER10)
-+ #check_cxx_compiler_flag("-mcpu=power10" HAS_POWER10)
-+ set(HAS_POWER10 OFF)
- if(HAS_POWER10)
- set(CMAKE_REQUIRED_FLAGS "-mcpu=power10")
- check_cxx_source_compiles("
---
-2.51.0
-
diff --git a/0005-System-eigen3.patch b/0005-System-eigen3.patch
new file mode 100644
index 0000000..8866649
--- /dev/null
+++ b/0005-System-eigen3.patch
@@ -0,0 +1,28 @@
+From 0d93432389e9b43625fd35204a223c5cce75d7d6 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:07:10 -0400
+Subject: [PATCH 05/11] System eigen3
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index 819df57c7c..a96298824b 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -482,10 +482,11 @@ if(TARGET ONNX::onnx_proto AND NOT TARGET onnx_proto)
+ message(STATUS "Aliasing ONNX::onnx_proto to onnx_proto")
+ add_library(onnx_proto ALIAS ONNX::onnx_proto)
+ endif()
+-if(onnxruntime_USE_VCPKG)
+- find_package(Eigen3 CONFIG REQUIRED)
++find_package(Eigen3 CONFIG)
++if(Eigen3_FOUND)
++ get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
+ else()
+- include(external/eigen.cmake)
++ include(eigen) # FetchContent
+ endif()
+
+ if(WIN32)
+--
+2.54.0
+
diff --git a/0005-system-safeint.patch b/0005-system-safeint.patch
deleted file mode 100644
index cfa4484..0000000
--- a/0005-system-safeint.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 172fffd8bdcb9efaafab871704ab26f56e27ff66 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:46:31 -0300
-Subject: [PATCH 05/19] system safeint
-
----
- cmake/external/onnxruntime_external_deps.cmake | 15 +--------------
- onnxruntime/core/common/safeint.h | 1 +
- 2 files changed, 2 insertions(+), 14 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 6c488e2f47..67d86a52a2 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -381,21 +381,8 @@ set(GSL_TARGET "Microsoft.GSL::GSL")
- set(GSL_INCLUDE_DIR "$<TARGET_PROPERTY:${GSL_TARGET},INTERFACE_INCLUDE_DIRECTORIES>")
- onnxruntime_fetchcontent_makeavailable(GSL)
-
--find_path(safeint_SOURCE_DIR NAMES "SafeInt.hpp")
--if(NOT safeint_SOURCE_DIR)
-- unset(safeint_SOURCE_DIR)
-- onnxruntime_fetchcontent_declare(
-- safeint
-- URL ${DEP_URL_safeint}
-- URL_HASH SHA1=${DEP_SHA1_safeint}
-- EXCLUDE_FROM_ALL
-- )
--
-- # use fetch content rather than makeavailable because safeint only includes unconditional test targets
-- FetchContent_Populate(safeint)
--endif()
- add_library(safeint_interface INTERFACE)
--target_include_directories(safeint_interface INTERFACE ${safeint_SOURCE_DIR})
-+target_include_directories(safeint_interface INTERFACE /usr/include/SafeInt)
-
-
- # Flatbuffers
-diff --git a/onnxruntime/core/common/safeint.h b/onnxruntime/core/common/safeint.h
-index 3ee70f369b..0792a68d15 100644
---- a/onnxruntime/core/common/safeint.h
-+++ b/onnxruntime/core/common/safeint.h
-@@ -24,6 +24,7 @@ class SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException> {
-
- #define SAFEINT_EXCEPTION_HANDLER_CPP 1
- #define SafeIntDefaultExceptionHandler SafeIntExceptionHandler<onnxruntime::OnnxRuntimeException>
-+#define SAFEINT_CPP_THROW noexcept(false)
-
- #if defined(__GNUC__)
- #include "onnxruntime_config.h"
---
-2.51.0
-
diff --git a/0006-System-flatbuffers.patch b/0006-System-flatbuffers.patch
new file mode 100644
index 0000000..d8fd220
--- /dev/null
+++ b/0006-System-flatbuffers.patch
@@ -0,0 +1,31 @@
+From 9e6b402f1cc65b0cfcb7259fbd951e092e1478cc Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:07:31 -0400
+Subject: [PATCH 06/11] System flatbuffers
+
+
+diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
+index a96298824b..9df9304495 100644
+--- a/cmake/external/onnxruntime_external_deps.cmake
++++ b/cmake/external/onnxruntime_external_deps.cmake
+@@ -404,7 +404,7 @@ onnxruntime_fetchcontent_declare(
+ URL_HASH SHA1=${DEP_SHA1_flatbuffers}
+ PATCH_COMMAND ${ONNXRUNTIME_FLATBUFFERS_PATCH_COMMAND}
+ EXCLUDE_FROM_ALL
+- FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers
++ FIND_PACKAGE_ARGS 23.5.9 NAMES Flatbuffers flatbuffers FlatBuffers
+ )
+
+ onnxruntime_fetchcontent_makeavailable(flatbuffers)
+@@ -432,6 +432,8 @@ namespace std { using ::getenv; }
+ target_compile_options(flatc PRIVATE /FI${CMAKE_BINARY_DIR}/gdk_cstdlib_wrapper.h)
+ endif()
+ endif()
++else()
++ add_library(flatbuffers::flatbuffers ALIAS flatbuffers::flatbuffers_shared)
+ endif()
+ endif()
+
+--
+2.54.0
+
diff --git a/0006-versioned-onnxruntime_providers_shared.patch b/0006-versioned-onnxruntime_providers_shared.patch
deleted file mode 100644
index 0a0aca9..0000000
--- a/0006-versioned-onnxruntime_providers_shared.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From dffe190d2d17df510fa5f0cdd29d7f43ecd7be84 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:50:20 -0300
-Subject: [PATCH 06/19] versioned onnxruntime_providers_shared
-
----
- cmake/onnxruntime_providers_cpu.cmake | 1 +
- cmake/onnxruntime_providers_cuda.cmake | 1 +
- cmake/onnxruntime_providers_rocm.cmake | 1 +
- 3 files changed, 3 insertions(+)
-
-diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake
-index b9c810e125..83b9cf087e 100644
---- a/cmake/onnxruntime_providers_cpu.cmake
-+++ b/cmake/onnxruntime_providers_cpu.cmake
-@@ -235,6 +235,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
- if (CMAKE_SYSTEM_NAME MATCHES "AIX")
- set_target_properties(onnxruntime_providers_shared PROPERTIES AIX_SHARED_LIBRARY_ARCHIVE OFF)
- endif()
-+ set_target_properties(onnxruntime_providers_shared PROPERTIES VERSION ${ORT_VERSION})
-
- target_compile_definitions(onnxruntime_providers_shared PRIVATE FILE_NAME=\"onnxruntime_providers_shared.dll\")
-
-diff --git a/cmake/onnxruntime_providers_cuda.cmake b/cmake/onnxruntime_providers_cuda.cmake
-index 6a7510a5d8..7c7b5c488f 100644
---- a/cmake/onnxruntime_providers_cuda.cmake
-+++ b/cmake/onnxruntime_providers_cuda.cmake
-@@ -260,6 +260,7 @@
- # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
- set_target_properties(${target} PROPERTIES LINKER_LANGUAGE CUDA)
- set_target_properties(${target} PROPERTIES FOLDER "ONNXRuntime")
-+ set_target_properties(${target} PROPERTIES VERSION ${ORT_VERSION})
-
- if (onnxruntime_ENABLE_CUDA_PROFILING) # configure cupti for cuda profiling
- target_link_libraries(${target} PRIVATE CUDA::cupti)
-diff --git a/cmake/onnxruntime_providers_rocm.cmake b/cmake/onnxruntime_providers_rocm.cmake
-index 108b8b46de..2e50307598 100644
---- a/cmake/onnxruntime_providers_rocm.cmake
-+++ b/cmake/onnxruntime_providers_rocm.cmake
-@@ -154,6 +154,7 @@
-
- set_target_properties(onnxruntime_providers_rocm PROPERTIES LINKER_LANGUAGE CXX)
- set_target_properties(onnxruntime_providers_rocm PROPERTIES FOLDER "ONNXRuntime")
-+ set_target_properties(onnxruntime_providers_rocm PROPERTIES VERSION ${ORT_VERSION})
- target_compile_definitions(onnxruntime_providers_rocm PRIVATE HIPBLAS_V2)
-
- if (onnxruntime_ENABLE_TRAINING)
---
-2.51.0
-
diff --git a/0007-GCC-false-positives.patch b/0007-GCC-false-positives.patch
new file mode 100644
index 0000000..3fff4b0
--- /dev/null
+++ b/0007-GCC-false-positives.patch
@@ -0,0 +1,47 @@
+From 596c3058081eb6218ced020b57bf6a7fe9cf0bfd Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:07:53 -0400
+Subject: [PATCH 07/11] GCC false positives
+
+
+diff --git a/onnxruntime/core/optimizer/initializer.h b/onnxruntime/core/optimizer/initializer.h
+index 96c2ca41f5..d8b3f2353e 100644
+--- a/onnxruntime/core/optimizer/initializer.h
++++ b/onnxruntime/core/optimizer/initializer.h
+@@ -2,6 +2,7 @@
+ // Licensed under the MIT License.
+
+ #pragma once
++#pragma GCC diagnostic ignored "-Wfree-nonheap-object"
+
+ #include <algorithm>
+ #include <functional>
+diff --git a/onnxruntime/core/optimizer/matmul_nbits_fusion.cc b/onnxruntime/core/optimizer/matmul_nbits_fusion.cc
+index 2739ff96b1..307b91d5fb 100644
+--- a/onnxruntime/core/optimizer/matmul_nbits_fusion.cc
++++ b/onnxruntime/core/optimizer/matmul_nbits_fusion.cc
+@@ -1,6 +1,8 @@
+ // Copyright (c) Microsoft Corporation. All rights reserved.
+ // Licensed under the MIT License.
+
++#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
++
+ #include "core/optimizer/matmul_nbits_fusion.h"
+
+ #include "core/common/common.h"
+diff --git a/onnxruntime/test/providers/cpu/ml/zipmap_test.cc b/onnxruntime/test/providers/cpu/ml/zipmap_test.cc
+index e2e8ced73e..bdd3c393f3 100644
+--- a/onnxruntime/test/providers/cpu/ml/zipmap_test.cc
++++ b/onnxruntime/test/providers/cpu/ml/zipmap_test.cc
+@@ -1,6 +1,8 @@
+ // Copyright (c) Microsoft Corporation. All rights reserved.
+ // Licensed under the MIT License.
+
++#pragma GCC diagnostic ignored "-Wfree-nonheap-object"
++
+ #include "gtest/gtest.h"
+ #include "test/providers/provider_test_utils.h"
+ using namespace std;
+--
+2.54.0
+
diff --git a/0007-gcc-false-positives.patch b/0007-gcc-false-positives.patch
deleted file mode 100644
index b944102..0000000
--- a/0007-gcc-false-positives.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 262e03aa7dfa6f0ed91d08da8a0ca6a4b2c766d4 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:51:07 -0300
-Subject: [PATCH 07/19] gcc false positives
-
----
- onnxruntime/core/framework/node_unit.cc | 2 ++
- .../optimizer/selectors_actions/selector_action_transformer.cc | 2 ++
- onnxruntime/core/providers/cpu/tensor/scatter.cc | 2 ++
- onnxruntime/test/framework/sparse_kernels_test.cc | 2 ++
- 4 files changed, 8 insertions(+)
-
-diff --git a/onnxruntime/core/framework/node_unit.cc b/onnxruntime/core/framework/node_unit.cc
-index eadaad226a..a68f97863b 100644
---- a/onnxruntime/core/framework/node_unit.cc
-+++ b/onnxruntime/core/framework/node_unit.cc
-@@ -1,6 +1,8 @@
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // Licensed under the MIT License.
-
-+#pragma GCC diagnostic ignored "-Wstringop-overflow"
-+
- #if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
-
- #include "node_unit.h"
-diff --git a/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc b/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc
-index b1d6c51f69..7b608f10d3 100644
---- a/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc
-+++ b/onnxruntime/core/optimizer/selectors_actions/selector_action_transformer.cc
-@@ -1,6 +1,8 @@
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // Licensed under the MIT License.
-
-+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
-+
- #include "core/optimizer/selectors_actions/selector_action_transformer.h"
-
- #include <algorithm>
-diff --git a/onnxruntime/core/providers/cpu/tensor/scatter.cc b/onnxruntime/core/providers/cpu/tensor/scatter.cc
-index c7a2005924..1f54679393 100644
---- a/onnxruntime/core/providers/cpu/tensor/scatter.cc
-+++ b/onnxruntime/core/providers/cpu/tensor/scatter.cc
-@@ -16,6 +16,8 @@
- #include "orttraining/training_ops/cpu/tensor/gather_elements_grad_impl.h"
- #endif
-
-+#pragma GCC diagnostic ignored "-Warray-bounds"
-+
- namespace onnxruntime {
-
- namespace op_kernel_type_control {
-diff --git a/onnxruntime/test/framework/sparse_kernels_test.cc b/onnxruntime/test/framework/sparse_kernels_test.cc
-index 7bd6b47f52..bbe791ea5c 100644
---- a/onnxruntime/test/framework/sparse_kernels_test.cc
-+++ b/onnxruntime/test/framework/sparse_kernels_test.cc
-@@ -27,6 +27,8 @@
- #include "core/util/math_cpuonly.h"
- #include <Eigen/SparseCore>
-
-+#pragma GCC diagnostic ignored "-Wdangling-reference"
-+
- using namespace ONNX_NAMESPACE;
- using namespace onnxruntime::common;
-
---
-2.51.0
-
diff --git a/0008-disable-pytorch-tests.patch b/0008-disable-pytorch-tests.patch
deleted file mode 100644
index 1e48690..0000000
--- a/0008-disable-pytorch-tests.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 79da4a049293deb667ccbc82a0a9b949a7077567 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:51:29 -0300
-Subject: [PATCH 08/19] disable pytorch tests
-
----
- cmake/onnxruntime_unittests.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
-index ee928f5838..3fda0756e3 100644
---- a/cmake/onnxruntime_unittests.cmake
-+++ b/cmake/onnxruntime_unittests.cmake
-@@ -1209,7 +1209,7 @@ if (NOT onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
- target_compile_options(onnx_test_runner_common PRIVATE -D_CRT_SECURE_NO_WARNINGS)
- endif()
-
-- if (NOT onnxruntime_REDUCED_OPS_BUILD AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
-+ if (FALSE AND NOT onnxruntime_REDUCED_OPS_BUILD AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
- add_test(NAME onnx_test_pytorch_converted
- COMMAND onnx_test_runner ${onnx_SOURCE_DIR}/onnx/backend/test/data/pytorch-converted)
- add_test(NAME onnx_test_pytorch_operator
---
-2.51.0
-
diff --git a/0008-migraphx-Fix-C-20-deprecated-this-capture.patch b/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
new file mode 100644
index 0000000..63d6b49
--- /dev/null
+++ b/0008-migraphx-Fix-C-20-deprecated-this-capture.patch
@@ -0,0 +1,22 @@
+From 02c19022cb64c75a9d8a60ccbae02fd30bc8fa23 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 19:08:31 -0400
+Subject: [PATCH 08/11] migraphx Fix C++20 deprecated this capture
+
+
+diff --git a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
+index 8908013a52..86d6b2a2a7 100644
+--- a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
++++ b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc
+@@ -1394,7 +1394,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
+ map_input_index_[fused_node.Name()] = input_name_index;
+ map_no_input_shape_[fused_node.Name()] = no_input_shape;
+ NodeComputeInfo compute_info;
+- compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
++ compute_info.create_state_func = [=, this](ComputeContext* context, FunctionState* state) {
+ std::unique_ptr<MIGraphXFuncState> p = std::make_unique<MIGraphXFuncState>();
+ *p = {context->allocate_func, context->release_func, context->allocator_handle, map_progs_[context->node_name],
+ map_onnx_string_[context->node_name], options, t_, map_input_index_[context->node_name], &mgx_mu_,
+--
+2.54.0
+
diff --git a/0009-System-dnnl.patch b/0009-System-dnnl.patch
new file mode 100644
index 0000000..bbc7cf8
--- /dev/null
+++ b/0009-System-dnnl.patch
@@ -0,0 +1,90 @@
+From 0052b8a1b5b8c8b67b2c6d91b2eb22fd30248b2b Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 23:20:26 -0400
+Subject: [PATCH 09/11] System dnnl
+
+
+diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
+index 83d1751e55..18e5ab0578 100644
+--- a/cmake/CMakeLists.txt
++++ b/cmake/CMakeLists.txt
+@@ -1330,7 +1330,7 @@ if (onnxruntime_USE_ACL)
+ endif()
+
+ if (onnxruntime_USE_DNNL)
+- include(dnnl)
++ find_package(dnnl REQUIRED)
+ add_compile_definitions(DNNL_OPENMP)
+ endif()
+
+diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
+index 965c4df7a0..5da67385b9 100644
+--- a/cmake/onnxruntime_providers_dnnl.cmake
++++ b/cmake/onnxruntime_providers_dnnl.cmake
+@@ -16,7 +16,7 @@
+ target_compile_options(onnxruntime_providers_dnnl PRIVATE "/analyze:stacksize 131072")
+ endif()
+
+- add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
++ add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
+ target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
+ # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
+ target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
+@@ -42,7 +42,7 @@
+ BUILD_WITH_INSTALL_RPATH TRUE
+ INSTALL_RPATH_USE_LINK_PATH FALSE)
+ elseif(UNIX)
+- set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections -Xlinker -rpath=\$ORIGIN")
++ set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-Xlinker --version-script=${ONNXRUNTIME_ROOT}/core/providers/dnnl/version_script.lds -Xlinker --gc-sections")
+ elseif(WIN32)
+ set_property(TARGET onnxruntime_providers_dnnl APPEND_STRING PROPERTY LINK_FLAGS "-DEF:${ONNXRUNTIME_ROOT}/core/providers/dnnl/symbols.def")
+ else()
+diff --git a/cmake/onnxruntime_python.cmake b/cmake/onnxruntime_python.cmake
+index 39985b23da..c4ea5d227d 100644
+--- a/cmake/onnxruntime_python.cmake
++++ b/cmake/onnxruntime_python.cmake
+@@ -958,26 +958,6 @@ if (onnxruntime_ENABLE_TRAINING)
+ endif()
+ endif()
+
+-if (onnxruntime_USE_DNNL)
+- add_custom_command(
+- TARGET onnxruntime_pybind11_state POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy
+- ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_dnnl>
+- $<TARGET_FILE:onnxruntime_providers_shared>
+- $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
+- )
+-endif()
+-
+-if (onnxruntime_USE_VITISAI)
+- add_custom_command(
+- TARGET onnxruntime_pybind11_state POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy
+- ${DNNL_DLL_PATH} $<TARGET_FILE:onnxruntime_providers_vitisai>
+- $<TARGET_FILE:onnxruntime_providers_shared>
+- $<TARGET_FILE_DIR:${build_output_target}>/onnxruntime/capi/
+- )
+-endif()
+-
+ if (onnxruntime_USE_TENSORRT)
+ add_custom_command(
+ TARGET onnxruntime_pybind11_state POST_BUILD
+diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
+index 9e3860969c..e4e9733d65 100644
+--- a/cmake/onnxruntime_unittests.cmake
++++ b/cmake/onnxruntime_unittests.cmake
+@@ -1237,10 +1237,6 @@ if (NOT onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
+ target_compile_definitions(onnxruntime_test_all PUBLIC -DDNNL_GPU_RUNTIME=OCL)
+ endif()
+ list(APPEND onnx_test_libs dnnl)
+- add_custom_command(
+- TARGET ${test_data_target} POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy ${DNNL_DLL_PATH} $<TARGET_FILE_DIR:${test_data_target}>
+- )
+ endif()
+ if(WIN32)
+ set(wide_get_opt_src_dir ${TEST_SRC_DIR}/win_getopt/wide)
+--
+2.54.0
+
diff --git a/0009-system-date-and-mp11.patch b/0009-system-date-and-mp11.patch
deleted file mode 100644
index f6141ab..0000000
--- a/0009-system-date-and-mp11.patch
+++ /dev/null
@@ -1,690 +0,0 @@
-From 8df56f8ac50fc898335ec99563f57b57459362c3 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Mon, 29 Sep 2025 23:57:51 -0300
-Subject: [PATCH 09/19] system date and mp11
-
----
- .../external/onnxruntime_external_deps.cmake | 31 ++-----------------
- cmake/onnxruntime_framework.cmake | 2 +-
- cmake/onnxruntime_graph.cmake | 2 +-
- cmake/onnxruntime_lora.cmake | 2 +-
- cmake/onnxruntime_opschema_lib.cmake | 4 +--
- cmake/onnxruntime_optimizer.cmake | 2 +-
- cmake/onnxruntime_providers_acl.cmake | 2 +-
- cmake/onnxruntime_providers_armnn.cmake | 2 +-
- cmake/onnxruntime_providers_azure.cmake | 2 +-
- cmake/onnxruntime_providers_cann.cmake | 2 +-
- cmake/onnxruntime_providers_coreml.cmake | 2 +-
- cmake/onnxruntime_providers_cpu.cmake | 4 +--
- cmake/onnxruntime_providers_cuda.cmake | 4 +--
- cmake/onnxruntime_providers_dml.cmake | 2 +-
- cmake/onnxruntime_providers_dnnl.cmake | 2 +-
- cmake/onnxruntime_providers_js.cmake | 2 +-
- cmake/onnxruntime_providers_migraphx.cmake | 4 +--
- cmake/onnxruntime_providers_nnapi.cmake | 2 +-
- cmake/onnxruntime_providers_nv.cmake | 4 +--
- cmake/onnxruntime_providers_openvino.cmake | 2 +-
- cmake/onnxruntime_providers_qnn.cmake | 4 +--
- cmake/onnxruntime_providers_rknpu.cmake | 2 +-
- cmake/onnxruntime_providers_rocm.cmake | 2 +-
- cmake/onnxruntime_providers_tensorrt.cmake | 4 +--
- cmake/onnxruntime_providers_vitisai.cmake | 2 +-
- cmake/onnxruntime_providers_vsinpu.cmake | 2 +-
- cmake/onnxruntime_providers_webgpu.cmake | 2 +-
- cmake/onnxruntime_providers_webnn.cmake | 2 +-
- cmake/onnxruntime_providers_xnnpack.cmake | 2 +-
- cmake/onnxruntime_session.cmake | 2 +-
- cmake/onnxruntime_training.cmake | 14 ++++-----
- cmake/onnxruntime_unittests.cmake | 8 ++---
- cmake/onnxruntime_util.cmake | 2 +-
- cmake/winml.cmake | 10 +++---
- cmake/winml_unittests.cmake | 2 +-
- 35 files changed, 57 insertions(+), 82 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 67d86a52a2..25bdb2f01d 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -240,33 +240,8 @@ endif()
- set(ENABLE_DATE_TESTING OFF CACHE BOOL "" FORCE)
- set(USE_SYSTEM_TZ_DB ON CACHE BOOL "" FORCE)
-
--onnxruntime_fetchcontent_declare(
-- date
-- URL ${DEP_URL_date}
-- URL_HASH SHA1=${DEP_SHA1_date}
-- EXCLUDE_FROM_ALL
-- FIND_PACKAGE_ARGS 3...<4 NAMES date
--)
--onnxruntime_fetchcontent_makeavailable(date)
--
--if(NOT TARGET Boost::mp11)
-- if(onnxruntime_USE_VCPKG)
-- find_package(Boost REQUIRED)
-- message(STATUS "Aliasing Boost::headers to Boost::mp11")
-- add_library(Boost::mp11 ALIAS Boost::headers)
-- else()
-- onnxruntime_fetchcontent_declare(
-- mp11
-- URL ${DEP_URL_mp11}
-- EXCLUDE_FROM_ALL
-- FIND_PACKAGE_ARGS NAMES Boost
-- )
-- onnxruntime_fetchcontent_makeavailable(mp11)
-- if(NOT TARGET Boost::mp11)
-- add_library(Boost::mp11 ALIAS Boost::headers)
-- endif()
-- endif()
--endif()
-+find_package(date)
-+find_package(Boost COMPONENTS mp11)
-
- set(JSON_BuildTests OFF CACHE INTERNAL "")
- set(JSON_Install OFF CACHE INTERNAL "")
-@@ -522,7 +497,7 @@ if (onnxruntime_USE_XNNPACK)
- endif()
-
- set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${WIL_TARGET} nlohmann_json::nlohmann_json
-- onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::mp11 safeint_interface
-+ onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::boost safeint_interface
- flatbuffers::flatbuffers ${GSL_TARGET} ${ABSEIL_LIBS} date::date
- ${ONNXRUNTIME_CLOG_TARGET_NAME} Eigen3::Eigen)
-
-diff --git a/cmake/onnxruntime_framework.cmake b/cmake/onnxruntime_framework.cmake
-index e96bb32a7c..a8ddb682c8 100644
---- a/cmake/onnxruntime_framework.cmake
-+++ b/cmake/onnxruntime_framework.cmake
-@@ -81,7 +81,7 @@ endif()
- if (onnxruntime_ENABLE_ATEN)
- onnxruntime_add_include_to_target(onnxruntime_framework dlpack::dlpack)
- endif()
--onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 nlohmann_json::nlohmann_json Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost nlohmann_json::nlohmann_json Eigen3::Eigen)
-
- if (onnxruntime_USE_MIMALLOC)
- onnxruntime_add_include_to_target(onnxruntime_framework mimalloc-static)
-diff --git a/cmake/onnxruntime_graph.cmake b/cmake/onnxruntime_graph.cmake
-index 4d51325b84..3cd7802156 100644
---- a/cmake/onnxruntime_graph.cmake
-+++ b/cmake/onnxruntime_graph.cmake
-@@ -96,7 +96,7 @@ endif()
-
- onnxruntime_add_static_library(onnxruntime_graph ${onnxruntime_graph_src} ${orttraining_graph_src})
- add_dependencies(onnxruntime_graph onnx_proto flatbuffers::flatbuffers)
--onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
-+onnxruntime_add_include_to_target(onnxruntime_graph onnxruntime_common ${WIL_TARGET} onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
-
- if (MSVC)
- set(ONNX_PROTOBUF_NATVIS_FILE "onnx_protobuf.natvis")
-diff --git a/cmake/onnxruntime_lora.cmake b/cmake/onnxruntime_lora.cmake
-index 7ba48454d9..84c35eff83 100644
---- a/cmake/onnxruntime_lora.cmake
-+++ b/cmake/onnxruntime_lora.cmake
-@@ -10,7 +10,7 @@ file(GLOB onnxruntime_lora_srcs CONFIGURE_DEPENDS
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_lora_srcs})
-
- onnxruntime_add_static_library(onnxruntime_lora ${onnxruntime_lora_srcs})
--onnxruntime_add_include_to_target(onnxruntime_lora onnx flatbuffers::flatbuffers Boost::mp11 ${GSL_TARGET})
-+onnxruntime_add_include_to_target(onnxruntime_lora onnx flatbuffers::flatbuffers Boost::boost ${GSL_TARGET})
- target_link_libraries(onnxruntime_lora onnxruntime_framework)
-
- if(onnxruntime_ENABLE_INSTRUMENT)
-diff --git a/cmake/onnxruntime_opschema_lib.cmake b/cmake/onnxruntime_opschema_lib.cmake
-index 8a5b4bc907..52dd9ba343 100644
---- a/cmake/onnxruntime_opschema_lib.cmake
-+++ b/cmake/onnxruntime_opschema_lib.cmake
-@@ -27,10 +27,10 @@ target_compile_options(ort_opschema_lib PRIVATE -D_OPSCHEMA_LIB_=1)
- if(NOT MSVC)
- target_compile_options(ort_opschema_lib PRIVATE "-Wno-parentheses")
- endif()
--set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 safeint_interface)
-+set (OPSCHEMA_LIB_DEPENDENCIES onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost safeint_interface)
-
- # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" is found
- target_include_directories(ort_opschema_lib PRIVATE ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CMAKE_CURRENT_BINARY_DIR})
--onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(ort_opschema_lib onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- add_dependencies(ort_opschema_lib ${OPSCHEMA_LIB_DEPENDENCIES})
-
-diff --git a/cmake/onnxruntime_optimizer.cmake b/cmake/onnxruntime_optimizer.cmake
-index 173c872d4c..b77d610e17 100644
---- a/cmake/onnxruntime_optimizer.cmake
-+++ b/cmake/onnxruntime_optimizer.cmake
-@@ -113,7 +113,7 @@ endif()
-
- onnxruntime_add_static_library(onnxruntime_optimizer ${onnxruntime_optimizer_srcs})
-
--onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(onnxruntime_optimizer onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_optimizer PRIVATE ${ONNXRUNTIME_ROOT})
- if (onnxruntime_ENABLE_TRAINING)
- target_include_directories(onnxruntime_optimizer PRIVATE ${ORTTRAINING_ROOT})
-diff --git a/cmake/onnxruntime_providers_acl.cmake b/cmake/onnxruntime_providers_acl.cmake
-index ec80ce7c78..da9975e95a 100644
---- a/cmake/onnxruntime_providers_acl.cmake
-+++ b/cmake/onnxruntime_providers_acl.cmake
-@@ -10,7 +10,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_acl_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_acl ${onnxruntime_providers_acl_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_acl
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen
- )
-
- target_link_libraries(onnxruntime_providers_acl -L$ENV{LD_LIBRARY_PATH})
-diff --git a/cmake/onnxruntime_providers_armnn.cmake b/cmake/onnxruntime_providers_armnn.cmake
-index d6e0f3bd1b..a623cd37b2 100644
---- a/cmake/onnxruntime_providers_armnn.cmake
-+++ b/cmake/onnxruntime_providers_armnn.cmake
-@@ -10,7 +10,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_armnn_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_armnn ${onnxruntime_providers_armnn_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_armnn
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen
- )
-
- add_dependencies(onnxruntime_providers_armnn ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_azure.cmake b/cmake/onnxruntime_providers_azure.cmake
-index 1b03563848..b856ce2e56 100644
---- a/cmake/onnxruntime_providers_azure.cmake
-+++ b/cmake/onnxruntime_providers_azure.cmake
-@@ -8,7 +8,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_azure_src})
- onnxruntime_add_static_library(onnxruntime_providers_azure ${onnxruntime_providers_azure_src})
- add_dependencies(onnxruntime_providers_azure ${onnxruntime_EXTERNAL_DEPENDENCIES})
-- onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_azure onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost)
- target_link_libraries(onnxruntime_providers_azure PRIVATE onnx onnxruntime_common onnxruntime_framework)
- set_target_properties(onnxruntime_providers_azure PROPERTIES FOLDER "ONNXRuntime")
- set_target_properties(onnxruntime_providers_azure PROPERTIES LINKER_LANGUAGE CXX)
-diff --git a/cmake/onnxruntime_providers_cann.cmake b/cmake/onnxruntime_providers_cann.cmake
-index 30c13c0b4a..fa5ee74b26 100644
---- a/cmake/onnxruntime_providers_cann.cmake
-+++ b/cmake/onnxruntime_providers_cann.cmake
-@@ -18,7 +18,7 @@
- set(onnxruntime_providers_cann_src ${onnxruntime_providers_cann_cc_srcs} ${onnxruntime_providers_cann_shared_srcs})
-
- onnxruntime_add_shared_library_module(onnxruntime_providers_cann ${onnxruntime_providers_cann_src})
-- onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_cann onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
-
- add_dependencies(onnxruntime_providers_cann onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_link_libraries(onnxruntime_providers_cann PRIVATE Eigen3::Eigen ascendcl acl_op_compiler fmk_onnx_parser ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED})
-diff --git a/cmake/onnxruntime_providers_coreml.cmake b/cmake/onnxruntime_providers_coreml.cmake
-index 0dd6e77c4b..b0884f8c05 100644
---- a/cmake/onnxruntime_providers_coreml.cmake
-+++ b/cmake/onnxruntime_providers_coreml.cmake
-@@ -151,7 +151,7 @@ onnxruntime_add_static_library(onnxruntime_providers_coreml
- )
-
- onnxruntime_add_include_to_target(onnxruntime_providers_coreml
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost
- safeint_interface nlohmann_json::nlohmann_json
- )
-
-diff --git a/cmake/onnxruntime_providers_cpu.cmake b/cmake/onnxruntime_providers_cpu.cmake
-index 83b9cf087e..b12f56497f 100644
---- a/cmake/onnxruntime_providers_cpu.cmake
-+++ b/cmake/onnxruntime_providers_cpu.cmake
-@@ -155,7 +155,7 @@ if (MSVC)
- # target_compile_options(onnxruntime_providers PRIVATE "/wd4244")
- # endif()
- endif()
--onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+onnxruntime_add_include_to_target(onnxruntime_providers onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
-
- if (onnxruntime_BUILD_MS_EXPERIMENTAL_OPS)
- target_compile_definitions(onnxruntime_providers PRIVATE BUILD_MS_EXPERIMENTAL_OPS=1)
-@@ -241,7 +241,7 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
-
-
- # On Apple/Unix we don't directly link with this library as we load it with RTLD_GLOBAL, so this is only set to the actual library on WIN32
-- # But, in exchange we need to manually add Boost::mp11 to include dirs for every EP.
-+ # But, in exchange we need to manually add Boost::boost to include dirs for every EP.
- # It is because "provider_api.h" includes core/framework/op_kernel.h which includes op_kernel.h which includes "boost/mp11.hpp"
- set(ONNXRUNTIME_PROVIDERS_SHARED)
-
-diff --git a/cmake/onnxruntime_providers_cuda.cmake b/cmake/onnxruntime_providers_cuda.cmake
-index 7c7b5c488f..6577988b5f 100644
---- a/cmake/onnxruntime_providers_cuda.cmake
-+++ b/cmake/onnxruntime_providers_cuda.cmake
-@@ -227,7 +227,7 @@
- add_dependencies(${target} onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
- if(onnxruntime_CUDA_MINIMAL)
- target_compile_definitions(${target} PRIVATE USE_CUDA_MINIMAL)
-- target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface CUDA::cudart)
-+ target_link_libraries(${target} PRIVATE ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface CUDA::cudart)
- else()
- include(cudnn_frontend) # also defines CUDNN::*
- if (onnxruntime_USE_CUDA_NHWC_OPS)
-@@ -238,7 +238,7 @@
- endif()
- endif()
- target_link_libraries(${target} PRIVATE CUDA::cublasLt CUDA::cublas CUDNN::cudnn_all cudnn_frontend CUDA::curand CUDA::cufft CUDA::cudart
-- ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 safeint_interface)
-+ ${ABSEIL_LIBS} ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost safeint_interface)
- endif()
-
- if (onnxruntime_USE_TRITON_KERNEL)
-diff --git a/cmake/onnxruntime_providers_dml.cmake b/cmake/onnxruntime_providers_dml.cmake
-index c8cf0b21a9..99a82ac063 100644
---- a/cmake/onnxruntime_providers_dml.cmake
-+++ b/cmake/onnxruntime_providers_dml.cmake
-@@ -9,7 +9,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_dml_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_dml ${onnxruntime_providers_dml_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_dml
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${WIL_TARGET}
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${WIL_TARGET}
- )
- if(TARGET Microsoft::DirectX-Headers)
- onnxruntime_add_include_to_target(onnxruntime_providers_dml Microsoft::DirectX-Headers)
-diff --git a/cmake/onnxruntime_providers_dnnl.cmake b/cmake/onnxruntime_providers_dnnl.cmake
-index 07926a34d5..965c4df7a0 100644
---- a/cmake/onnxruntime_providers_dnnl.cmake
-+++ b/cmake/onnxruntime_providers_dnnl.cmake
-@@ -19,7 +19,7 @@
- add_dependencies(onnxruntime_providers_dnnl onnxruntime_providers_shared project_dnnl ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_include_directories(onnxruntime_providers_dnnl PRIVATE ${ONNXRUNTIME_ROOT} ${DNNL_INCLUDE_DIR} ${DNNL_OCL_INCLUDE_DIR})
- # ${CMAKE_CURRENT_BINARY_DIR} is so that #include "onnxruntime_config.h" inside tensor_shape.h is found
-- target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
-+ target_link_libraries(onnxruntime_providers_dnnl PRIVATE dnnl ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${ABSEIL_LIBS} ${GSL_TARGET} safeint_interface Eigen3::Eigen)
- install(FILES ${PROJECT_SOURCE_DIR}/../include/onnxruntime/core/providers/dnnl/dnnl_provider_options.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/onnxruntime/)
- set_target_properties(onnxruntime_providers_dnnl PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_js.cmake b/cmake/onnxruntime_providers_js.cmake
-index fefbab5082..800c31b83d 100644
---- a/cmake/onnxruntime_providers_js.cmake
-+++ b/cmake/onnxruntime_providers_js.cmake
-@@ -19,7 +19,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT} FILES ${onnxruntime_providers_js_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_js ${onnxruntime_providers_js_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_js
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::mp11 Eigen3::Eigen
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers Boost::boost Eigen3::Eigen
- )
-
- add_dependencies(onnxruntime_providers_js ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_migraphx.cmake b/cmake/onnxruntime_providers_migraphx.cmake
-index 495ff09332..39b10e2bab 100644
---- a/cmake/onnxruntime_providers_migraphx.cmake
-+++ b/cmake/onnxruntime_providers_migraphx.cmake
-@@ -43,9 +43,9 @@
- )
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_migraphx_cc_srcs})
- onnxruntime_add_shared_library_module(onnxruntime_providers_migraphx ${onnxruntime_providers_migraphx_cc_srcs})
-- onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_common onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
- add_dependencies(onnxruntime_providers_migraphx onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-- target_link_libraries(onnxruntime_providers_migraphx PRIVATE ${migraphx_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ target_link_libraries(onnxruntime_providers_migraphx PRIVATE ${migraphx_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} onnx flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_providers_migraphx PRIVATE ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/amdgpu/onnxruntime)
- set_target_properties(onnxruntime_providers_migraphx PROPERTIES LINKER_LANGUAGE CXX)
- set_target_properties(onnxruntime_providers_migraphx PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_nnapi.cmake b/cmake/onnxruntime_providers_nnapi.cmake
-index b718a976eb..6e5174afb5 100644
---- a/cmake/onnxruntime_providers_nnapi.cmake
-+++ b/cmake/onnxruntime_providers_nnapi.cmake
-@@ -60,7 +60,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nnapi_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_nnapi ${onnxruntime_providers_nnapi_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_nnapi
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
- )
- target_link_libraries(onnxruntime_providers_nnapi)
- add_dependencies(onnxruntime_providers_nnapi onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_nv.cmake b/cmake/onnxruntime_providers_nv.cmake
-index 06d44b5289..7fd3827ff9 100644
---- a/cmake/onnxruntime_providers_nv.cmake
-+++ b/cmake/onnxruntime_providers_nv.cmake
-@@ -156,10 +156,10 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
- onnxruntime_add_shared_library_module(onnxruntime_providers_nv_tensorrt_rtx ${onnxruntime_providers_nv_tensorrt_rtx_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_common)
-- target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+ target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
- add_dependencies(onnxruntime_providers_nv_tensorrt_rtx onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
- if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
-- target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
-+ target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
- else()
- target_link_libraries(onnxruntime_providers_nv_tensorrt_rtx PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
- endif()
-diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
-index 03f67983c7..5f0af27b28 100644
---- a/cmake/onnxruntime_providers_openvino.cmake
-+++ b/cmake/onnxruntime_providers_openvino.cmake
-@@ -54,7 +54,7 @@
- endif()
- add_dependencies(onnxruntime_providers_openvino onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_include_directories(onnxruntime_providers_openvino SYSTEM PUBLIC ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR} ${OpenVINO_INCLUDE_DIR} ${OPENVINO_INCLUDE_DIR_LIST} ${PYTHON_INCLUDE_DIRS} $ENV{OPENCL_INCS} $ENV{OPENCL_INCS}/../../cl_headers/)
-- target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::mp11 ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen)
-+ target_link_libraries(onnxruntime_providers_openvino ${ONNXRUNTIME_PROVIDERS_SHARED} Boost::boost ${OPENVINO_LIB_LIST} ${ABSEIL_LIBS} Eigen3::Eigen)
-
- target_compile_definitions(onnxruntime_providers_openvino PRIVATE FILE_NAME=\"onnxruntime_providers_openvino.dll\")
-
-diff --git a/cmake/onnxruntime_providers_qnn.cmake b/cmake/onnxruntime_providers_qnn.cmake
-index 9fe4d9fadc..0377a7cc74 100644
---- a/cmake/onnxruntime_providers_qnn.cmake
-+++ b/cmake/onnxruntime_providers_qnn.cmake
-@@ -43,7 +43,7 @@
- onnxruntime_add_static_library(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_qnn onnxruntime_common onnxruntime_framework onnx
- onnx_proto protobuf::libprotobuf-lite
-- flatbuffers::flatbuffers Boost::mp11
-+ flatbuffers::flatbuffers Boost::boost
- nlohmann_json::nlohmann_json)
- add_dependencies(onnxruntime_providers_qnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
- set_target_properties(onnxruntime_providers_qnn PROPERTIES CXX_STANDARD_REQUIRED ON)
-@@ -94,7 +94,7 @@
-
- onnxruntime_add_shared_library_module(onnxruntime_providers_qnn ${onnxruntime_providers_qnn_all_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_qnn ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} onnx
-- onnxruntime_common Boost::mp11 safeint_interface
-+ onnxruntime_common Boost::boost safeint_interface
- nlohmann_json::nlohmann_json)
- target_link_libraries(onnxruntime_providers_qnn PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED} ${ABSEIL_LIBS} ${CMAKE_DL_LIBS})
- add_dependencies(onnxruntime_providers_qnn onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_rknpu.cmake b/cmake/onnxruntime_providers_rknpu.cmake
-index 408bcfde06..b8149784ea 100644
---- a/cmake/onnxruntime_providers_rknpu.cmake
-+++ b/cmake/onnxruntime_providers_rknpu.cmake
-@@ -24,7 +24,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_rknpu_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_rknpu ${onnxruntime_providers_rknpu_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_rknpu
-- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface
- )
- target_link_libraries(onnxruntime_providers_rknpu PRIVATE -lrknpu_ddk)
- add_dependencies(onnxruntime_providers_rknpu onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
-diff --git a/cmake/onnxruntime_providers_rocm.cmake b/cmake/onnxruntime_providers_rocm.cmake
-index 2e50307598..cc9827a094 100644
---- a/cmake/onnxruntime_providers_rocm.cmake
-+++ b/cmake/onnxruntime_providers_rocm.cmake
-@@ -124,7 +124,7 @@
- target_compile_options(onnxruntime_providers_rocm PRIVATE -Wno-undefined-var-template)
- endif()
-
-- onnxruntime_add_include_to_target(onnxruntime_providers_rocm onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_rocm onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface)
- if (onnxruntime_ENABLE_TRAINING_OPS)
- onnxruntime_add_include_to_target(onnxruntime_providers_rocm onnxruntime_training)
- target_link_libraries(onnxruntime_providers_rocm PRIVATE onnxruntime_training)
-diff --git a/cmake/onnxruntime_providers_tensorrt.cmake b/cmake/onnxruntime_providers_tensorrt.cmake
-index 59c7db9999..8e371b6c75 100644
---- a/cmake/onnxruntime_providers_tensorrt.cmake
-+++ b/cmake/onnxruntime_providers_tensorrt.cmake
-@@ -175,10 +175,10 @@
-
- onnxruntime_add_shared_library_module(onnxruntime_providers_tensorrt ${onnxruntime_providers_tensorrt_all_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_tensorrt onnxruntime_common)
-- target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+ target_link_libraries(onnxruntime_providers_tensorrt PRIVATE Eigen3::Eigen onnx flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
- add_dependencies(onnxruntime_providers_tensorrt onnxruntime_providers_shared ${onnxruntime_EXTERNAL_DEPENDENCIES})
- if (onnxruntime_USE_TENSORRT_BUILTIN_PARSER)
-- target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
-+ target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
- else()
- target_link_libraries(onnxruntime_providers_tensorrt PRIVATE ${onnxparser_link_libs} ${trt_link_libs} ${ONNXRUNTIME_PROVIDERS_SHARED} ${PROTOBUF_LIB} flatbuffers::flatbuffers ${ABSEIL_LIBS} PUBLIC CUDA::cudart)
- endif()
-diff --git a/cmake/onnxruntime_providers_vitisai.cmake b/cmake/onnxruntime_providers_vitisai.cmake
-index e40521e564..52dde702a8 100644
---- a/cmake/onnxruntime_providers_vitisai.cmake
-+++ b/cmake/onnxruntime_providers_vitisai.cmake
-@@ -20,7 +20,7 @@
- )
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_vitisai_cc_srcs})
- onnxruntime_add_shared_library(onnxruntime_providers_vitisai ${onnxruntime_providers_vitisai_cc_srcs})
-- onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_vitisai ${ONNXRUNTIME_PROVIDERS_SHARED} ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost)
- target_link_libraries(onnxruntime_providers_vitisai PRIVATE ${ONNXRUNTIME_PROVIDERS_SHARED})
- if(MSVC)
- onnxruntime_add_include_to_target(onnxruntime_providers_vitisai dbghelp)
-diff --git a/cmake/onnxruntime_providers_vsinpu.cmake b/cmake/onnxruntime_providers_vsinpu.cmake
-index e3b6c3c302..1d86af395e 100644
---- a/cmake/onnxruntime_providers_vsinpu.cmake
-+++ b/cmake/onnxruntime_providers_vsinpu.cmake
-@@ -10,7 +10,7 @@
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_vsinpu_srcs})
- add_library(onnxruntime_providers_vsinpu ${onnxruntime_providers_vsinpu_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_vsinpu
-- onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::mp11
-+ onnxruntime_common onnxruntime_framework onnx onnx_proto protobuf::libprotobuf-lite flatbuffers Boost::boost
- safeint_interface )
- add_dependencies(onnxruntime_providers_vsinpu ${onnxruntime_EXTERNAL_DEPENDENCIES})
- set_target_properties(onnxruntime_providers_vsinpu PROPERTIES FOLDER "ONNXRuntime" LINKER_LANGUAGE CXX)
-diff --git a/cmake/onnxruntime_providers_webgpu.cmake b/cmake/onnxruntime_providers_webgpu.cmake
-index 4bbca7b1b8..41290e2cee 100644
---- a/cmake/onnxruntime_providers_webgpu.cmake
-+++ b/cmake/onnxruntime_providers_webgpu.cmake
-@@ -21,7 +21,7 @@
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webgpu_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_webgpu ${onnxruntime_providers_webgpu_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_webgpu
-- onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
-
- if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
- # target "emdawnwebgpu_c" is created by Dawn, including "-fno-exceptions" in its compile options by default.
-diff --git a/cmake/onnxruntime_providers_webnn.cmake b/cmake/onnxruntime_providers_webnn.cmake
-index 05c63c2224..9187c2063c 100644
---- a/cmake/onnxruntime_providers_webnn.cmake
-+++ b/cmake/onnxruntime_providers_webnn.cmake
-@@ -18,7 +18,7 @@
-
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_providers_webnn_cc_srcs})
- onnxruntime_add_static_library(onnxruntime_providers_webnn ${onnxruntime_providers_webnn_cc_srcs})
-- onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_providers_webnn onnxruntime_common onnx onnx_proto flatbuffers::flatbuffers Boost::boost safeint_interface)
-
- add_dependencies(onnxruntime_providers_webnn onnx ${onnxruntime_EXTERNAL_DEPENDENCIES})
- set_target_properties(onnxruntime_providers_webnn PROPERTIES FOLDER "ONNXRuntime")
-diff --git a/cmake/onnxruntime_providers_xnnpack.cmake b/cmake/onnxruntime_providers_xnnpack.cmake
-index 796536ac9d..f5ff49475d 100644
---- a/cmake/onnxruntime_providers_xnnpack.cmake
-+++ b/cmake/onnxruntime_providers_xnnpack.cmake
-@@ -13,7 +13,7 @@
- onnxruntime_add_static_library(onnxruntime_providers_xnnpack ${onnxruntime_providers_xnnpack_cc_srcs})
- onnxruntime_add_include_to_target(onnxruntime_providers_xnnpack
- onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} XNNPACK pthreadpool
-- flatbuffers::flatbuffers Boost::mp11 safeint_interface
-+ flatbuffers::flatbuffers Boost::boost safeint_interface
- )
-
- # TODO fix stringop-overflow warnings
-diff --git a/cmake/onnxruntime_session.cmake b/cmake/onnxruntime_session.cmake
-index bd46c7476d..fbb09b47e5 100644
---- a/cmake/onnxruntime_session.cmake
-+++ b/cmake/onnxruntime_session.cmake
-@@ -37,7 +37,7 @@ endif()
- source_group(TREE ${REPO_ROOT} FILES ${onnxruntime_session_srcs})
-
- onnxruntime_add_static_library(onnxruntime_session ${onnxruntime_session_srcs})
--onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_session onnxruntime_common onnxruntime_framework onnxruntime_lora onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::boost safeint_interface nlohmann_json::nlohmann_json Eigen3::Eigen)
- target_link_libraries(onnxruntime_session PRIVATE onnxruntime_lora)
- if(onnxruntime_ENABLE_INSTRUMENT)
- target_compile_definitions(onnxruntime_session PUBLIC ONNXRUNTIME_ENABLE_INSTRUMENT)
-diff --git a/cmake/onnxruntime_training.cmake b/cmake/onnxruntime_training.cmake
-index f289c73071..330a055c4e 100644
---- a/cmake/onnxruntime_training.cmake
-+++ b/cmake/onnxruntime_training.cmake
-@@ -30,7 +30,7 @@ list(REMOVE_ITEM onnxruntime_training_srcs ${onnxruntime_training_framework_excl
-
- onnxruntime_add_static_library(onnxruntime_training ${onnxruntime_training_srcs})
- add_dependencies(onnxruntime_training onnx tensorboard ${onnxruntime_EXTERNAL_DEPENDENCIES})
--onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::mp11 safeint_interface Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_training onnxruntime_common onnx onnx_proto tensorboard ${PROTOBUF_LIB} flatbuffers::flatbuffers re2::re2 Boost::boost safeint_interface Eigen3::Eigen)
-
- # fix event_writer.cc 4100 warning
- if(WIN32)
-@@ -73,7 +73,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- target_link_libraries(onnxruntime_training_runner PRIVATE Python::Python)
- endif()
-
-- onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+ onnxruntime_add_include_to_target(onnxruntime_training_runner onnxruntime_training onnxruntime_framework onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
-
- target_include_directories(onnxruntime_training_runner PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} PUBLIC ${onnxruntime_graph_header})
- target_link_libraries(onnxruntime_training_runner PRIVATE nlohmann_json::nlohmann_json)
-@@ -108,7 +108,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- "${ORTTRAINING_SOURCE_DIR}/models/mnist/main.cc"
- )
- onnxruntime_add_executable(onnxruntime_training_mnist ${training_mnist_src})
-- onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_training_mnist onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_training_mnist PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
-
- set(ONNXRUNTIME_LIBS
-@@ -131,7 +131,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- ${ONNXRUNTIME_MLAS_LIBS}
- onnxruntime_common
- onnxruntime_flatbuffers
-- Boost::mp11 safeint_interface Eigen3::Eigen
-+ Boost::boost safeint_interface Eigen3::Eigen
- )
-
- if(UNIX AND NOT APPLE)
-@@ -150,7 +150,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- "${ORTTRAINING_SOURCE_DIR}/models/squeezenet/*.cc"
- )
- onnxruntime_add_executable(onnxruntime_training_squeezenet ${training_squeezene_src})
-- onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_training_squeezenet onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_training_squeezenet PUBLIC ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
-
- if(UNIX AND NOT APPLE)
-@@ -173,7 +173,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- endif()
- endif()
-
-- onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_training_bert onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_training_bert PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
-
- # ROCM provider sources are generated, need to add include directory for generated headers
-@@ -197,7 +197,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
- endif()
- endif()
-
-- onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::mp11 safeint_interface)
-+ onnxruntime_add_include_to_target(onnxruntime_training_pipeline_poc onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} onnxruntime_training flatbuffers::flatbuffers Boost::boost safeint_interface)
- target_include_directories(onnxruntime_training_pipeline_poc PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT} ${ORTTRAINING_ROOT} ${MPI_CXX_INCLUDE_DIRS} ${CXXOPTS} ${extra_includes} ${onnxruntime_graph_header} ${onnxruntime_exec_src_dir} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/onnx onnxruntime_training_runner)
- if (onnxruntime_USE_NCCL)
- target_include_directories(onnxruntime_training_pipeline_poc PRIVATE ${NCCL_INCLUDE_DIRS})
-diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake
-index 3fda0756e3..6bfc12662f 100644
---- a/cmake/onnxruntime_unittests.cmake
-+++ b/cmake/onnxruntime_unittests.cmake
-@@ -792,7 +792,7 @@ endif()
- if (onnxruntime_USE_ROCM)
- target_include_directories(onnxruntime_test_utils PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/amdgpu/onnxruntime ${CMAKE_CURRENT_BINARY_DIR}/amdgpu/orttraining)
- endif()
--onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::mp11 safeint_interface Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_test_utils onnxruntime_common onnxruntime_framework onnxruntime_session GTest::gtest GTest::gmock onnx onnx_proto flatbuffers::flatbuffers nlohmann_json::nlohmann_json Boost::boost safeint_interface Eigen3::Eigen)
- if (onnxruntime_USE_DML)
- target_add_dml(onnxruntime_test_utils)
- endif()
-@@ -822,7 +822,7 @@ if(NOT IOS)
- target_compile_options(onnx_test_runner_common PRIVATE "/wd4244")
- endif()
- onnxruntime_add_include_to_target(onnx_test_runner_common onnxruntime_common onnxruntime_framework
-- onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::mp11 safeint_interface Eigen3::Eigen)
-+ onnxruntime_test_utils onnx onnx_proto re2::re2 flatbuffers::flatbuffers Boost::boost safeint_interface Eigen3::Eigen)
-
- add_dependencies(onnx_test_runner_common onnx_test_data_proto ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_include_directories(onnx_test_runner_common PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${ONNXRUNTIME_ROOT})
-@@ -1935,9 +1935,9 @@ if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
- add_dependencies(test_execution_provider onnxruntime_providers_shared onnx ${ABSEIL_LIBS})
- if (CMAKE_SYSTEM_NAME MATCHES "AIX")
- target_link_options(test_execution_provider PRIVATE -Wl,-brtl -lonnxruntime_providers_shared)
-- target_link_libraries(test_execution_provider PRIVATE ${ABSEIL_LIBS} Boost::mp11)
-+ target_link_libraries(test_execution_provider PRIVATE ${ABSEIL_LIBS} Boost::boost)
- else()
-- target_link_libraries(test_execution_provider PRIVATE onnxruntime_providers_shared ${ABSEIL_LIBS} Boost::mp11)
-+ target_link_libraries(test_execution_provider PRIVATE onnxruntime_providers_shared ${ABSEIL_LIBS} Boost::boost)
- endif()
- target_include_directories(test_execution_provider PRIVATE $<TARGET_PROPERTY:onnx,INTERFACE_INCLUDE_DIRECTORIES>)
- target_include_directories(test_execution_provider PRIVATE $<TARGET_PROPERTY:onnxruntime_common,INTERFACE_INCLUDE_DIRECTORIES>)
-diff --git a/cmake/onnxruntime_util.cmake b/cmake/onnxruntime_util.cmake
-index 17e64ca2c1..11dd02005a 100644
---- a/cmake/onnxruntime_util.cmake
-+++ b/cmake/onnxruntime_util.cmake
-@@ -9,7 +9,7 @@ file(GLOB_RECURSE onnxruntime_util_srcs CONFIGURE_DEPENDS
- source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_util_srcs})
-
- onnxruntime_add_static_library(onnxruntime_util ${onnxruntime_util_srcs})
--onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::mp11 Eigen3::Eigen)
-+onnxruntime_add_include_to_target(onnxruntime_util onnxruntime_common onnx onnx_proto ${PROTOBUF_LIB} Boost::boost Eigen3::Eigen)
- if(UNIX)
- target_compile_options(onnxruntime_util PUBLIC "-Wno-error=comment")
- endif()
-diff --git a/cmake/winml.cmake b/cmake/winml.cmake
-index ef635c0c8c..e2dbdb5508 100644
---- a/cmake/winml.cmake
-+++ b/cmake/winml.cmake
-@@ -321,7 +321,7 @@ set_target_properties(winml_adapter PROPERTIES CXX_STANDARD 17)
- set_target_properties(winml_adapter PROPERTIES CXX_STANDARD_REQUIRED ON)
-
- # Compiler definitions
--onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 Eigen3::Eigen)
-+onnxruntime_add_include_to_target(winml_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost Eigen3::Eigen)
- target_include_directories(winml_adapter PRIVATE ${ONNXRUNTIME_ROOT})
- add_dependencies(winml_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
-
-@@ -405,7 +405,7 @@ target_include_directories(winml_lib_image PRIVATE ${winml_lib_api_image_dir})
- target_include_directories(winml_lib_image PRIVATE ${winml_lib_common_dir}/inc)
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}) # for status.h
--onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::mp11)
-+onnxruntime_add_include_to_target(winml_lib_image onnx onnx_proto ${PROTOBUF_LIB} re2::re2 flatbuffers::flatbuffers Boost::boost)
- target_include_directories(winml_lib_image PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core/platform/windows)
- target_include_directories(winml_lib_image PRIVATE ${REPO_ROOT}/winml)
- target_include_directories(winml_lib_image PRIVATE ${GSL_INCLUDE_DIR})
-@@ -516,7 +516,7 @@ target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_INCLUDE_DIR}/core
- target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_api PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
- target_include_directories(winml_lib_api PRIVATE ${REPO_ROOT}/winml)
--target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto Eigen3::Eigen)
-+target_link_libraries(winml_lib_api PRIVATE ${GSL_TARGET} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto Eigen3::Eigen)
-
- # Properties
- set_target_properties(winml_lib_api
-@@ -602,7 +602,7 @@ target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_INCL
- target_include_directories(winml_lib_api_experimental PRIVATE ${REPO_ROOT}/winml)
- target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_lib_api_experimental PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
--onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::mp11 onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
-+onnxruntime_add_include_to_target(winml_lib_api_experimental PRIVATE ${PROTOBUF_LIB} safeint_interface flatbuffers::flatbuffers Boost::boost onnx onnx_proto ${GSL_TARGET} Eigen3::Eigen)
-
- # Properties
- set_target_properties(winml_lib_api_experimental
-@@ -751,7 +751,7 @@ target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT})
- target_include_directories(winml_dll PRIVATE ${ONNXRUNTIME_ROOT}/core/graph)
-
- target_include_directories(winml_dll PRIVATE ${REPO_ROOT}/winml)
--target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11 ${GSL_TARGET} Eigen3::Eigen)
-+target_link_libraries(winml_dll PRIVATE onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost ${GSL_TARGET} Eigen3::Eigen)
- target_link_libraries(winml_dll PRIVATE debug Dbghelp)
- # Properties
- set_target_properties(winml_dll
-diff --git a/cmake/winml_unittests.cmake b/cmake/winml_unittests.cmake
-index d857a83f50..3800f290fc 100644
---- a/cmake/winml_unittests.cmake
-+++ b/cmake/winml_unittests.cmake
-@@ -273,7 +273,7 @@ target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/in
- target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_INCLUDE_DIR})
- target_include_directories(winml_test_adapter PRIVATE ${ONNXRUNTIME_ROOT})
-
--onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::mp11)
-+onnxruntime_add_include_to_target(winml_test_adapter onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers safeint_interface Boost::boost)
- add_dependencies(winml_test_adapter ${onnxruntime_EXTERNAL_DEPENDENCIES})
- target_include_directories(winml_test_adapter PRIVATE ${winml_adapter_dir})
- target_include_directories(winml_test_adapter PRIVATE ${winml_lib_common_dir}/inc)
---
-2.51.0
-
diff --git a/0010-dnnl-Clean-unused-vars.patch b/0010-dnnl-Clean-unused-vars.patch
new file mode 100644
index 0000000..8574f00
--- /dev/null
+++ b/0010-dnnl-Clean-unused-vars.patch
@@ -0,0 +1,67 @@
+From 44b91195290944154babc4312d925c3c9a217e38 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Sun, 14 Jun 2026 23:20:49 -0400
+Subject: [PATCH 10/11] dnnl Clean unused vars
+
+
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
+index 82a9e9f3ec..8b3e39f288 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul.cc
+@@ -52,15 +52,6 @@ void DnnlMatMul::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& node) {
+ if (node.OpType() == "MatMulPostOps") {
+ has_postop_fusion = true;
+ post_ops = node.GetPostOps();
+-
+- int binary_count = 0;
+- // Check we have enough inputs for MatMul and the binary post ops
+- for (size_t i = 0; i < post_ops.size(); ++i) {
+- if (binary_ops.count(post_ops[i]) != 0) {
+- assert(node.Input(IN_BINARY_0 + binary_count).Exists());
+- binary_count++;
+- }
+- }
+ }
+
+ bool is_fusedmatmul = false;
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
+index ffa146298e..bc6d8d0ee2 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_matmul_integer.cc
+@@ -27,15 +27,6 @@ void DnnlMatMulInteger::CreatePrimitive(DnnlSubgraphPrimitive& sp, DnnlNode& nod
+ if (node.OpType() == "MatMulIntegerPostOps") {
+ has_postop_fusion = true;
+ post_ops = node.GetPostOps();
+-
+- int binary_count = 0;
+- // Check we have enough inputs for MatMul and the binary post ops
+- for (size_t i = 0; i < post_ops.size(); ++i) {
+- if (binary_ops.count(post_ops[i]) != 0) {
+- assert(node.Input(IN_BINARY_0 + binary_count).Exists());
+- binary_count++;
+- }
+- }
+ }
+
+ auto src_dims = sp.GetMemory(node.Input(IN_A)).get_desc().get_dims();
+diff --git a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
+index fdebe51865..58defe35d6 100644
+--- a/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
++++ b/onnxruntime/core/providers/dnnl/subgraph/dnnl_subgraph_transformer.cc
+@@ -764,13 +764,6 @@ void DnnlGraphTransformer::RemoveMatMulIntegerZP(DnnlSubgraph& subgraph, const o
+ continue;
+ }
+
+- const auto& dims = tensor_proto->dims();
+- auto dim_size = tensor_proto->dims_size();
+- int num_elements = 1;
+- for (int i = 0; i < dim_size; i++) {
+- num_elements *= int(dims[i]);
+- }
+-
+ // check if b_zp is all zeros, assume data is s8 since only s8 weight is supported in onednn
+ bool all_zero = true;
+ std::vector<uint8_t> unpacked_tensor;
+--
+2.54.0
+
diff --git a/0010-system-cpuinfo.patch b/0010-system-cpuinfo.patch
deleted file mode 100644
index f3c55bc..0000000
--- a/0010-system-cpuinfo.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 66ceccd38e307dc21686c0e45d85bda9c0d972a6 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:03:42 -0300
-Subject: [PATCH 10/19] system cpuinfo
-
----
- cmake/external/onnxruntime_external_deps.cmake | 3 ++-
- cmake/onnxruntime_common.cmake | 2 +-
- 2 files changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 25bdb2f01d..f16f08cc05 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -307,6 +307,7 @@ if (CPUINFO_SUPPORTED)
- set(CPUINFO_BUILD_UNIT_TESTS OFF CACHE INTERNAL "")
- set(CPUINFO_BUILD_MOCK_TESTS OFF CACHE INTERNAL "")
- set(CPUINFO_BUILD_BENCHMARKS OFF CACHE INTERNAL "")
-+ find_package(cpuinfo REQUIRED)
- if (onnxruntime_target_platform STREQUAL "ARM64EC" OR onnxruntime_target_platform STREQUAL "ARM64")
- message(STATUS "Applying a patch for Windows ARM64/ARM64EC in cpuinfo")
- onnxruntime_fetchcontent_declare(
-@@ -499,7 +500,7 @@ endif()
- set(onnxruntime_EXTERNAL_LIBRARIES ${onnxruntime_EXTERNAL_LIBRARIES_XNNPACK} ${WIL_TARGET} nlohmann_json::nlohmann_json
- onnx onnx_proto ${PROTOBUF_LIB} re2::re2 Boost::boost safeint_interface
- flatbuffers::flatbuffers ${GSL_TARGET} ${ABSEIL_LIBS} date::date
-- ${ONNXRUNTIME_CLOG_TARGET_NAME} Eigen3::Eigen)
-+ Eigen3::Eigen)
-
- # The source code of onnx_proto is generated, we must build this lib first before starting to compile the other source code that uses ONNX protobuf types.
- # The other libs do not have the problem. All the sources are already there. We can compile them in any order.
-diff --git a/cmake/onnxruntime_common.cmake b/cmake/onnxruntime_common.cmake
-index 582466c931..60154dc2dd 100644
---- a/cmake/onnxruntime_common.cmake
-+++ b/cmake/onnxruntime_common.cmake
-@@ -212,7 +212,7 @@ if (RISCV64 OR ARM64 OR ARM OR X86 OR X64 OR X86_64)
- # Its functionality in detecting x86 cpu features are lacking, so is support for Windows.
- if (CPUINFO_SUPPORTED)
- onnxruntime_add_include_to_target(onnxruntime_common cpuinfo::cpuinfo)
-- list(APPEND onnxruntime_EXTERNAL_LIBRARIES cpuinfo::cpuinfo ${ONNXRUNTIME_CLOG_TARGET_NAME})
-+ list(APPEND onnxruntime_EXTERNAL_LIBRARIES cpuinfo::cpuinfo)
- endif()
- endif()
-
---
-2.51.0
-
diff --git a/0011-onnx-onnxruntime-fix.patch b/0011-onnx-onnxruntime-fix.patch
deleted file mode 100644
index c690889..0000000
--- a/0011-onnx-onnxruntime-fix.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From e9ad9567d66e5c78f35b8fbd48ea98413091eadf Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:49:36 -0300
-Subject: [PATCH 11/19] onnx onnxruntime fix
-
----
- onnxruntime/core/session/onnxruntime_c_api.cc | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/onnxruntime/core/session/onnxruntime_c_api.cc b/onnxruntime/core/session/onnxruntime_c_api.cc
-index b60d97e38f..b0670c3614 100644
---- a/onnxruntime/core/session/onnxruntime_c_api.cc
-+++ b/onnxruntime/core/session/onnxruntime_c_api.cc
-@@ -44,6 +44,7 @@
- #include "core/session/ort_apis.h"
- #include "core/session/ort_env.h"
- #include "core/session/utils.h"
-+#include "onnx/onnxruntime_fix.h"
-
- #if defined(USE_CUDA) || defined(USE_CUDA_PROVIDER_INTERFACE)
- #include "core/providers/cuda/cuda_provider_factory.h"
-@@ -3094,6 +3095,13 @@ ORT_API(const char*, OrtApis::GetBuildInfoString) {
- }
-
- const OrtApiBase* ORT_API_CALL OrtGetApiBase(void) NO_EXCEPTION {
-+ class RunONNXRuntimeFix {
-+ public:
-+ RunONNXRuntimeFix() {
-+ onnx::ONNXRuntimeFix::disableStaticRegistration();
-+ }
-+ };
-+ static RunONNXRuntimeFix runONNXRuntimeFix;
- return &ort_api_base;
- }
-
---
-2.51.0
-
diff --git a/0011-openVINO-runtime-fix.patch b/0011-openVINO-runtime-fix.patch
new file mode 100644
index 0000000..892c234
--- /dev/null
+++ b/0011-openVINO-runtime-fix.patch
@@ -0,0 +1,28 @@
+From 10e326c86978765ff02dffc9660cedd65685c798 Mon Sep 17 00:00:00 2001
+From: Diego Herrera <dherrera@redhat.com>
+Date: Wed, 24 Jun 2026 19:30:11 -0400
+Subject: [PATCH 11/11] openVINO runtime fix
+
+
+diff --git a/cmake/onnxruntime_providers_openvino.cmake b/cmake/onnxruntime_providers_openvino.cmake
+index 819bdb7adc..39e16013da 100644
+--- a/cmake/onnxruntime_providers_openvino.cmake
++++ b/cmake/onnxruntime_providers_openvino.cmake
+@@ -21,14 +21,6 @@
+ add_definitions(-DUSE_OVEP_NPU_MEMORY=1)
+ endif()
+
+- # If building RelWithDebInfo and OV package does not have that configuration map to Release
+- get_target_property(ov_rt_implib_rwdi openvino::runtime IMPORTED_IMPLIB_RELWITHDEBINFO)
+- if ((CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo) AND NOT ov_rt_implib_rwdi)
+- set_target_properties(openvino::runtime PROPERTIES
+- MAP_IMPORTED_CONFIG_RELWITHDEBINFO Release
+- )
+- endif()
+-
+ list(APPEND OPENVINO_LIB_LIST openvino::frontend::onnx openvino::runtime ${PYTHON_LIBRARIES})
+ source_group(TREE ${ONNXRUNTIME_ROOT}/core FILES ${onnxruntime_providers_openvino_cc_srcs})
+ onnxruntime_add_shared_library_module(onnxruntime_providers_openvino ${onnxruntime_providers_openvino_cc_srcs} "${ONNXRUNTIME_ROOT}/core/dll/onnxruntime.rc")
+--
+2.54.0
+
diff --git a/0012-system-python.patch b/0012-system-python.patch
deleted file mode 100644
index a3cf374..0000000
--- a/0012-system-python.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 8b89f19d7be7d657bf25fb1b49247c3a111dce37 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:51:05 -0300
-Subject: [PATCH 12/19] system python
-
----
- cmake/CMakeLists.txt | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index 0d5ec393e1..0d61f828a4 100644
---- a/cmake/CMakeLists.txt
-+++ b/cmake/CMakeLists.txt
-@@ -677,16 +677,16 @@ endif()
- if (onnxruntime_BUILD_SHARED_LIB OR onnxruntime_ENABLE_PYTHON)
- if (onnxruntime_ENABLE_PYTHON)
- if (onnxruntime_REQUIRE_PYTHON_EMBED_LIB)
-- find_package(Python 3.10 COMPONENTS Interpreter Development NumPy)
-+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development NumPy)
- else()
-- find_package(Python 3.10 COMPONENTS Interpreter Development.Module NumPy)
-+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter Development.Module NumPy)
- endif()
- message("Numpy version: ${Python_NumPy_VERSION}")
- if(Python_NumPy_VERSION VERSION_LESS "2.0.0")
- message(WARNING "The build binary will not be compatible with NumPy 2.0 because the NumPy installed on this machine is too low.")
- endif()
- else()
-- find_package(Python 3.10 COMPONENTS Interpreter)
-+ find_package(Python ${PYTHON_VERSION} COMPONENTS Interpreter)
- endif()
- endif()
-
---
-2.51.0
-
diff --git a/0014-missing-cpp-headers.patch b/0014-missing-cpp-headers.patch
deleted file mode 100644
index a0a8103..0000000
--- a/0014-missing-cpp-headers.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 1548ea0ab71b6edc5f64a96879bc102785f156c4 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:52:04 -0300
-Subject: [PATCH 14/19] missing cpp headers
-
----
- onnxruntime/contrib_ops/cpu/utils/console_dumper.h | 1 +
- .../transpose_optimization/onnx_transpose_optimization.cc | 1 +
- .../core/optimizer/transpose_optimization/optimizer_api.h | 1 +
- 3 files changed, 3 insertions(+)
-
-diff --git a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h
-index 9ebc44f441..a68f198908 100644
---- a/onnxruntime/contrib_ops/cpu/utils/console_dumper.h
-+++ b/onnxruntime/contrib_ops/cpu/utils/console_dumper.h
-@@ -6,6 +6,7 @@
- #include "core/framework/ort_value.h"
- #include "core/framework/float16.h"
- #include "contrib_ops/cpu/utils/debug_macros.h"
-+#include <iostream>
-
- namespace onnxruntime {
- namespace contrib {
-diff --git a/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc b/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc
-index 10cb6eb97b..ba1093d33e 100644
---- a/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc
-+++ b/onnxruntime/core/optimizer/transpose_optimization/onnx_transpose_optimization.cc
-@@ -12,6 +12,7 @@
- #include <unordered_set>
- #include <utility>
- #include <vector>
-+#include <cstring>
-
- #include <gsl/gsl>
- #include "core/common/make_string.h"
-diff --git a/onnxruntime/core/optimizer/transpose_optimization/optimizer_api.h b/onnxruntime/core/optimizer/transpose_optimization/optimizer_api.h
-index e4d59ea732..25e69dc3c6 100644
---- a/onnxruntime/core/optimizer/transpose_optimization/optimizer_api.h
-+++ b/onnxruntime/core/optimizer/transpose_optimization/optimizer_api.h
-@@ -11,6 +11,7 @@
- #include <unordered_map>
- #include <unordered_set>
- #include <vector>
-+#include <cstdint>
-
- namespace onnx_transpose_optimization {
- namespace api {
---
-2.51.0
-
diff --git a/0015-revert-nan-propagation-bugfix.patch b/0015-revert-nan-propagation-bugfix.patch
deleted file mode 100644
index 31f2ecc..0000000
--- a/0015-revert-nan-propagation-bugfix.patch
+++ /dev/null
@@ -1,223 +0,0 @@
-From d5d5494ba3fa68aa7c43faf7a4df408c39f271f3 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:52:39 -0300
-Subject: [PATCH 15/19] revert nan propagation bugfix
-
----
- .../providers/cpu/math/element_wise_ops.cc | 28 +++++++++----------
- .../cpu/math/element_wise_ops_test.cc | 24 ++++++++--------
- 2 files changed, 26 insertions(+), 26 deletions(-)
-
-diff --git a/onnxruntime/core/providers/cpu/math/element_wise_ops.cc b/onnxruntime/core/providers/cpu/math/element_wise_ops.cc
-index 4d8a2bc110..79e58f64c4 100644
---- a/onnxruntime/core/providers/cpu/math/element_wise_ops.cc
-+++ b/onnxruntime/core/providers/cpu/math/element_wise_ops.cc
-@@ -813,7 +813,7 @@ Status Min_6<float>::Compute(OpKernelContext* ctx) const {
- for (int index = 1; index < inputCount; index++) {
- auto& data_n = *ctx->Input<Tensor>(index);
- ORT_ENFORCE(data_n.Shape() == shape, "All inputs must have the same shape");
-- min = min.array().template min<Eigen::PropagateNaN>(EigenMap<float>(data_n).array());
-+ min = min.array().min(EigenMap<float>(data_n).array());
- }
-
- return Status::OK();
-@@ -829,15 +829,15 @@ struct Min_8::ComputeImpl {
- ProcessBroadcastSpanFuncs funcs{
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput1<T>().array().template min<Eigen::PropagateNaN>(per_iter_bh.ScalarInput0<T>());
-+ per_iter_bh.EigenInput1<T>().array().min(per_iter_bh.ScalarInput0<T>());
- },
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput0<T>().array().template min<Eigen::PropagateNaN>(per_iter_bh.ScalarInput1<T>());
-+ per_iter_bh.EigenInput0<T>().array().min(per_iter_bh.ScalarInput1<T>());
- },
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput0<T>().array().template min<Eigen::PropagateNaN>(
-+ per_iter_bh.EigenInput0<T>().array().min(
- per_iter_bh.EigenInput1<T>().array());
- }};
-
-@@ -865,10 +865,10 @@ static Status MinMaxMLFloat16(const OpKernel& inst, OpKernelContext* context) {
- EigenVectorArrayMap<Eigen::half> output_vec_map(output, num_elements);
-
- if (is_min) {
-- output_vec_map = input_1_vec_map.template min<Eigen::PropagateNaN>(
-+ output_vec_map = input_1_vec_map.min(
- static_cast<Eigen::half>(per_iter_bh.ScalarInput0<MLFloat16>()));
- } else {
-- output_vec_map = input_1_vec_map.template max<Eigen::PropagateNaN>(
-+ output_vec_map = input_1_vec_map.max(
- static_cast<Eigen::half>(per_iter_bh.ScalarInput0<MLFloat16>()));
- }
- },
-@@ -882,10 +882,10 @@ static Status MinMaxMLFloat16(const OpKernel& inst, OpKernelContext* context) {
- EigenVectorArrayMap<Eigen::half> output_vec_map(output, num_elements);
-
- if (is_min) {
-- output_vec_map = input_0_vec_map.template min<Eigen::PropagateNaN>(
-+ output_vec_map = input_0_vec_map.min(
- static_cast<Eigen::half>(per_iter_bh.ScalarInput1<MLFloat16>()));
- } else {
-- output_vec_map = input_0_vec_map.template max<Eigen::PropagateNaN>(
-+ output_vec_map = input_0_vec_map.max(
- static_cast<Eigen::half>(per_iter_bh.ScalarInput1<MLFloat16>()));
- }
- },
-@@ -902,9 +902,9 @@ static Status MinMaxMLFloat16(const OpKernel& inst, OpKernelContext* context) {
- EigenVectorArrayMap<Eigen::half> output_vec_map(output, num_elements);
-
- if (is_min) {
-- output_vec_map = input_0_vec_map.template min<Eigen::PropagateNaN>(input_1_vec_map);
-+ output_vec_map = input_0_vec_map.min(input_1_vec_map);
- } else {
-- output_vec_map = input_0_vec_map.template max<Eigen::PropagateNaN>(input_1_vec_map);
-+ output_vec_map = input_0_vec_map.max(input_1_vec_map);
- }
- }};
-
-@@ -940,7 +940,7 @@ Status Max_6<float>::Compute(OpKernelContext* ctx) const {
- for (int index = 1; index < inputCount; index++) {
- auto& data_n = *ctx->Input<Tensor>(index);
- ORT_ENFORCE(data_n.Shape() == shape, "All inputs must have the same shape");
-- max = max.array().template max<Eigen::PropagateNaN>(EigenMap<float>(data_n).array());
-+ max = max.array().max(EigenMap<float>(data_n).array());
- }
-
- return Status::OK();
-@@ -956,15 +956,15 @@ struct Max_8::ComputeImpl {
- ProcessBroadcastSpanFuncs funcs{
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput1<T>().array().template max<Eigen::PropagateNaN>(per_iter_bh.ScalarInput0<T>());
-+ per_iter_bh.EigenInput1<T>().array().max(per_iter_bh.ScalarInput0<T>());
- },
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput0<T>().array().template max<Eigen::PropagateNaN>(per_iter_bh.ScalarInput1<T>());
-+ per_iter_bh.EigenInput0<T>().array().max(per_iter_bh.ScalarInput1<T>());
- },
- [](BroadcastHelper& per_iter_bh) {
- per_iter_bh.OutputEigen<T>() =
-- per_iter_bh.EigenInput0<T>().array().template max<Eigen::PropagateNaN>(
-+ per_iter_bh.EigenInput0<T>().array().max(
- per_iter_bh.EigenInput1<T>().array());
- }};
-
-diff --git a/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc b/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc
-index fbd9d10a56..724d87cc15 100644
---- a/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc
-+++ b/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc
-@@ -1908,7 +1908,7 @@ TEST(MathOpTest, Min_12_Float_Nan) {
- }
- }
-
--TEST(MathOpTest, Min_12_Float_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Min_12_Float_Nan_with_scalar) {
- OpTester test("Min", 12);
- test.AddInput<float>("data_1", {3, 1},
- {std::numeric_limits<float>::quiet_NaN(), -0.5f, 0.5f});
-@@ -1927,7 +1927,7 @@ TEST(MathOpTest, Min_12_Float_Nan_with_scalar) {
- }
- }
-
--TEST(MathOpTest, Min_12_Float_with_scalar_Nan) {
-+TEST(MathOpTest, DISABLED_Min_12_Float_with_scalar_Nan) {
- OpTester test("Min", 12);
- test.AddInput<float>("data_1", {2, 2},
- {0.25f, -0.25f, -0.5f, 0.5f});
-@@ -1994,7 +1994,7 @@ TEST(MathOpTest, Min_12_Double_Nan) {
- }
- }
-
--TEST(MathOpTest, Min_12_Double_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Min_12_Double_Nan_with_scalar) {
- OpTester test("Min", 12);
- test.AddInput<double>("data_1", {3, 1},
- {std::numeric_limits<double>::quiet_NaN(), -0.5, 0.5});
-@@ -2013,7 +2013,7 @@ TEST(MathOpTest, Min_12_Double_Nan_with_scalar) {
- }
- }
-
--TEST(MathOpTest, Min_12_Double_with_scalar_Nan) {
-+TEST(MathOpTest, DISABLED_Min_12_Double_with_scalar_Nan) {
- OpTester test("Min", 12);
- test.AddInput<double>("data_1", {2, 2},
- {0.25, -0.25, -0.5, 0.5});
-@@ -2202,7 +2202,7 @@ TEST(MathOpTest, Min_13_Float16_VectorMatrix) {
- 0.5f, 0.0f, 1.0f, 1.0f});
- }
-
--TEST(MathOpTest, Min_13_Float16_Nan) {
-+TEST(MathOpTest, DISABLED_Min_13_Float16_Nan) {
- TestFloat16MinMax("Min",
- {4, 1}, {-1.0f, std::numeric_limits<float>::quiet_NaN(), 1.0f, 0.5f},
- {4, 1}, {0.5f, 1.0f, 0.25f, std::numeric_limits<float>::quiet_NaN()},
-@@ -2210,7 +2210,7 @@ TEST(MathOpTest, Min_13_Float16_Nan) {
- {-1.0f, std::numeric_limits<float>::quiet_NaN(), 0.25f, std::numeric_limits<float>::quiet_NaN()});
- }
-
--TEST(MathOpTest, Min_13_Float16_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Min_13_Float16_Nan_with_scalar) {
- TestFloat16MinMax("Min",
- {3, 1}, {-1.0f, std::numeric_limits<float>::quiet_NaN(), 1.0f},
- {1}, {0.25f},
-@@ -2342,7 +2342,7 @@ TEST(MathOpTest, Max_12_Float_Nan) {
- }
- }
-
--TEST(MathOpTest, Max_12_Float_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Max_12_Float_Nan_with_scalar) {
- OpTester test("Max", 12);
- test.AddInput<float>("data_1", {3, 1},
- {std::numeric_limits<float>::quiet_NaN(), -0.5f, 0.5f});
-@@ -2361,7 +2361,7 @@ TEST(MathOpTest, Max_12_Float_Nan_with_scalar) {
- }
- }
-
--TEST(MathOpTest, Max_12_Float_with_scalar_Nan) {
-+TEST(MathOpTest, DISABLED_Max_12_Float_with_scalar_Nan) {
- OpTester test("Max", 12);
- test.AddInput<float>("data_1", {2, 2},
- {0.25f, -0.25f, -0.5f, 0.5f});
-@@ -2428,7 +2428,7 @@ TEST(MathOpTest, Max_12_Double_Nan) {
- }
- }
-
--TEST(MathOpTest, Max_12_Double_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Max_12_Double_Nan_with_scalar) {
- OpTester test("Max", 12);
- test.AddInput<double>("data_1", {3, 1},
- {std::numeric_limits<double>::quiet_NaN(), -0.5, 0.5});
-@@ -2447,7 +2447,7 @@ TEST(MathOpTest, Max_12_Double_Nan_with_scalar) {
- }
- }
-
--TEST(MathOpTest, Max_12_Double_with_scalar_Nan) {
-+TEST(MathOpTest, DISABLED_Max_12_Double_with_scalar_Nan) {
- OpTester test("Max", 12);
- test.AddInput<double>("data_1", {2, 2},
- {0.25, -0.25, -0.5, 0.5});
-@@ -2619,7 +2619,7 @@ TEST(MathOpTest, Max_13_Float16_VectorMatrix) {
- 1.0f, 1.0f, 2.0f});
- }
-
--TEST(MathOpTest, Max_13_Float16_Nan) {
-+TEST(MathOpTest, DISABLED_Max_13_Float16_Nan) {
- TestFloat16MinMax("Max",
- {4, 1}, {-1.0f, std::numeric_limits<float>::quiet_NaN(), 1.0f, 0.5f},
- {4, 1}, {0.5f, 1.0f, 0.25f, std::numeric_limits<float>::quiet_NaN()},
-@@ -2627,7 +2627,7 @@ TEST(MathOpTest, Max_13_Float16_Nan) {
- {0.5f, std::numeric_limits<float>::quiet_NaN(), 1.0f, std::numeric_limits<float>::quiet_NaN()});
- }
-
--TEST(MathOpTest, Max_13_Float16_Nan_with_scalar) {
-+TEST(MathOpTest, DISABLED_Max_13_Float16_Nan_with_scalar) {
- TestFloat16MinMax("Max",
- {3, 1}, {-1.0f, std::numeric_limits<float>::quiet_NaN(), 1.0f},
- {1}, {0.25f},
---
-2.51.0
-
diff --git a/0016-disable-locale-tests.patch b/0016-disable-locale-tests.patch
deleted file mode 100644
index 0f8281a..0000000
--- a/0016-disable-locale-tests.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From e6b44488854da15890c564d148cc06f144e053a9 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 00:55:00 -0300
-Subject: [PATCH 16/19] disable locale tests
-
----
- .../providers/cpu/text/string_normalizer_test.cc | 14 +++++++-------
- 1 file changed, 7 insertions(+), 7 deletions(-)
-
-diff --git a/onnxruntime/test/providers/cpu/text/string_normalizer_test.cc b/onnxruntime/test/providers/cpu/text/string_normalizer_test.cc
-index 724fdb078e..cd44e3f7fe 100644
---- a/onnxruntime/test/providers/cpu/text/string_normalizer_test.cc
-+++ b/onnxruntime/test/providers/cpu/text/string_normalizer_test.cc
-@@ -58,7 +58,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveNoCase) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutNoCase) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutNoCase) {
- // - casesensitive approach
- // - filter out monday
- // - No change case action
-@@ -76,7 +76,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveFilterOutNoCase) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutLower) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutLower) {
- // - casesensitive approach
- // - filter out monday
- // - LOWER should produce the same output as they are all lower.
-@@ -93,7 +93,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveFilterOutLower) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpper) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutUpper) {
- // - casesensitive approach
- // - filter out monday
- // - UPPER should produce the same output as they are all lower.
-@@ -111,7 +111,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpper) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpperWithLocale) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutUpperWithLocale) {
- // - case-SENSITIVE approach en_US locale
- // - we test the behavior of a mix of english, french, german, russian and chinese
- // with en_US locale
-@@ -152,7 +152,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpperWithLocale) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerInsensitiveFilterOutUpperWithLocale) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerInsensitiveFilterOutUpperWithLocale) {
- // - case-INSENSITIVE approach en_US locale
- // - we test the behavior of a mix of english, french, german, russian and chinese
- // with en_US locale
-@@ -194,7 +194,7 @@ TEST(ContribOpTest, StringNormalizerInsensitiveFilterOutUpperWithLocale) {
- test.Run(OpTester::ExpectResult::kExpectSuccess);
- }
-
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpperEmptyCase) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutUpperEmptyCase) {
- // Empty output case
- // - casesensitive approach
- // - filter out monday
-@@ -214,7 +214,7 @@ TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpperEmptyCase) {
- // Fails on iOS because necessary locales are not installed
- // MacOS runs fine.
- #ifndef ORT_IOS
--TEST(ContribOpTest, StringNormalizerSensitiveFilterOutUpperSameOutput) {
-+TEST(ContribOpTest, DISABLED_StringNormalizerSensitiveFilterOutUpperSameOutput) {
- // Empty output case
- // - casesensitive approach
- // - filter out monday
---
-2.51.0
-
diff --git a/0017-disable-downloading-dependencies.patch b/0017-disable-downloading-dependencies.patch
deleted file mode 100644
index 2469145..0000000
--- a/0017-disable-downloading-dependencies.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 56d9b5d8ddbf7de2fdf8d68edac8822b43a5908f Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 01:40:00 -0300
-Subject: [PATCH 17/19] disable downloading dependencies
-
----
- .../external/onnxruntime_external_deps.cmake | 31 -------------------
- 1 file changed, 31 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index f16f08cc05..900e4bfa30 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -2,37 +2,6 @@ message(STATUS "Loading Dependencies URLs ...")
-
- include(external/helper_functions.cmake)
-
--file(STRINGS deps.txt ONNXRUNTIME_DEPS_LIST)
--foreach(ONNXRUNTIME_DEP IN LISTS ONNXRUNTIME_DEPS_LIST)
-- # Lines start with "#" are comments
-- if(NOT ONNXRUNTIME_DEP MATCHES "^#")
-- # The first column is name
-- list(POP_FRONT ONNXRUNTIME_DEP ONNXRUNTIME_DEP_NAME)
-- # The second column is URL
-- # The URL below may be a local file path or an HTTPS URL
-- list(POP_FRONT ONNXRUNTIME_DEP ONNXRUNTIME_DEP_URL)
-- set(DEP_URL_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP_URL})
-- # The third column is SHA1 hash value
-- set(DEP_SHA1_${ONNXRUNTIME_DEP_NAME} ${ONNXRUNTIME_DEP})
--
-- if(ONNXRUNTIME_DEP_URL MATCHES "^https://")
-- # Search a local mirror folder
-- string(REGEX REPLACE "^https://" "${REPO_ROOT}/mirror/" LOCAL_URL "${ONNXRUNTIME_DEP_URL}")
--
-- if(EXISTS "${LOCAL_URL}")
-- cmake_path(ABSOLUTE_PATH LOCAL_URL)
-- set(DEP_URL_${ONNXRUNTIME_DEP_NAME} "${LOCAL_URL}")
-- endif()
-- endif()
-- endif()
--endforeach()
--
--message(STATUS "Loading Dependencies ...")
--include(FetchContent)
--
--# ABSL should be included before protobuf because protobuf may use absl
--include(external/abseil-cpp.cmake)
--
- set(RE2_BUILD_TESTING OFF CACHE BOOL "" FORCE)
-
- onnxruntime_fetchcontent_declare(
---
-2.51.0
-
diff --git a/0018-system-eigen3.patch b/0018-system-eigen3.patch
deleted file mode 100644
index 646b5b7..0000000
--- a/0018-system-eigen3.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From dd9a504bb8bfb7374e3111c785d43fdfe35e8190 Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Tue, 30 Sep 2025 01:40:16 -0300
-Subject: [PATCH 18/19] system eigen3
-
----
- cmake/external/onnxruntime_external_deps.cmake | 7 ++++---
- 1 file changed, 4 insertions(+), 3 deletions(-)
-
-diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
-index 900e4bfa30..24b06fcd89 100644
---- a/cmake/external/onnxruntime_external_deps.cmake
-+++ b/cmake/external/onnxruntime_external_deps.cmake
-@@ -427,10 +427,11 @@ if(TARGET ONNX::onnx_proto AND NOT TARGET onnx_proto)
- message(STATUS "Aliasing ONNX::onnx_proto to onnx_proto")
- add_library(onnx_proto ALIAS ONNX::onnx_proto)
- endif()
--if(onnxruntime_USE_VCPKG)
-- find_package(Eigen3 CONFIG REQUIRED)
-+find_package(Eigen3 CONFIG)
-+if(Eigen3_FOUND)
-+ get_target_property(eigen_INCLUDE_DIRS Eigen3::Eigen INTERFACE_INCLUDE_DIRECTORIES)
- else()
-- include(external/eigen.cmake)
-+ include(eigen) # FetchContent
- endif()
-
- if(WIN32)
---
-2.51.0
-
diff --git a/0019-disable-tests.patch b/0019-disable-tests.patch
deleted file mode 100644
index 5588851..0000000
--- a/0019-disable-tests.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 343be115a799f36a6868dc66bba1a60d5e52952d Mon Sep 17 00:00:00 2001
-From: Diego Herrera <dherrera@redhat.com>
-Date: Fri, 16 Jan 2026 15:11:13 -0300
-Subject: [PATCH 19/19] disable tests
-
----
- onnxruntime/test/contrib_ops/sampling_test.cc | 2 +-
- onnxruntime/test/providers/cpu/generator/random_test.cc | 4 ++--
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/onnxruntime/test/contrib_ops/sampling_test.cc b/onnxruntime/test/contrib_ops/sampling_test.cc
-index 69789b8483..4cc002c0fe 100644
---- a/onnxruntime/test/contrib_ops/sampling_test.cc
-+++ b/onnxruntime/test/contrib_ops/sampling_test.cc
-@@ -99,7 +99,7 @@ TEST(SamplingTest, Gpt2Sampling_GPU) {
- }
- #endif
-
--TEST(SamplingTest, Gpt2Sampling_CPU) {
-+TEST(SamplingTest, DISABLED_Gpt2Sampling_CPU) {
- std::vector<int32_t> input_ids{
- 0, 0, 0, 0, 0, 52, 195, 731, 321, 301, 734, 620,
- 41, 554, 74, 622, 206, 222, 75, 223, 221, 198, 224, 572,
-diff --git a/onnxruntime/test/providers/cpu/generator/random_test.cc b/onnxruntime/test/providers/cpu/generator/random_test.cc
-index a923df2ceb..ecadf00d38 100644
---- a/onnxruntime/test/providers/cpu/generator/random_test.cc
-+++ b/onnxruntime/test/providers/cpu/generator/random_test.cc
-@@ -236,7 +236,7 @@ test cases but they use a different RNG (Philox) and hence the test results diff
- of the op is same as tensorflow, for now I've just relied on the output generated by this code as ground truth
- for verification.
- */
--TEST(Random, MultinomialGoodCase) {
-+TEST(Random, DISABLED_MultinomialGoodCase) {
- OpTester test("Multinomial");
-
- constexpr int64_t num_samples = 10;
-@@ -266,7 +266,7 @@ TEST(Random, MultinomialGoodCase) {
- test.Run();
- }
-
--TEST(Random, MultinomialDefaultDType) {
-+TEST(Random, DISABLED_MultinomialDefaultDType) {
- auto run_test = [](int num_run_calls, const std::vector<int32_t>& expected_output) {
- OpTester test("Multinomial");
- constexpr int64_t num_samples = 10;
---
-2.52.0
-
diff --git a/abseil-cpp-20250814.patch b/abseil-cpp-20250814.patch
deleted file mode 100644
index c3f2d30..0000000
--- a/abseil-cpp-20250814.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/cmake/external/abseil-cpp.cmake b/cmake/external/abseil-cpp.cmake
-index 427e77a524..feb2eb26f1 100644
---- a/cmake/external/abseil-cpp.cmake
-+++ b/cmake/external/abseil-cpp.cmake
-@@ -119,7 +119,6 @@ absl::absl_check
- absl::hash_function_defaults
- absl::function_ref
- absl::city
--absl::low_level_hash
- absl::fixed_array
- absl::variant
- absl::meta
diff --git a/onnxruntime.spec b/onnxruntime.spec
index 75ad76f..bd3943c 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -1,35 +1,49 @@
-%global utf8_range_commit 72c943dea2b9240cd09efde15191e144bc7c7d38
-%global utf8_range_name utf8_range-%( echo %utf8_range_commit | cut -c1-7 )
+# Do not check .so files from python or rocm packages
+%global __provides_exclude_from ^(%{python3_sitearch}/onnxruntime/.*|%{_libdir}/rocm/lib/.*)$
%if 0%{?fedora} && ! 0%{?flatpak}
%ifarch x86_64
-%bcond rocm 1
+%bcond rocm_migraphx 0
+%bcond migraphx 1
+# Only for testing purposes, deprecated upstream
+%bcond dnnl 0
+# Requires updated openVINO with latest onnx and protobuf
+%bcond openvino 0
%else
-%bcond rocm 0
+%bcond rocm_migraphx 0
+%bcond migraphx 0
+%bcond dnnl 0
+%bcond openvino 0
%endif
%else
-%bcond rocm 0
-%endif
-
+%bcond rocm_migraphx 0
%bcond migraphx 0
+%bcond dnnl 0
+%bcond openvino 0
+%endif
-%bcond migraphx_test 0
-%bcond rocm_test 0
%bcond test 1
+%bcond rocm_migraphx_test 0
# $backend will be evaluated below
%global _vpath_builddir %{_vendor}-%{_target_os}-build-${backend}
-%global backends cpu
-%if %{with rocm}
-%global backends %backends rocm
-%endif
+%global backends %nil
+%global backends %backends cpu
%if %{with migraphx}
%global backends %backends migraphx
%endif
+%if %{with dnnl}
+%global backends %backends dnnl
+%endif
+%if %{with openvino}
+%global backends %backends openvino
+%endif
+
+%global so_version 1
Summary: A cross-platform inferencing and training accelerator
Name: onnxruntime
-Version: 1.22.2
+Version: 1.26.0
Release: %autorelease
# onnxruntime and SafeInt are MIT
# onnx is Apache License 2.0
@@ -38,65 +52,47 @@ Release: %autorelease
License: MIT AND Apache-2.0 AND BSL-1.0 AND BSD-3-Clause
URL: https://github.com/microsoft/onnxruntime
Source0: https://github.com/microsoft/onnxruntime/archive/v%{version}/%{name}-%{version}.tar.gz
-# Bundled utf8_range until they get propperly exposed from the protobuff package
-Source1: https://github.com/protocolbuffers/utf8_range/archive/%{utf8_range_commit}/%{utf8_range_name}.zip
-# Add an option to not install the tests
-Patch: 0000-don-t-install-tests.patch
-# Use the system flatbuffers
-Patch: 0001-system-flatbuffers.patch
-# Use the system protobuf
-Patch: 0002-system-protobuf.patch
-# Use the system onnx
-Patch: 0003-system-onnx.patch
-# Fedora targets power8 or higher
-Patch: 0004-disable-power10.patch
+# Disable downloading dependencies
+Patch: 0001-Disable-download-deps.patch
+# Use the system abseil-cpp
+Patch: 0002-System-abseil.patch
+# Use the system date and boost
+Patch: 0003-System-date-and-mp11.patch
# Use the system safeint
-Patch: 0005-system-safeint.patch
-# Versioned libonnxruntime_providers_shared.so
-Patch: 0006-versioned-onnxruntime_providers_shared.patch
+Patch: 0004-System-safeint.patch
+# Use the system eigen3
+Patch: 0005-System-eigen3.patch
+# Use the system flatbuffers
+Patch: 0006-System-flatbuffers.patch
# Disable gcc -Werrors with false positives
-Patch: 0007-gcc-false-positives.patch
-# Test data not available
-Patch: 0008-disable-pytorch-tests.patch
-# Use the system date and boost
-Patch: 0009-system-date-and-mp11.patch
-# Use the system cpuinfo
-Patch: 0010-system-cpuinfo.patch
-# Trigger onnx fix for onnxruntime_providers_shared
-Patch: 0011-onnx-onnxruntime-fix.patch
-# Use the system python version
-Patch: 0012-system-python.patch
-# Fix missing includes
-Patch: 0014-missing-cpp-headers.patch
-# Revert https://github.com/microsoft/onnxruntime/pull/21492 until
-# Fedora's Eigen3 is compatible with the fix.
-Patch: 0015-revert-nan-propagation-bugfix.patch
-Patch: 0016-disable-locale-tests.patch
-Patch: 0017-disable-downloading-dependencies.patch
-Patch: 0018-system-eigen3.patch
-Patch: 0019-disable-tests.patch
-# [Build] Fails to build with abseil-cpp 20250814
-# https://github.com/microsoft/onnxruntime/issues/25815
-# Patch suggested in a comment in the above issue.
-Patch: abseil-cpp-20250814.patch
-# Build fails on ROCm 7
-Patch: 0001-onnxruntime-warpSize-is-not-constant-in-ROCm-7.patch
-Patch: 0001-onnxruntime-ignore-deprecated-thrust-warnings.patch
-# unsupported HIP identifier: CUBLAS_GEMM_DEFAULT_TENSOR_OP
-Patch: 0001-onnxruntime-rocm-no-CUBLAS_GEMM_DEFAULT_TENSOR_OP-su.patch
-Patch: 0001-onnxruntime-use-hipblasGemmStridedBatchedEx-instead-of-_v2.patch
-
-# s390x: https://bugzilla.redhat.com/show_bug.cgi?id=2235326
+Patch: 0007-GCC-false-positives.patch
+# Fix deprecated C++20 feature use in migraphx implementation
+Patch: 0008-migraphx-Fix-C-20-deprecated-this-capture.patch
+# Use the system onednn lib
+Patch: 0009-System-dnnl.patch
+Patch: 0010-dnnl-Clean-unused-vars.patch
+# Use the system openVINO
+Patch: 0011-openVINO-runtime-fix.patch
+
# armv7hl: https://bugzilla.redhat.com/show_bug.cgi?id=2235328
# i686: https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: s390x %{arm} %{ix86}
+# Force provides declaration since it's not being detected automatically
+%if %{__isa_bits} == 64
+Provides: libonnxruntime_providers_shared.so()(64bit)
+Provides: libonnxruntime_providers_shared.so(VERS_1.0)(64bit)
+%else
+Provides: libonnxruntime_providers_shared.so
+Provides: libonnxruntime_providers_shared.so(VERS_1.0)
+%endif
+
BuildRequires: cmake >= 3.13
BuildRequires: make
BuildRequires: gcc
BuildRequires: gcc-c++
-BuildRequires: onnx-devel = 1.17.0
+BuildRequires: onnx-devel = 1.21.0
BuildRequires: abseil-cpp-devel
BuildRequires: boost-devel >= 1.66
BuildRequires: bzip2
@@ -111,7 +107,8 @@ BuildRequires: gsl-devel
BuildRequires: gtest-devel
BuildRequires: guidelines-support-library-devel
BuildRequires: json-devel
-BuildRequires: protobuf-devel < 4
+BuildRequires: protobuf-devel >= 4
+BuildRequires: protobuf-static >= 4
BuildRequires: python3-devel
BuildRequires: python3-numpy
BuildRequires: python3-setuptools
@@ -123,35 +120,17 @@ BuildRequires: zlib-devel
Buildrequires: eigen3-devel >= 1.34
BuildRequires: pybind11-devel
-%if %{with rocm}
-BuildRequires: hipcc
-BuildRequires: hipify
-BuildRequires: hipblas-devel
-BuildRequires: hipcub-devel
-BuildRequires: hipfft-devel
-BuildRequires: hiprand-devel
-BuildRequires: hipsparse-devel
+%if %{with migraphx} || %{with rocm_migraphx}
+BuildRequires: migraphx-devel
BuildRequires: miopen-devel
-BuildRequires: rccl-devel
BuildRequires: rocblas-devel
-BuildRequires: rocm-clang
-BuildRequires: rocm-compilersupport-macros
-BuildRequires: rocm-core-devel
-BuildRequires: rocm-cmake
-BuildRequires: rocm-device-libs
-BuildRequires: rocm-hip-devel
-BuildRequires: rocm-rpm-macros
-BuildRequires: rocm-runtime-devel
-BuildRequires: rocm-smi-devel
-BuildRequires: rocthrust-devel
-BuildRequires: roctracer-devel
%endif
-
-%if %{with migraphx}
-BuildRequires: migraphx-devel
+%if %{with dnnl}
+BuildRequires: onednn-devel
+%endif
+%if %{with openvino}
+BuildRequires: openvino-devel
%endif
-
-Provides: bundled(utf8_range)
%description
%{name} is a cross-platform inferencing and training accelerator compatible
@@ -165,56 +144,147 @@ Requires: %{name}%{_isa} = %{version}-%{release}
%description devel
The development part of the %{name} package
-%if %{with rocm}
-%package rocm
-Summary: The ROCm runtime backend for the %{name} package
-
-%description rocm
-%{summary}
-
-%package rocm-devel
-Summary: The ROCm development part of the %{name} package
-Requires: %{name}-rocm%{_isa} = %{version}-%{release}
+%package -n python3-onnxruntime
+Summary: %{summary}
-%description rocm-devel
-%{summary}
+%description -n python3-onnxruntime
+Python bindings for the %{name} package
-%package rocm-test
-Summary: The ROCm tests for the %{name} package
-Requires: %{name}-rocm%{_isa} = %{version}-%{release}
+%if %{with test}
+%package test
+Summary: The test binaries of the %{name} package
+Requires: %{name}%{_isa} = %{version}-%{release}
-%description rocm-test
-%{summary}
+%description test
+The test binaries of the %{name} package
%endif
%if %{with migraphx}
%package migraphx
-Summary: The MIGraphX runtime backend for the %{name} package
+Summary: %{summary}
+Conflicts: %{name}%{_isa} = %{version}-%{release}
+Provides: %{name}%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .migraphx
%description migraphx
-%{summary}
+The migraphx execution provider for the %{name} library
-%package migraphx-devel
-Summary: The MIGraphX development part of the %{name} package
-Requires: %{name}-migraphx%{_isa} = %{version}-%{release}
+%package -n python3-onnxruntime-migraphx
+Summary: %{summary}
+Conflicts: python3-onnxruntime = %{version}-%{release}
+Provides: python3-onnxruntime = %{version}-%{release}
+RemovePathPostfixes: .migraphx:.migraphx.pyc
-%description migraphx-devel
-%{summary}
+%description -n python3-onnxruntime-migraphx
+The migraphx execution provider for the %{name} python library
+%if %{with test}
%package migraphx-test
-Summary: The MIGraphX tests for the %{name} package
+Summary: The test binaries of the %{name}-migraphx package
Requires: %{name}-migraphx%{_isa} = %{version}-%{release}
+Conflicts: %{name}-test%{_isa} = %{version}-%{release}
+Provides: %{name}-test%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .migraphx
%description migraphx-test
-%{summary}
+The test binaries of the %{name}-migraphx package
%endif
-%package -n python3-onnxruntime
+%endif
+
+%if %{with dnnl}
+%package dnnl
Summary: %{summary}
-Requires: %{name}%{_isa} = %{version}-%{release}
+Conflicts: %{name}%{_isa} = %{version}-%{release}
+Provides: %{name}%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .dnnl
-%description -n python3-onnxruntime
-Python bindings for the %{name} package
+%description dnnl
+The dnnl execution provider for the %{name} library
+
+%package -n python3-onnxruntime-dnnl
+Summary: %{summary}
+Conflicts: python3-onnxruntime = %{version}-%{release}
+Provides: python3-onnxruntime = %{version}-%{release}
+RemovePathPostfixes: .dnnl:.dnnl.pyc
+
+%description -n python3-onnxruntime-dnnl
+The dnnl execution provider for the %{name} python library
+
+%if %{with test}
+%package dnnl-test
+Summary: The test binaries of the %{name}-dnnl package
+Requires: %{name}-dnnl%{_isa} = %{version}-%{release}
+Conflicts: %{name}-test%{_isa} = %{version}-%{release}
+Provides: %{name}-test%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .dnnl
+
+%description dnnl-test
+The test binaries of the %{name}-dnnl package
+%endif
+
+%endif
+
+%if %{with openvino}
+%package openvino
+Summary: %{summary}
+Conflicts: %{name}%{_isa} = %{version}-%{release}
+Provides: %{name}%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .openvino
+
+%description openvino
+The openvino execution provider for the %{name} library
+
+%package -n python3-onnxruntime-openvino
+Summary: %{summary}
+Conflicts: python3-onnxruntime = %{version}-%{release}
+Provides: python3-onnxruntime = %{version}-%{release}
+RemovePathPostfixes: .openvino:.openvino.pyc
+
+%description -n python3-onnxruntime-openvino
+The openvino execution provider for the %{name} python library
+
+%if %{with test}
+%package openvino-test
+Summary: The test binaries of the %{name}-openvino package
+Requires: %{name}-openvino%{_isa} = %{version}-%{release}
+Conflicts: %{name}-test%{_isa} = %{version}-%{release}
+Provides: %{name}-test%{_isa} = %{version}-%{release}
+RemovePathPostfixes: .openvino
+
+%description openvino-test
+The test binaries of the %{name}-openvino package
+%endif
+
+%endif
+
+%if %{with rocm_migraphx}
+%package -n rocm-onnxruntime-migraphx
+Summary: The ROCm version of the %{name} package using MIGraphX PE
+Obsoletes: onnxruntime-rocm < %version-%release
+Provides: onnxruntime-rocm = %version-%release
+
+%description -n rocm-onnxruntime-migraphx
+%{summary}
+
+%package -n rocm-onnxruntime-migraphx-devel
+Summary: The ROCm development part of the rocm-%{name}-migraphx package
+Requires: rocm-onnxruntime-migraphx%{_isa} = %{version}-%{release}
+Obsoletes: onnxruntime-rocm-devel < %version-%release
+Provides: onnxruntime-rocm-devel = %version-%release
+
+%description -n rocm-onnxruntime-migraphx-devel
+%{summary}
+
+%package -n rocm-onnxruntime-migraphx-test
+Summary: The ROCm test part of the rocm-%{name}-migraphx package
+Requires: rocm-onnxruntime-migraphx%{_isa} = %{version}-%{release}
+Obsoletes: onnxruntime-rocm-test < %version-%release
+Provides: onnxruntime-rocm-test = %version-%release
+
+%description -n rocm-onnxruntime-migraphx-test
+%{summary}
+%endif
%package doc
Summary: Documentation files for the %{name} package
@@ -222,92 +292,114 @@ Summary: Documentation files for the %{name} package
%description doc
Documentation files for the %{name} package
-%if %{with rocm}
-%endif
-
%prep
%autosetup -p1
# Downstream-only: do not pin the version of abseil-cpp; use what we have.
sed -r -i 's/(FIND_PACKAGE_ARGS[[:blank:]]+)[0-9]{8}/\1/' \
cmake/external/abseil-cpp.cmake
+# Remove unnecesary folders
+rm -rf onnxruntime/cmake/external/{onnx,libprotobuf-mutator,emsdk}
-for backend in %backends; do
- mkdir -p ./%{_vpath_builddir}/_deps/utf8_range-subbuild/utf8_range-populate-prefix/src/
- cp -r %{SOURCE1} ./%{_vpath_builddir}/_deps/utf8_range-subbuild/utf8_range-populate-prefix/src/%{utf8_range_commit}.zip
-done
%build
-# Broken test in aarch64
-%ifarch aarch64
-rm -v onnxruntime/test/optimizer/nhwc_transformer_test.cc
-%endif
# Re-compile flatbuffers schemas with the system flatc
%{python3} onnxruntime/core/flatbuffers/schema/compile_schema.py --flatc /usr/bin/flatc
%{python3} onnxruntime/lora/adapter_format/compile_schema.py --flatc /usr/bin/flatc
-# -Werror is too strict and brittle for distribution packaging.
-%if 0%{?fedora} < 44
-CXXFLAGS+="-Wno-error"
-%else
-# -Wno-error=sfinae-incomplete -Wno-error=array-bounds -Wno-error=uninitialized added
-# until codebase is fixed.
-CXXFLAGS+="-Wno-error -Wno-error=sfinae-incomplete -Wno-error=array-bounds -Wno-error=uninitialized -Wno-error=maybe-uninitialized"
-%endif
-
-# Overrides BUILD_SHARED_LIBS flag since onnxruntime compiles individual components as static, and links
-# all together into a single shared library when onnxruntime_BUILD_SHARED_LIB is ON.
-# The array-bounds and dangling-reference checks have false positives.
%global cmake_config \\\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
-Donnxruntime_BUILD_BENCHMARKS=OFF \\\
-Donnxruntime_BUILD_SHARED_LIB=ON \\\
- -Donnxruntime_BUILD_UNIT_TESTS=ON \\\
-Donnxruntime_ENABLE_PYTHON=ON \\\
-DPYTHON_VERSION=%{python3_version} \\\
- -Donnxruntime_ENABLE_ABSEIL=ON \\\
+ -Donnxruntime_DISABLE_ABSEIL=OFF \\\
-Donnxruntime_ENABLE_DLPACK=OFF \\\
-Donnxruntime_USE_FULL_PROTOBUF=ON \\\
- -Donnxruntime_USE_NEURAL_SPEED=OFF \\\
-Donnxruntime_USE_PREINSTALLED_EIGEN=ON \\\
-Deigen_SOURCE_PATH=/usr/include/eigen3 \\\
- -S cmake \\\
+ -DProtobuf_BUILD_SHARED_LIBS=OFF \\\
+ -S cmake
-%if %{with rocm}
-backend=rocm
-%cmake %cmake_config \
- -DCMAKE_INSTALL_BINDIR=%{_lib}/rocm/bin \
- -DCMAKE_INSTALL_INCLUDEDIR=%{_lib}/rocm/include \
- -DCMAKE_INSTALL_LIBDIR=%{_lib}/rocm/lib \
- -Donnxruntime_ENABLE_CPUINFO=ON \
- -DCMAKE_HIP_ARCHITECTURES=%rocm_gpu_list_default \
- -DCMAKE_HIP_COMPILER=%rocmllvm_bindir/clang++ \
- -DCMAKE_HIP_PLATFORM=amd \
-%if %{with rocm_test}
- -Donnxruntime_INSTALL_UNIT_TESTS=ON \
+%ifarch ppc64le
+%global cmake_config %cmake_config \\\
+ -Donnxruntime_ENABLE_CPUINFO=OFF
%else
- -Donnxruntime_INSTALL_UNIT_TESTS=OFF \
+%global cmake_config %cmake_config \\\
+ -Donnxruntime_ENABLE_CPUINFO=ON
%endif
- -Donnxruntime_ROCM_HOME=%{_prefix} \
- -Donnxruntime_USE_COMPOSABLE_KERNEL=OFF \
- -Donnxruntime_USE_ROCM=ON
-%cmake_build
+%if %{with test}
+%global cmake_tests \\\
+ -Donnxruntime_BUILD_UNIT_TESTS=ON
+%else
+%global cmake_tests \\\
+ -Donnxruntime_BUILD_UNIT_TESTS=OFF
%endif
-%if %{with migraphx}
-backend=migraphx
+for backend in %backends; do
+ cp -R ./onnxruntime ./onnxruntime.bak
+ cp ./requirements.txt ./requirements.txt.bak
+
+ if [ "${backend}" == "cpu" ]; then
+ %cmake %cmake_config \
+ %cmake_tests
+ elif [ "${backend}" == "migraphx" ]; then
+ %cmake %cmake_config \
+ %cmake_tests \
+ -Donnxruntime_USE_MIGRAPHX=ON
+ elif [ "${backend}" == "dnnl" ]; then
+ %cmake %cmake_config \
+ %cmake_tests \
+ -Donnxruntime_USE_DNNL=ON
+ elif [ "${backend}" == "openvino" ]; then
+ %cmake %cmake_config \
+ %cmake_tests \
+ -Donnxruntime_USE_OPENVINO=ON
+ fi
+
+ %cmake_build
+
+ # Build python libs
+ cp -R ./%{__cmake_builddir}/onnxruntime/* ./onnxruntime
+ cp ./%{__cmake_builddir}/requirements.txt ./requirements.txt
+
+ if [ "${backend}" == "cpu" ]; then
+ %pyproject_wheel
+ elif [ "${backend}" == "migraphx" ]; then
+ %pyproject_wheel -C--global-option=--use_migraphx
+ elif [ "${backend}" == "dnnl" ]; then
+ cp -p ./%{__cmake_builddir}/libonnxruntime_providers_dnnl.so \
+ ./onnxruntime/capi/
+ %pyproject_wheel -C--global-option=--use_dnnl
+ elif [ "${backend}" == "openvino" ]; then
+ %pyproject_wheel -C--global-option=--use_openvino
+ fi
+
+ # Store each backend result separately
+ mkdir -p dist_onnxruntime_${backend}
+ mv %{_pyproject_wheeldir}/*.whl dist_onnxruntime_${backend}/
+ mv ./build dist_onnxruntime_${backend}/
+
+ rm -rf ./onnxruntime
+ rm -rf ./requirements.txt
+ mv ./onnxruntime.bak ./onnxruntime
+ mv ./requirements.txt.bak ./requirements.txt
+done
+
+%if %{with rocm_migraphx}
+backend=rocm_migraphx
%cmake %cmake_config \
-DCMAKE_INSTALL_BINDIR=%{_lib}/rocm/bin \
-DCMAKE_INSTALL_INCLUDEDIR=%{_lib}/rocm/include \
-DCMAKE_INSTALL_LIBDIR=%{_lib}/rocm/lib \
-Donnxruntime_ENABLE_CPUINFO=ON \
-DCMAKE_HIP_PLATFORM=amd \
-%if %{with migraphx_test}
- -Donnxruntime_INSTALL_UNIT_TESTS=ON \
+%if %{with rocm_test}
+ -Donnxruntime_BUILD_UNIT_TESTS=ON \
%else
- -Donnxruntime_INSTALL_UNIT_TESTS=OFF \
+ -Donnxruntime_BUILD_UNIT_TESTS=OFF \
%endif
-Donnxruntime_ROCM_HOME=%{_prefix} \
-Donnxruntime_USE_COMPOSABLE_KERNEL=OFF \
@@ -316,129 +408,214 @@ backend=migraphx
%cmake_build
%endif
-backend=cpu
-%cmake %cmake_config \
- -DCMAKE_INSTALL_LIBDIR=%{_lib} \
- -DCMAKE_INSTALL_INCLUDEDIR=include \
-%ifarch ppc64le
- -Donnxruntime_ENABLE_CPUINFO=OFF \
-%else
- -Donnxruntime_ENABLE_CPUINFO=ON \
-%endif
- -Donnxruntime_INSTALL_UNIT_TESTS=OFF
-
-%cmake_build
-
-# Build python libs
-cp -R ./%{__cmake_builddir}/onnxruntime/* ./onnxruntime
-cp ./%{__cmake_builddir}/requirements.txt ./requirements.txt
-%pyproject_wheel
-
%install
-%if %{with rocm}
-backend=rocm
-%cmake_install
-%endif
+mkdir -p %{_builddir}/buildroot_acumulator
+for backend in %backends; do
+ %cmake_install
+ if [ "${backend}" = "cpu" ]; then
+ mkdir -p "%{buildroot}/%{_docdir}/"
+ cp --preserve=timestamps -r "./docs/" "%{buildroot}/%{_docdir}/%{name}"
+ fi
+
+ # Install python libs
+ # Retrieve each python wheel
+ cp dist_onnxruntime_${backend}/*.whl %{_pyproject_wheeldir}/
+ cp -r dist_onnxruntime_${backend}/build ./build
+
+ # Run install process
+ %pyproject_install
+ %if ! %{with test}
+ rm -rf %{buildroot}%{_bindir}
+ %endif
+
+
+ if [ "${backend}" = "cpu" ]; then
+ # List installed files and copy result
+ %pyproject_save_files onnxruntime
+ cp %{pyproject_files} %{_builddir}/files_${backend}
+
+ else
+ # List installed files and copy result
+ %pyproject_save_files onnxruntime 'onnxruntime*'
+ cp %{pyproject_files} %{_builddir}/files_${backend}
+
+ # Add postfix to files in onnxruntime directory from specific backend
+ sed -i '/^%dir/! { /\.dist-info/! s/$/.'"${backend}"'/}' %{_builddir}/files_${backend}
+ find %{buildroot}%{python3_sitearch}/onnxruntime/ -type f -exec bash -c 'mv "${0}" "${0}.'"${backend}"'"' {} \;
+
+ # Make sure that even if they have a postfix, to keep the extension of .pyc files
+ # so that they are properly processed on the check-buildroot step.
+ sed -i 's/.pyc.'"${backend}"'$/.pyc.'"${backend}"'.pyc/' %{_builddir}/files_${backend}
+ find %{buildroot}%{python3_sitearch}/onnxruntime/ -type f -iname "*.pyc.${backend}" -exec bash -c 'mv "${0}" "${0}.pyc"' {} \;
+
+ # Rename other installed files
+ mv %{buildroot}%{_libdir}/libonnxruntime.so.%{version} \
+ %{buildroot}%{_libdir}/libonnxruntime.so.%{version}.${backend}
+ mv %{buildroot}%{_libdir}/libonnxruntime_providers_shared.so \
+ %{buildroot}%{_libdir}/libonnxruntime_providers_shared.so.${backend}
+
+ %if %{with test}
+ mv %{buildroot}%{_bindir}/onnx_test_runner \
+ %{buildroot}%{_bindir}/onnx_test_runner.${backend}
+ mv %{buildroot}%{_bindir}/onnxruntime_test \
+ %{buildroot}%{_bindir}/onnxruntime_test.${backend}
+ %endif
+ fi
+
+ # Remove this file on each loop so that pyproject_save_files works properly
+ rm -f %{_pyproject_record}
+ # Store results so that they don't get overwritten in the loop
+ cp -a %{buildroot}/* %{_builddir}/buildroot_acumulator/
+ rm -rf %{buildroot}/*
+
+ # Reset environment
+ rm -rf %{_pyproject_wheeldir}/*
+ rm -rf ./build
+done
-%if %{with migraphx}
-backend=migraphx
+%if %{with rocm_migraphx}
+backend=rocm_migraphx
%cmake_install
+%if ! %{with rocm_migraphx_test}
+ rm -rf %{buildroot}%{_libdir}/rocm/bin
+%endif
%endif
-backend=cpu
-%cmake_install
-mkdir -p "%{buildroot}/%{_docdir}/"
-cp --preserve=timestamps -r "./docs/" "%{buildroot}/%{_docdir}/%{name}"
-
-%pyproject_install
-%pyproject_save_files onnxruntime
+# Restore results
+mkdir -p %{buildroot}
+cp -a %{_builddir}/buildroot_acumulator/* %{buildroot}
+rm -rf %{_builddir}/buildroot_acumulator
-ln -s "../../../../libonnxruntime_providers_shared.so.%{version}" "%{buildroot}/%{python3_sitearch}/onnxruntime/capi/libonnxruntime_providers_shared.so"
+%if %{with test} || %{with rocm_migraphx_test}
+%check
+export GTEST_FILTER=" \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutNoCase \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutLower \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutUpper \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutUpperWithLocale \
+ -CContribOpTest.StringNormalizerInsensitiveFilterOutUpperWithLocale \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutUpperEmptyCase \
+ -CContribOpTest.StringNormalizerSensitiveFilterOutUpperSameOutput \
+ -CRandom.MultinomialGoodCase \
+ -CRandom.MultinomialDefaultDType \
+ -CSamplingTest.Gpt2Sampling_CPU "
%if %{with test}
-%check
+for backend in %backends; do
+ %ctest
+done
+%endif
-%if %{with migraphx_test}
-backend=migraphx
-export GTEST_FILTER=-CApiTensorTest.load_huge_tensor_with_external_data
+%if %{with rocm_migraphx_test}
+backend=rocm_migraphx
%ctest
%endif
-%if %{with rocm_test}
-backend=rocm
-export GTEST_FILTER=-CApiTensorTest.load_huge_tensor_with_external_data
-%ctest
-%else
-backend=cpu
-export GTEST_FILTER=-CApiTensorTest.load_huge_tensor_with_external_data
+%if %{with rocm_migraphx_test}
+backend=rocm_migraphx
%ctest
%endif
-
%endif
%files
%license LICENSE
%doc ThirdPartyNotices.txt
+%{_libdir}/libonnxruntime.so.%{so_version}
%{_libdir}/libonnxruntime.so.%{version}
-%{_libdir}/libonnxruntime_providers_shared.so.%{version}
+%{_libdir}/libonnxruntime_providers_shared.so
%files devel
%dir %{_includedir}/onnxruntime/
+%dir %{_libdir}/cmake/onnxruntime/
%{_includedir}/onnxruntime/*
-%{_libdir}/libonnxruntime.so*
-%{_libdir}/libonnxruntime_providers_shared.so
-%{_libdir}/pkgconfig/libonnxruntime.pc
%{_libdir}/cmake/onnxruntime/*
+%{_libdir}/libonnxruntime.so
+%{_libdir}/pkgconfig/libonnxruntime.pc
+
+%files -n python3-onnxruntime -f %{_builddir}/files_cpu
-%files -n python3-onnxruntime -f %{pyproject_files}
+%if %{with test}
+%files test
+%{_bindir}/onnx_test_runner
%{_bindir}/onnxruntime_test
-%{python3_sitearch}/onnxruntime/capi/libonnxruntime_providers_shared.so
+%endif
-%files doc
-%{_docdir}/%{name}
+%if %{with migraphx}
+%files migraphx
+%license LICENSE
+%doc ThirdPartyNotices.txt
+%{_libdir}/libonnxruntime.so.%{so_version}
+%{_libdir}/libonnxruntime.so.%{version}.migraphx
+%{_libdir}/libonnxruntime_providers_shared.so.migraphx
+%{_libdir}/libonnxruntime_providers_migraphx.so
-%if %{with rocm}
-%files rocm
+%files -n python3-onnxruntime-migraphx -f %{_builddir}/files_migraphx
+
+%if %{with test}
+%files migraphx-test
+%{_bindir}/onnx_test_runner.migraphx
+%{_bindir}/onnxruntime_test.migraphx
+%endif
+%endif
+
+%if %{with dnnl}
+%files dnnl
%license LICENSE
%doc ThirdPartyNotices.txt
-%{_libdir}/rocm/lib/libonnxruntime.so.%{version}
-%{_libdir}/rocm/lib/libonnxruntime_providers_shared.so.%{version}
-%{_libdir}/rocm/lib/libonnxruntime_providers_rocm.so
+%{_libdir}/libonnxruntime.so.%{so_version}
+%{_libdir}/libonnxruntime.so.%{version}.dnnl
+%{_libdir}/libonnxruntime_providers_shared.so.dnnl
+%{_libdir}/libonnxruntime_providers_dnnl.so
-%files rocm-devel
-%dir %{_libdir}/rocm/include/onnxruntime/
-%dir %{_libdir}/rocm/lib/cmake/onnxruntime/
-%{_libdir}/rocm/include/onnxruntime/*
-%{_libdir}/rocm/lib/libonnxruntime.so*
-%{_libdir}/rocm/lib/libonnxruntime_providers_shared.so
-%{_libdir}/rocm/lib/pkgconfig/libonnxruntime.pc
-%{_libdir}/rocm/lib/cmake/onnxruntime/*
+%files -n python3-onnxruntime-dnnl -f %{_builddir}/files_dnnl
-%if %{with rocm_test}
-%files rocm-test
-%{_libdir}/rocm/bin/*
+%if %{with test}
+%files dnnl-test
+%{_bindir}/onnx_test_runner.dnnl
+%{_bindir}/onnxruntime_test.dnnl
%endif
%endif
-%if %{with migraphx}
-%files migraphx
+%if %{with openvino}
+%files openvino
%license LICENSE
%doc ThirdPartyNotices.txt
+%{_libdir}/libonnxruntime.so.%{so_version}
+%{_libdir}/libonnxruntime.so.%{version}.openvino
+%{_libdir}/libonnxruntime_providers_shared.so.openvino
+%{_libdir}/libonnxruntime_providers_openvino.so
+
+%files -n python3-onnxruntime-openvino -f %{_builddir}/files_openvino
+
+%if %{with test}
+%files openvino-test
+%{_bindir}/onnx_test_runner.openvino
+%{_bindir}/onnxruntime_test.openvino
+%endif
+%endif
+
+%files doc
+%{_docdir}/%{name}
+
+%if %{with rocm_migraphx}
+%files -n rocm-onnxruntime-migraphx
+%license LICENSE
+%doc ThirdPartyNotices.txt
+%{_libdir}/rocm/lib/libonnxruntime.so.%{so_version}
%{_libdir}/rocm/lib/libonnxruntime.so.%{version}
-%{_libdir}/rocm/lib/libonnxruntime_providers_shared.so.%{version}
+%{_libdir}/rocm/lib/libonnxruntime_providers_shared.so
%{_libdir}/rocm/lib/libonnxruntime_providers_migraphx.so
-%files migraphx-devel
+%files -n rocm-onnxruntime-migraphx-devel
%dir %{_libdir}/rocm/include/onnxruntime/
%dir %{_libdir}/rocm/lib/cmake/onnxruntime/
%{_libdir}/rocm/include/onnxruntime/*
-%{_libdir}/rocm/lib/libonnxruntime.so*
-%{_libdir}/rocm/lib/libonnxruntime_providers_shared.so
+%{_libdir}/rocm/lib/libonnxruntime.so
%{_libdir}/rocm/lib/pkgconfig/libonnxruntime.pc
%{_libdir}/rocm/lib/cmake/onnxruntime/*
-%if %{with migraphx_test}
-%files migraphx-test
+%if %{with rocm_migraphx_test}
+%files -n rocm-onnxruntime-migraphx-test
%{_libdir}/rocm/bin/*
%endif
%endif
diff --git a/sources b/sources
index 9689270..9a92f29 100644
--- a/sources
+++ b/sources
@@ -1,6 +1 @@
-SHA512 (onnxruntime-1.15.1.tar.gz) = c9ad2ab1102bb97bdd88aa8e06432fff2960fb21172891eee9631ff7cbbdf3366cd7cf5c0baa494eb883135eab47273ed3128851ff4d9adfa004a479e941b6b5
-SHA512 (onnxruntime-1.16.3.tar.gz) = f2fec4ded88da6bf67ae7d0aa3082736cb3b8ba29e723b5a516d7632b68ce02aed461f24d3e82cbab20757729e0ab45d736bd986c9b7395f2879b16a091c12a1
-SHA512 (onnxruntime-1.17.3.tar.gz) = f24e333ad113e15733867fae237c3495f93e373b2998508deeebb061ce9a56c444bf68fc49ae251bcc45539d0695f3ae758d73dc3c42bc01bbd7cfaa8561c793
-SHA512 (utf8_range-72c943d.zip) = 191e409e77375389be09649bfef9ed5c74423761ef61f409ae99573ea9af7185d4f4c8035729f26e749d13fabdd36c7eb982d3175a51b9e74a8e8baec51cd85e
-SHA512 (onnxruntime-1.20.1.tar.gz) = f9e8e350567ca6bf6bc9dc08886936338469256ce0e92147f883fbb76c9f2213d46f8915c89254c00b9b9f7b1ab20517687af33c0fa20110154f2d47da5ca759
-SHA512 (onnxruntime-1.22.2.tar.gz) = af123f6374f522715caab28c8147882a7f1787e6616cb7226efd2fb02fd5935a7263c523d694e5dd1ea7971cdb2e71f939218231c2d18a8baba3e97171c3ef0b
+SHA512 (onnxruntime-1.26.0.tar.gz) = 14d629a14eb2161178c6babe49ed8a3adb15e8c6d26adc4c975261f9b5d43674e8a85bc4dbeb05a87917291d44b056140a1ac5a1c70ed80d92cb3f38cc670ebd
reply other threads:[~2026-06-26 23:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178251833630.1.15524554267058072629.rpms-onnxruntime-73ded64e3353@fedoraproject.org \
--to=dherrera@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox