-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aarch64] Fix for pytorch-2.1.0 aarch64 wheels crash on A1/Raspberry …
…Pie (#1562) * [aarch64] set acl_build_flags arch=armv8a, remove editing build flags (#1550) Looking at this PR: #1370 this line: https://github.com/pytorch/builder/pull/1370/files#diff-54480d0a69ca27f54fb0736a9762caa8b03bd4736dcd77190d99ec3033c9bd2fR229 That fixed the issue: pytorch/pytorch#97226 One of the changes is to set ``` arch=armv8a ``` We are experiencing the same issue now: pytorch/pytorch#109312 Hence this fix. * [aarch64] patch mkl-dnn to use 'march=armv8-a' as the default build (#1554) * [aarch64] patch pytorch 2.1 for mkl-dnn fix (#1555) * patch ci script with mkldnn fix (#1556) * Fix path issue when building aarch64 wheels (#1560) --------- Co-authored-by: snadampal <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 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
29 changes: 29 additions & 0 deletions
29
mkldnn_fix/aarch64-fix-default-build-flags-to-armv8-a.patch
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,29 @@ | ||
--- | ||
cmake/platform.cmake | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/cmake/platform.cmake b/cmake/platform.cmake | ||
index 8630460ce..602eafe8e 100644 | ||
--- a/cmake/platform.cmake | ||
+++ b/cmake/platform.cmake | ||
@@ -198,7 +198,7 @@ elseif(UNIX OR MINGW) | ||
endif() | ||
# For native compilation tune for the host processor | ||
if (CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR) | ||
- append(DEF_ARCH_OPT_FLAGS "-mcpu=native") | ||
+ append(DEF_ARCH_OPT_FLAGS "-march=armv8-a") | ||
endif() | ||
elseif(DNNL_TARGET_ARCH STREQUAL "PPC64") | ||
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
@@ -295,7 +295,7 @@ elseif(UNIX OR MINGW) | ||
endif() | ||
# For native compilation tune for the host processor | ||
if (CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR) | ||
- append(DEF_ARCH_OPT_FLAGS "-mcpu=native") | ||
+ append(DEF_ARCH_OPT_FLAGS "-march=armv8-a") | ||
endif() | ||
elseif(DNNL_TARGET_ARCH STREQUAL "PPC64") | ||
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
-- | ||
2.34.1 | ||
|