fix: set runtime path (#2466)

This commit is contained in:
Yineng Zhang
2024-12-12 18:05:48 +08:00
committed by GitHub
parent dedaf8cd48
commit 2673fa29d4
3 changed files with 8 additions and 2 deletions

View File

@@ -82,6 +82,8 @@ setup(
],
"cxx": ["-O3"],
},
libraries=["c10", "torch", "torch_python"],
extra_link_args=["-Wl,-rpath,$ORIGIN/../../torch/lib"],
)
],
cmdclass={"build_ext": BuildExtension},