8000 [aarch64] set rpath for libs copied for cuda sbsa wheel (#1920) · pytorch/builder@1914e76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1914e76

Browse files
authored
[aarch64] set rpath for libs copied for cuda sbsa wheel (#1920)
* set rpath for libs copied for arm * fix lint
1 parent b9ef2f1 commit 1914e76

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

aarch64_linux/aarch64_wheel_ci_build.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ def update_wheel(wheel_path) -> None:
9595
for lib_path in libs_to_copy:
9696
lib_name = os.path.basename(lib_path)
9797
shutil.copy2(lib_path, f"{folder}/tmp/torch/lib/{lib_name}")
98-
os.system(
99-
f"cd {folder}/tmp/torch/lib/; patchelf --set-rpath '$ORIGIN' {folder}/tmp/torch/lib/libtorch_cuda.so"
100-
)
101-
os.system(
102-
f"cd {folder}/tmp/torch/lib/; patchelf --set-rpath '$ORIGIN' {folder}/tmp/torch/lib/libcudnn_graph.so.9"
103-
)
98+
os.system(
99+
f"cd {folder}/tmp/torch/lib/; "
100+
f"patchelf --set-rpath '$ORIGIN' --force-rpath {folder}/tmp/torch/lib/{lib_name}"
101+
)
104102
os.mkdir(f"{folder}/cuda_wheel")
105103
os.system(f"cd {folder}/tmp/; zip -r {folder}/cuda_wheel/{wheelname} *")
106104
shutil.move(

0 commit comments

Comments
 (0)
0