@@ -317,9 +317,11 @@ commands:
317
317
name : Build torch-tensorrt python legacy release (pre-cxx11-abi)
318
318
command : |
319
319
export CUDA_HOME=/usr/local/cuda-<< parameters.cuda-version >>/
320
- mv toolchains/ci_workspaces/WORKSPACE.<< parameters.platform >> WORKSPACE
321
- python3 -m pip install pip==22.0.2
322
- python3 -m pip wheel --no-deps --verbose --pre . --extra-index-url https://pypi.nvidia.com --extra-index-url << parameters.torch-build-index >> --config-setting="--build-option=--legacy" -w dist
320
+ mv toolchains/ci_workspaces/WORKSPACE.<< parameters.platform >>.legacy WORKSPACE
321
+ mv toolchains/legacy/pyproject.toml pyproject.toml
322
+ python3 -m pip install wheel setuptools pyyaml
323
+ python3 -m pip install pybind11==2.6.2
324
+ python3 setup.py bdist_wheel --legacy
323
325
python3 -m pip install dist/torch_tensorrt*
324
326
mkdir -p /tmp/dist/builds
325
327
cp dist/torch_tensorrt* /tmp/dist/builds
@@ -754,14 +756,30 @@ commands:
754
756
755
757
# =================== Dynamo tests start ======================== #
756
758
757
- test-dynamo-torch_compile :
758
- description : " Test Dynamo torch_compile tests"
759
+ test-dynamo-backend :
760
+ description : " Test Dynamo backend tests"
759
761
steps :
760
762
- run :
761
- name : Run Dynamo torch_compile tests
763
+ name : Run Dynamo backend tests
762
764
command : |
763
765
cd tests/py/dynamo/backend/
764
- pytest --junitxml=/tmp/artifacts/test_results/dynamo/torch_compile/test_results.xml
766
+ TESTS_TO_RUN=$(circleci tests glob "test_*.py" | circleci tests split --split-by=timings)
767
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/backend/test_results.xml $TESTS_TO_RUN
768
+
769
+ - store_test_results :
770
+ path : /tmp/artifacts
771
+ - store_artifacts :
772
+ path : /tmp/testlogs
773
+
774
+ test-dynamo-shared_utilities :
775
+ description : " Test Dynamo shared utilities tests"
776
+ steps :
777
+ - run :
778
+ name : Run Dynamo lowering, partitioning, runtime tests
779
+ command : |
780
+ cd tests/py/dynamo/
781
+ TESTS_TO_RUN=$(circleci tests glob "runtime/test_*.py" "partitioning/test_*.py" "lowering/test_*.py" | circleci tests split --split-by=timings)
782
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/shared_utilities/test_results.xml $TESTS_TO_RUN
765
783
766
784
- store_test_results :
767
785
path : /tmp/artifacts
@@ -806,9 +824,9 @@ commands:
806
824
- run :
807
825
name : Run Dynamo converter tests
808
826
command : |
809
- cd tests/py/dynamo/converters
827
+ cd tests/py/dynamo/conversion
810
828
TESTS_TO_RUN=$(circleci tests glob "test_*.py" | circleci tests split --split-by=timings)
811
- pytest --junitxml=/tmp/artifacts/test_results/dynamo/converters /test_results.xml $TESTS_TO_RUN
829
+ pytest --junitxml=/tmp/artifacts/test_results/dynamo/conversion /test_results.xml $TESTS_TO_RUN
812
830
813
831
- store_test_results :
814
832
path : /tmp/artifacts
@@ -838,8 +856,11 @@ jobs:
838
856
legacy :
839
857
type : boolean
840
858
default : false
859
+ ci-image :
860
+ type : string
861
+ default : " linux-cuda-12:2023.05.1"
841
862
machine :
842
- image : linux-cuda-12:2023.05.1
863
+ image : << parameters.ci-image >>
843
864
resource_class : gpu.nvidia.small
844
865
steps :
845
866
- checkout
@@ -905,8 +926,14 @@ jobs:
905
926
type : string
906
927
cudnn-version :
907
928
type : string
929
+ ci-image :
930
+ type : string
931
+ default : " linux-cuda-12:2023.05.1"
932
+ platform :
933
+ type : string
934
+ default : " x86_64"
908
935
machine :
909
- image : linux-cuda-12:2023.05.1
936
+ image : << parameters.ci-image >>
910
937
resource_class : gpu.nvidia.medium
911
938
parallelism : 4
912
939
steps :
@@ -931,7 +958,8 @@ jobs:
931
958
name : " Install torch-tensorrt"
932
959
command : pip3 install /tmp/dist/x86_64-linux/*cp310-cp310*.whl
933
960
- dump-test-env
934
- - test-ts-core
961
+ - test-ts-core :
962
+ platform : << parameters.platform >>
935
963
936
964
test-py-ts-x86_64-linux :
937
965
parameters :
@@ -945,8 +973,11 @@ jobs:
945
973
type : string
946
974
python-version :
947
975
type : string
976
+ ci-image :
977
+ type : string
978
+ default : " linux-cuda-12:2023.05.1"
948
979
machine :
949
- image : linux-cuda-12:2023.05.1
980
+ image : << parameters.ci-image >>
950
981
resource_class : gpu.nvidia.medium
951
982
steps :
952
983
- checkout
@@ -978,9 +1009,12 @@ jobs:
978
1009
type : string
979
1010
python-version :
980
1011
type : string
1012
+ ci-image :
1013
+ type : string
1014
+ default : " linux-cuda-12:2023.05.1"
981
1015
parallelism : 8
982
1016
machine :
983
- image : linux-cuda-12:2023.05.1
1017
+ image : << parameters.ci-image >>
984
1018
resource_class : gpu.nvidia.medium
985
1019
steps :
986
1020
- checkout
@@ -1014,9 +1048,12 @@ jobs:
1014
1048
type : string
1015
1049
python-version :
1016
1050
type : string
1051
+ ci-image :
1052
+ type : string
1053
+ default : " linux-cuda-12:2023.05.1"
1017
1054
parallelism : 8
1018
1055
machine :
1019
- image : linux-cuda-12:2023.05.1
1056
+ image : << parameters.ci-image >>
1020
1057
resource_class : gpu.nvidia.medium
1021
1058
steps :
1022
1059
- checkout
@@ -1053,9 +1090,12 @@ jobs:
1053
1090
type : string
1054
1091
python-version :
1055
1092
type : string
1093
+ ci-image :
1094
+ type : string
1095
+ default : " linux-cuda-12:2023.05.1"
1056
1096
parallelism : 4
1057
1097
machine :
1058
- image : linux-cuda-12:2023.05.1
1098
+ image : << parameters.ci-image >>
1059
1099
resource_class : gpu.nvidia.medium
1060
1100
steps :
1061
1101
- checkout
@@ -1079,7 +1119,8 @@ jobs:
1079
1119
# We install torch after torch-trt because pip automatically enforces the version constraint otherwise
1080
1120
- dump-test-env
1081
1121
- test-dynamo-converters
1082
- - test-dynamo-torch_compile
1122
+ - test-dynamo-backend
1123
+ - test-dynamo-shared_utilities
1083
1124
- test-dynamo-models_torch_compile
1084
1125
- test-dynamo-models_torch_export
1085
1126
@@ -1092,9 +1133,12 @@ jobs:
1092
1133
type : string
1093
1134
torch-build-index :
1094
1135
type : string
1136
+ ci-image :
1137
+ type : string
1138
+ default : " linux-cuda-12:2023.05.1"
1095
1139
parallelism : 4
1096
1140
machine :
1097
- image : linux-cuda-12:2023.05.1
1141
+ image : << parameters.ci-image >>
1098
1142
resource_class : gpu.nvidia.small
1099
1143
steps :
1100
1144
- when :
@@ -1142,8 +1186,11 @@ jobs:
1142
1186
type : string
1143
1187
torch-build-index :
1144
1188
type : string
1189
+ ci-image :
1190
+ type : string
1191
+ default : " linux-cuda-12:2023.05.1"
1145
1192
machine :
1146
- image : linux-cuda-12:2023.05.1
1193
+ image : << parameters.ci-image >>
1147
1194
resource_class : gpu.nvidia.small
1148
1195
steps :
1149
1196
- when :
@@ -1278,8 +1325,11 @@ jobs:
1278
1325
type : string
1279
1326
python-version :
1280
1327
type : string
1328
+ ci-image :
1329
+ type : string
1330
+ default : " linux-cuda-12:2023.05.1"
1281
1331
machine :
1282
- image : linux-cuda-12:2023.05.1
1332
+ image : << parameters.ci-image >>
1283
1333
resource_class : gpu.nvidia.small
1284
1334
steps :
1285
1335
- checkout
@@ -1315,8 +1365,11 @@ jobs:
1315
1365
parameters :
1316
1366
torch-base-image :
1317
1367
type : string
1368
+ ci-image :
1369
+ type : string
1370
+ default : " linux-cuda-12:2023.05.1"
1318
1371
machine :
1319
- image : linux-cuda-12:2023.05.1
1372
+ image : << parameters.ci-image >>
1320
1373
resource_class : gpu.nvidia.small
1321
1374
steps :
1322
1375
- checkout
@@ -1343,8 +1396,11 @@ jobs:
1343
1396
default : false
1344
1397
torch-base-image :
1345
1398
type : string
1399
+ ci-image :
1400
+ type : string
1401
+ default : " linux-cuda-12:2023.05.1"
1346
1402
machine :
1347
- image : linux-cuda-12:2023.05.1
1403
+ image : << parameters.ci-image >>
1348
1404
resource_class : gpu.nvidia.small
1349
1405
steps :
1350
1406
- when :
@@ -1400,7 +1456,7 @@ parameters:
1400
1456
# Legacy platform config
1401
1457
cuda-version-legacy :
1402
1458
type : string
1403
- default : " 11.7 "
1459
+ default : " 11.8 "
1404
1460
torch-build-legacy :
1405
1461
type : string
1406
1462
default : " 1.13.1+cu117"
@@ -1419,6 +1475,12 @@ parameters:
1419
1475
trt-version-long-legacy :
1420
1476
type : string
1421
1477
default : " 8.6.1"
1478
+ ci-image-legacy :
1479
+ type : string
1480
+ default : " linux-cuda-11:2023.02.1"
1481
+ platform-legacy :
1482
+ type : string
1483
+ default : " x86_64.legacy"
1422
1484
1423
1485
# Jetson platform config
1424
1486
cuda-jetson-version :
@@ -1523,6 +1585,7 @@ workflows:
1523
1585
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1524
1586
python-version : << pipeline.parameters.python-version >>
1525
1587
legacy : << pipeline.parameters.enable-legacy >>
1588
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1526
1589
1527
1590
- test-core-cpp-x86_64-linux :
1528
1591
name : test-core-cpp-x86_64-linux-legacy
@@ -1533,6 +1596,8 @@ workflows:
1533
1596
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1534
1597
cudnn-version : << pipeline.parameters.cudnn-version-legacy >>
1535
1598
python-version : << pipeline.parameters.python-version >>
1599
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1600
+ platform : << pipeline.parameters.platform-legacy >>
1536
1601
requires :
1537
1602
- build-x86_64-linux-legacy
1538
1603
@@ -1543,6 +1608,7 @@ workflows:
1543
1608
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1544
1609
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1545
1610
python-version : << pipeline.parameters.python-version >>
1611
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1546
1612
requires :
1547
1613
- build-x86_64-linux-legacy
1548
1614
@@ -1552,6 +1618,7 @@ workflows:
1552
1618
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1553
1619
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1554
1620
python-version : << pipeline.parameters.python-version >>
1621
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1555
1622
requires :
1556
1623
- build-x86_64-linux-legacy
1557
1624
0 commit comments