1515
1616jobs :
1717 generate-matrix :
18- uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
18+ uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.3
1919 with :
2020 package-type : wheel
2121 os : linux
@@ -37,11 +37,11 @@ jobs:
3737 - repository : pytorch/tensorrt
3838 pre-script : packaging/pre_build_script.sh
3939 env-var-script : packaging/env_vars.txt
40- post-script : " "
41- smoke-test-script : " "
40+ post-script : packaging/post_build_script.sh
41+ smoke-test-script : packaging/smoke_test_script.sh
4242 package-name : torch_tensorrt
4343 name : Build torch-tensorrt whl package
44- uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
44+ uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.3
4545 with :
4646 repository : ${{ matrix.repository }}
4747 ref : " "
6565 - repository : pytorch/tensorrt
6666 package-name : torch_tensorrt
6767 pre-script : packaging/pre_build_script.sh
68- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
68+ post-script : packaging/post_build_script.sh
69+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
6970 with :
7071 job-name : tests-py-torchscript-fe
7172 repository : " pytorch/tensorrt"
7778 script : |
7879 export USE_HOST_DEPS=1
7980 export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
81+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
8082 pushd .
8183 cd tests/modules
82- ${CONDA_RUN} python -m pip install --pre -r requirements.txt --use-deprecated=legacy-resolver
84+ # Don't use requirements.txt here as it contains tensorrt and torch which should have been installed by now.
85+ ${CONDA_RUN} python -m pip install numpy packaging pyyaml transformers timm pybind11==2.6.2
8386 ${CONDA_RUN} python hub.py
8487 popd
8588 pushd .
@@ -100,7 +103,8 @@ jobs:
100103 - repository : pytorch/tensorrt
101104 package-name : torch_tensorrt
102105 pre-script : packaging/pre_build_script.sh
103- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
106+ post-script : packaging/post_build_script.sh
107+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
104108 with :
105109 job-name : tests-py-dynamo-converters
106110 repository : " pytorch/tensorrt"
@@ -111,6 +115,7 @@ jobs:
111115 pre-script : ${{ matrix.pre-script }}
112116 script : |
113117 export USE_HOST_DEPS=1
118+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
114119 pushd .
115120 cd tests/py/dynamo
116121 ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
@@ -127,7 +132,8 @@ jobs:
127132 - repository : pytorch/tensorrt
128133 package-name : torch_tensorrt
129134 pre-script : packaging/pre_build_script.sh
130- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
135+ post-script : packaging/post_build_script.sh
136+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
131137 with :
132138 job-name : tests-py-dynamo-fe
133139 repository : " pytorch/tensorrt"
@@ -138,6 +144,7 @@ jobs:
138144 pre-script : ${{ matrix.pre-script }}
139145 script : |
140146 export USE_HOST_DEPS=1
147+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
141148 pushd .
142149 cd tests/py/dynamo
143150 ${CONDA_RUN} python -m pip install --pre pytest timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
@@ -155,7 +162,8 @@ jobs:
155162 - repository : pytorch/tensorrt
156163 package-name : torch_tensorrt
157164 pre-script : packaging/pre_build_script.sh
158- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
165+ post-script : packaging/post_build_script.sh
166+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
159167 with :
160168 job-name : tests-py-dynamo-serde
161169 repository : " pytorch/tensorrt"
@@ -166,6 +174,7 @@ jobs:
166174 pre-script : ${{ matrix.pre-script }}
167175 script : |
168176 export USE_HOST_DEPS=1
177+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
169178 pushd .
170179 cd tests/py/dynamo
171180 ${CONDA_RUN} python -m pip install --pre pytest timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
@@ -182,7 +191,8 @@ jobs:
182191 - repository : pytorch/tensorrt
183192 package-name : torch_tensorrt
184193 pre-script : packaging/pre_build_script.sh
185- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
194+ post-script : packaging/post_build_script.sh
195+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
186196 with :
187197 job-name : tests-py-torch-compile-be
188198 repository : " pytorch/tensorrt"
@@ -193,6 +203,7 @@ jobs:
193203 pre-script : ${{ matrix.pre-script }}
194204 script : |
195205 export USE_HOST_DEPS=1
206+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
196207 pushd .
197208 cd tests/py/dynamo
198209 ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
@@ -211,7 +222,8 @@ jobs:
211222 - repository : pytorch/tensorrt
212223 package-name : torch_tensorrt
213224 pre-script : packaging/pre_build_script.sh
214- uses : pytorch/tensorrt/.github/workflows/linux-test.yml@main
225+ post-script : packaging/post_build_script.sh
226+ uses : pytorch/tensorrt/.github/workflows/linux-test.yml@release/2.3
215227 with :
216228 job-name : tests-py-dynamo-core
217229 repository : " pytorch/tensorrt"
@@ -222,6 +234,7 @@ jobs:
222234 pre-script : ${{ matrix.pre-script }}
223235 script : |
224236 export USE_HOST_DEPS=1
237+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
225238 pushd .
226239 cd tests/py/dynamo
227240 ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
@@ -251,6 +264,7 @@ jobs:
251264 pre-script : ${{ matrix.pre-script }}
252265 script : |
253266 export USE_HOST_DEPS=1
267+ export LD_LIBRARY_PATH=/opt/torch-tensorrt-builds/TensorRT-10.0.0.6/lib:$LD_LIBRARY_PATH
254268 pushd .
255269 cd tests/py/core
256270 ${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest==0.1.6 --use-deprecated=legacy-resolver
0 commit comments