Skip to content

Commit 38314c2

Browse files
authored
Revert "aarch64: patch mkl-dnn for xbyak crashes due to /sys not accessible (#1648)" (#1765)
This reverts commit 524a027.
1 parent 0de12bc commit 38314c2

File tree

3 files changed

+0
-103
lines changed

3 files changed

+0
-103
lines changed

aarch64_linux/aarch64_wheel_ci_build.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ def parse_arguments():
106106
else:
107107
print("build pytorch without mkldnn backend")
108108

109-
# patch mkldnn to fix aarch64 mac and aws lambda crash
110-
print("Applying mkl-dnn patch to fix crash due to /sys not accesible")
111-
with open("/builder/mkldnn_fix/fix-xbyak-failure.patch") as f:
112-
check_call(["patch", "-p1"], stdin=f, cwd="/pytorch/third_party/ideep/mkl-dnn")
113-
114109
os.system(f"cd /pytorch; {build_vars} python3 setup.py bdist_wheel")
115110
pytorch_wheel_name = complete_wheel("pytorch")
116111
print(f"Build Compelete. Created {pytorch_wheel_name}..")

aarch64_linux/build_aarch64_wheel.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,6 @@ def start_build(host: RemoteHost, *,
556556
build_ArmComputeLibrary(host, git_clone_flags)
557557
print("build pytorch with mkldnn+acl backend")
558558
build_vars += " USE_MKLDNN=ON USE_MKLDNN_ACL=ON"
559-
host.run_cmd("cd $HOME && git clone https://github.com/pytorch/builder.git")
560-
host.run_cmd("cd $HOME/pytorch/third_party/ideep/mkl-dnn && patch -p1 < $HOME/builder/mkldnn_fix/fix-xbyak-failure.patch") # noqa: E501
561559
host.run_cmd(f"cd $HOME/pytorch && export ACL_ROOT_DIR=$HOME/ComputeLibrary && {build_vars} python3 setup.py bdist_wheel{build_opts}") # noqa: E501
562560
print('Repair the wheel')
563561
pytorch_wheel_name = host.list_dir("pytorch/dist")[0]

mkldnn_fix/fix-xbyak-failure.patch

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)