Skip to content

Commit

Permalink
feat: support finding libraries on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
  • Loading branch information
narendasan committed Jul 22, 2022
1 parent 7680456 commit 2abe4ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/torch_tensorrt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def _find_lib(name, paths):
elif sys.platform.startswith("linux"):
LINUX_PATHS = [
"/usr/local/cuda/lib64",
] + os.environ["LD_LIBRARY_PATH"].split(os.path.pathsep)
]

if "LD_LIBRARY_PATH" in os.environ:
LINUX_PATHS += os.environ["LD_LIBRARY_PATH"].split(os.path.pathsep)

if platform.uname().processor == "x86_64":
LINUX_PATHS += [
Expand Down

0 comments on commit 2abe4ba

Please sign in to comment.