-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5743 from cms-sw/update_onnxruntime_ppc
[ONNX runtime] Update for powerpc
- Loading branch information
Showing
7 changed files
with
57 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h | ||
index 9464264..eda73ec 100755 | ||
--- a/Eigen/src/Core/arch/AltiVec/PacketMath.h | ||
+++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h | ||
@@ -452,7 +452,7 @@ template<> EIGEN_STRONG_INLINE Packet4f pandnot<Packet4f>(const Packet4f& a, con | ||
template<> EIGEN_STRONG_INLINE Packet4i pandnot<Packet4i>(const Packet4i& a, const Packet4i& b) { return vec_and(a, vec_nor(b, b)); } | ||
|
||
template<> EIGEN_STRONG_INLINE Packet4f pselect(const Packet4f& mask, const Packet4f& a, const Packet4f& b) { | ||
- return vec_sel(b, a, mask); | ||
+ return vec_sel(b, a, reinterpret_cast<Packet4ui>(mask)); | ||
} | ||
|
||
template<> EIGEN_STRONG_INLINE Packet4f pround<Packet4f>(const Packet4f& a) { return vec_round(a); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Requires: cmake py2-numpy protobuf py2-protobuf py2-six py2-typing_extensions | ||
Requires: py3-numpy py2-pytest-runner | ||
Requires: cmake py2-numpy protobuf py2-protobuf py2-six py2-typing_extensions py3-numpy py2-pytest-runner | ||
Patch0: py2-onnx | ||
|
||
%define PipPreBuild export ONNX_ML=1 | ||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 8351a52..613ea76 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -226,7 +226,7 @@ function(RELATIVE_PROTOBUF_GENERATE_CPP NAME SRCS HDRS ROOT_DIR DEPEND) | ||
${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR}) | ||
if(BUILD_ONNX_PYTHON) | ||
list(APPEND PROTOC_ARGS --python_out | ||
- ${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR}) | ||
+ ${CMAKE_CURRENT_BINARY_DIR}) | ||
if(ONNX_GEN_PB_TYPE_STUBS) | ||
# Haven't figured out how to generate mypy stubs on Windows yet | ||
if(NOT WIN32) |