Skip to content

Commit

Permalink
patch ci script with mkldnn fix (pytorch#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
snadampal authored and atalman committed Oct 2, 2023
1 parent 1ffc178 commit 7259dfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aarch64_linux/aarch64_wheel_ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ def parse_arguments():
else:
print("build pytorch without mkldnn backend")

# work around to fix Raspberry pie crash
os.system(f"cd $HOME && git clone https://github.com/pytorch/builder.git")
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")
os.system(f"cd /pytorch; {build_vars} python3 setup.py bdist_wheel")
pytorch_wheel_name = complete_wheel("pytorch")
print(f"Build Compelete. Created {pytorch_wheel_name}..")

0 comments on commit 7259dfa

Please sign in to comment.