File tree Expand file tree Collapse file tree 5 files changed +20
-12
lines changed Expand file tree Collapse file tree 5 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ source ${BUILD_ENV_FILE}
5
5
${CONDA_RUN} ${PIP_INSTALL_TORCH} torchvision
6
6
${CONDA_RUN} python -m pip install pyyaml mpmath==1.3.0
7
7
export TRT_VERSION=$( ${CONDA_RUN} python -c " import versions; versions.tensorrt_version()" )
8
- ${CONDA_RUN} python -m pip install /opt/torch-tensorrt-builds/torch_tensorrt* +${CU_VERSION} * .whl tensorrt~=${TRT_VERSION} tensorrt-bindings~=${TRT_VERSION} --extra-index-url=https://pypi.ngc.nvidia.com
8
+
9
+ # Print PYTHON_VERSION
10
+ printf " PYTHON_VERSION is equal to %s" ${PYTHON_VERSION// ./ }
11
+
12
+ # Install TensorRT manually
13
+ 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
14
+ 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/
15
+ python -m pip install /opt/torch-tensorrt-builds/TensorRT-10.0.0.6/python/tensorrt-10.0.0b6-cp${PYTHON_VERSION// ./ } -none-linux_x86_64.whl
16
+
17
+ # Install Torch-TensorRT
18
+ ${CONDA_RUN} python -m pip install /opt/torch-tensorrt-builds/torch_tensorrt* +${CU_VERSION} * .whl
9
19
10
20
echo -e " Running test script" ;
Original file line number Diff line number Diff line change 79
79
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
80
80
pushd .
81
81
cd tests/modules
82
- ${CONDA_RUN} python -m pip install --pre -r requirements.txt --use-deprecated=legacy-resolver
82
+ # Don't use requirements.txt here as it contains tensorrt and torch which should have been installed by now.
83
+ ${CONDA_RUN} python -m pip install numpy packaging pyyaml pybind11==2.6.2
83
84
${CONDA_RUN} python hub.py
84
85
popd
85
86
pushd .
Original file line number Diff line number Diff line change 1
- export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
2
- echo $LD_LIBRARY_PATH
3
- python -m pip install /opt/torch-tensorrt-builds/TensorRT-10.0.0.6/python/tensorrt-10.0.0b6-cp38-none-linux_x86_64.whl
Original file line number Diff line number Diff line change
1
+ # Smoke test is intentionally disabled.
2
+ # The issue was smoke test installs the built torch_tensorrt wheel file and checks `import torch_tensorrt; print(torch_tensorrt.__version__)`
3
+ # Since tensorrt cannot be pip installable in CI, the smoke test will fail.
4
+ # One way we tried to handle it is manually install tensorrt wheel while by extracting from the tarball.
5
+ # However, the TensorRT-10.0.0.6/lib path doesn't seem to show up in LD_LIBRARY_PATH even if we explicitly set it.
6
+ # TODO: Implement a custom smoke_test script to verify torch_tensorrt installation.
Original file line number Diff line number Diff line change @@ -5,10 +5,4 @@ pybind11==2.6.2
5
5
torch == 2.3.0
6
6
torchvision == 0.18.0
7
7
--extra-index-url https://pypi.ngc.nvidia.com
8
- pyyaml
9
- # Extras
10
- ninja >= 1.11.0
11
- cffi >= 1.15.1
12
- pybind11 == 2.6.2
13
- wheel >= 0.40.0
14
- future >= 0.18.3
8
+ pyyaml
You can’t perform that action at this time.
0 commit comments