We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7680456 commit 2abe4baCopy full SHA for 2abe4ba
py/torch_tensorrt/__init__.py
@@ -60,7 +60,10 @@ def _find_lib(name, paths):
60
elif sys.platform.startswith("linux"):
61
LINUX_PATHS = [
62
"/usr/local/cuda/lib64",
63
- ] + os.environ["LD_LIBRARY_PATH"].split(os.path.pathsep)
+ ]
64
+
65
+ if "LD_LIBRARY_PATH" in os.environ:
66
+ LINUX_PATHS += os.environ["LD_LIBRARY_PATH"].split(os.path.pathsep)
67
68
if platform.uname().processor == "x86_64":
69
LINUX_PATHS += [
0 commit comments