Skip to content

Commit c174691

Browse files
authored
fix: Missing nvinfer.dll in CI for Windows [release/2.3] (#2884)
1 parent b461bd3 commit c174691

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/scripts/install-torch-tensorrt-windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ${CONDA_RUN} pip install --pre -r ${PWD}/tests/py/requirements.txt --use-depreca
99
# Install Torch-TensorRT via pre-built wheels. On windows, the location of wheels is not fixed.
1010
${CONDA_RUN} pip install ${RUNNER_ARTIFACT_DIR}/torch_tensorrt*.whl
1111

12-
echo -e "Running test script";
12+
echo -e "Running test script";

packaging/pre_build_script_windows.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
python -m pip install -U numpy packaging pyyaml setuptools wheel
22

33
# Install TRT 10 from PyPi
4-
python -m pip install tensorrt==10.0.1 --extra-index-url https://pypi.nvidia.com
4+
TRT_VERSION=$(python -c "import yaml; print(yaml.safe_load(open('dev_dep_versions.yml', 'r'))['__tensorrt_version__'])")
5+
pip install tensorrt==${TRT_VERSION} tensorrt-cu12-bindings==${TRT_VERSION} tensorrt-cu12-libs==${TRT_VERSION} --extra-index-url https://pypi.nvidia.com
56

67
choco install bazelisk -y
78

tests/py/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ pytest-xdist>=3.6.1
66
networkx==2.8.8
77
torch==2.3.0
88
torchvision==0.18.0
9-
--extra-index-url https://pypi.ngc.nvidia.com
9+
--extra-index-url https://pypi.nvidia.com
1010
pyyaml
1111
tensorrt==10.0.1
12+
tensorrt-cu12-bindings==10.0.1
13+
tensorrt-cu12-libs==10.0.1
1214
timm>=1.0.3
1315
transformers==4.39.3
1416
parameterized>=0.2.0

0 commit comments

Comments
 (0)