Skip to content

Commit

Permalink
Use patched onnxruntime for Arch and Fedora build (#235)
Browse files Browse the repository at this point in the history
* Use forked onnxruntime

* Update BuildMyOnnxruntime.cmake

* Update BuildMyOnnxruntime.cmake

* Patch

* Update BuildMyOnnxruntime.cmake

* Update BuildMyOnnxruntime.cmake

* Update BuildMyOnnxruntime.cmake
  • Loading branch information
umireon authored Apr 2, 2023
1 parent 8aed394 commit 4c2e152
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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.

0 comments on commit 4c2e152

Please sign in to comment.