Skip to content

Use patched onnxruntime for Arch and Fedora build #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/BuildMyOnnxruntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ ExternalProject_Add(
GIT_REPOSITORY https://github.com/microsoft/onnxruntime.git
GIT_TAG v1.14.1
GIT_SHALLOW ON
PATCH_COMMAND git apply ${CMAKE_SOURCE_DIR}/cmake/onnxruntime-v1.14.1.patch || true
CONFIGURE_COMMAND "${Onnxruntime_PLATFORM_CONFIGURE}"
BUILD_COMMAND
${PYTHON3} <SOURCE_DIR>/tools/ci_build/build.py --build_dir <BINARY_DIR> --config
Expand Down
12 changes: 12 additions & 0 deletions cmake/onnxruntime-v1.14.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/onnxruntime/core/mlas/lib/intrinsics/avx512/quantize_avx512f.cpp b/onnxruntime/core/mlas/lib/intrinsics/avx512/quantize_avx512f.cpp
index 47d2dce45c..162353a8ef 100644
--- a/onnxruntime/core/mlas/lib/intrinsics/avx512/quantize_avx512f.cpp
+++ b/onnxruntime/core/mlas/lib/intrinsics/avx512/quantize_avx512f.cpp
@@ -1,3 +1,7 @@
+#if !defined(__clang__) && defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
/*++

Copyright (c) Microsoft Corporation. All rights reserved.