Skip to content

Commit d14bd9a

Browse files
gs-olivenarendasan
authored andcommitted
fix: Upgrade TRT to 8.6.1, parallelize FX tests in CI (#1930)
1 parent 9dfbf8d commit d14bd9a

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed

Diff for: .circleci/config.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ commands:
203203
default: "8.8.0.121"
204204
trt-version-short:
205205
type: string
206-
default: "8.6.0"
206+
default: "8.6.1"
207207
trt-version-long:
208208
type: string
209-
default: "8.6.0.12-1"
209+
default: "8.6.1.6-1"
210210
bazel-version:
211211
type: string
212212
default: "5.2.0"
@@ -249,7 +249,7 @@ commands:
249249
parameters:
250250
trt-version-long:
251251
type: string
252-
default: "8.6.0"
252+
default: "8.6.1"
253253
cudnn-version-long:
254254
type: string
255255
default: "8.8.0.121"
@@ -567,10 +567,10 @@ commands:
567567
- run:
568568
name: Run FX converter tests
569569
command: |
570+
set -e
570571
cd py/torch_tensorrt/fx/test
571-
pushd converters/acc_op/
572-
pytest --junitxml=/tmp/artifacts/test_results/fx/converters/acc_op/test_results.xml
573-
popd
572+
TESTS_TO_RUN=$(circleci tests glob "converters/acc_op/test_*.py" | circleci tests split --split-by=timings)
573+
pytest --junitxml=/tmp/artifacts/test_results/fx/converters/acc_op/test_results.xml $TESTS_TO_RUN
574574
575575
- store_test_results:
576576
path: /tmp/artifacts
@@ -583,10 +583,10 @@ commands:
583583
- run:
584584
name: Run FX converter tests
585585
command: |
586+
set -e
586587
cd py/torch_tensorrt/fx/test
587-
pushd converters/aten_op/
588-
pytest --junitxml=/tmp/artifacts/test_results/fx/converters/aten_op/test_results.xml
589-
popd
588+
TESTS_TO_RUN=$(circleci tests glob "converters/aten_op/test_*.py" | circleci tests split --split-by=timings)
589+
pytest --junitxml=/tmp/artifacts/test_results/fx/converters/aten_op/test_results.xml $TESTS_TO_RUN
590590
591591
- store_test_results:
592592
path: /tmp/artifacts
@@ -954,6 +954,7 @@ jobs:
954954
type: string
955955
python-version:
956956
type: string
957+
parallelism: 8
957958
machine:
958959
image: linux-cuda-11:2023.02.1
959960
resource_class: gpu.nvidia.large
@@ -989,6 +990,7 @@ jobs:
989990
type: string
990991
python-version:
991992
type: string
993+
parallelism: 8
992994
machine:
993995
image: linux-cuda-11:2023.02.1
994996
resource_class: gpu.nvidia.large
@@ -1374,10 +1376,10 @@ parameters:
13741376
default: "8.8.0.121"
13751377
trt-version-short:
13761378
type: string
1377-
default: "8.6.0"
1379+
default: "8.6.1"
13781380
trt-version-long:
13791381
type: string
1380-
default: "8.6.0"
1382+
default: "8.6.1"
13811383

13821384
# Jetson platform config
13831385
torch-jetson-build:

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ These are the following dependencies used to verify the testcases. Torch-TensorR
119119
- Libtorch 2.1.0.dev20230419 (built with CUDA 11.8)
120120
- CUDA 11.8
121121
- cuDNN 8.8.0
122-
- TensorRT 8.6.0
122+
- TensorRT 8.6.1
123123

124124
## Prebuilt Binaries and Wheel files
125125

Diff for: WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ http_archive(
8181
http_archive(
8282
name = "tensorrt",
8383
build_file = "@//third_party/tensorrt/archive:BUILD",
84-
sha256 = "c1732a1093c57ab79fa0b687f061be369e449c9c17792b660f3663ecd8fa7b63",
85-
strip_prefix = "TensorRT-8.6.0.12",
84+
sha256 = "15bfe6053d45feec45ecc7123a9106076b0b43fa0435f242d89dca0778337759",
85+
strip_prefix = "TensorRT-8.6.1.6",
8686
urls = [
87-
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/secure/8.6.0/tars/TensorRT-8.6.0.12.Linux.x86_64-gnu.cuda-11.8.tar.gz",
87+
"https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/secure/8.6.1/tars/TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-11.8.tar.gz",
8888
],
8989
)
9090

Diff for: py/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pybind11==2.6.2
55
torch==2.1.0.dev20230419+cu118
66
torchvision==0.16.0.dev20230419+cu118
77
--extra-index-url https://pypi.ngc.nvidia.com
8-
tensorrt==8.6.0
8+
tensorrt==8.6.1

Diff for: py/torch_tensorrt/fx/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FX2TRT is merged as FX module in Torch-TensorRT
1212
$ conda install pytorch torchvision torchtext cudatoolkit=11.8 -c pytorch-nightly
1313
# Install TensorRT python package
1414
$ pip3 install nvidia-pyindex
15-
$ pip3 install tensorrt==8.6.0
15+
$ pip3 install tensorrt==8.6.1
1616
$ git clone https://github.com/pytorch/TensorRT.git
1717
$ cd TensorRT/py && python setup.py install --fx-only && cd ..
1818
$ python -c "import torch_tensorrt.fx"

0 commit comments

Comments
 (0)