Skip to content

Commit 96a8bf6

Browse files
committed
chore: updates
1 parent 62332fb commit 96a8bf6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packaging/pre_build_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Install dependencies
44
python3 -m pip install pyyaml
55
yum install -y ninja-build gettext
6-
TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
6+
TRT_VERSION=10.0.0.6 #$(python3 -c "import versions; versions.tensorrt_version()")
77
wget -P /opt/torch-tensorrt-builds/ https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.0/TensorRT-10.0.0.6.Linux.x86_64-gnu.cuda-12.4.tar.gz
88
tar -xvzf /opt/torch-tensorrt-builds/TensorRT-10.0.0.6.Linux.x86_64-gnu.cuda-12.4.tar.gz -C /opt/torch-tensorrt-builds/
99
export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH

py/torch_tensorrt/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _find_lib(name: str, paths: List[str]) -> str:
6060

6161
elif sys.platform.startswith("linux"):
6262
LINUX_PATHS = ["/usr/local/cuda-12.1/lib64", "/usr/lib", "/usr/lib64"]
63-
63+
print("==== BOOL CHECK", "LD_LIBRARY_PATH" in os.environ)
6464
if "LD_LIBRARY_PATH" in os.environ:
6565
LINUX_PATHS += os.environ["LD_LIBRARY_PATH"].split(os.path.pathsep)
6666

@@ -92,9 +92,8 @@ def _find_lib(name: str, paths: List[str]) -> str:
9292
from torch_tensorrt.runtime import * # noqa: F403
9393

9494
if version.parse(sanitized_torch_version()) >= version.parse("2.1.dev"):
95-
from torch_tensorrt.dynamo import backend # noqa: F401
96-
9795
from torch_tensorrt import dynamo # noqa: F401
96+
from torch_tensorrt.dynamo import backend # noqa: F401
9897

9998

10099
def _register_with_torch() -> None:

0 commit comments

Comments
 (0)