Skip to content

Commit

Permalink
check_binary_symbols: Change search path for libtorch
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Sep 4, 2024
1 parent 068f797 commit 3fd03e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check_binary_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def check_lib_symbols_for_abi_correctness(lib: str, pre_cxx11_abi: bool = True)

def main() -> None:
if os.getenv("PACKAGE_TYPE") == "libtorch":
install_root = Path(__file__).parent.parent
install_root = Path(os.get_cwd())
else:
install_root = Path(distutils.sysconfig.get_python_lib()) / "torch"
libtorch_cpu_path = install_root / "lib" / "libtorch_cpu.so"
Expand Down

0 comments on commit 3fd03e6

Please sign in to comment.