Skip to content

Commit 71772d1

Browse files
authored
patch ci script with mkldnn fix (#1556)
1 parent 6021651 commit 71772d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aarch64_linux/aarch64_wheel_ci_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def parse_arguments():
105105
else:
106106
print("build pytorch without mkldnn backend")
107107

108+
# work around to fix Raspberry pie crash
109+
os.system(f"cd $HOME && git clone https://github.com/pytorch/builder.git")
110+
os.system(f"cd $HOME/pytorch/third_party/ideep/mkl-dnn && patch -p1 < $HOME/builder/mkldnn_fix/aarch64-fix-default-build-flags-to-armv8-a.patch")
108111
os.system(f"cd /pytorch; {build_vars} python3 setup.py bdist_wheel")
109112
pytorch_wheel_name = complete_wheel("pytorch")
110113
print(f"Build Compelete. Created {pytorch_wheel_name}..")

0 commit comments

Comments
 (0)