Skip to content

Commit f6d12ba

Browse files
authored
[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.
1 parent ef74ced commit f6d12ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

aarch64_linux/aarch64_wheel_ci_build.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ def build_ArmComputeLibrary(git_clone_flags: str = "") -> None:
2121
print('Building Arm Compute Library')
2222
os.system("cd / && mkdir /acl")
2323
os.system(f"git clone https://github.com/ARM-software/ComputeLibrary.git -b v23.05.1 {git_clone_flags}")
24-
os.system('sed -i -e \'s/"armv8.2-a"/"armv8-a"/g\' ComputeLibrary/SConscript; '
25-
'sed -i -e \'s/-march=armv8.2-a+fp16/-march=armv8-a/g\' ComputeLibrary/SConstruct; '
26-
'sed -i -e \'s/"-march=armv8.2-a"/"-march=armv8-a"/g\' ComputeLibrary/filedefs.json')
2724
os.system("cd ComputeLibrary; export acl_install_dir=/acl; "
28-
"scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux openmp=1 cppthreads=0 arch=armv8.2-a multi_isa=1 build=native build_dir=$acl_install_dir/build; "
25+
"scons Werror=1 -j8 debug=0 neon=1 opencl=0 os=linux openmp=1 cppthreads=0 arch=armv8a multi_isa=1 build=native build_dir=$acl_install_dir/build; "
2926
"cp -r arm_compute $acl_install_dir; "
3027
"cp -r include $acl_install_dir; "
3128
"cp -r utils $acl_install_dir; "

0 commit comments

Comments
 (0)