@@ -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
@@ -838,8 +840,11 @@ jobs:
838
840
legacy :
839
841
type : boolean
840
842
default : false
843
+ ci-image :
844
+ type : string
845
+ default : " linux-cuda-12:2023.05.1"
841
846
machine :
842
- image : linux-cuda-12:2023.05.1
847
+ image : << parameters.ci-image >>
843
848
resource_class : gpu.nvidia.small
844
849
steps :
845
850
- checkout
@@ -905,8 +910,14 @@ jobs:
905
910
type : string
906
911
cudnn-version :
907
912
type : string
913
+ ci-image :
914
+ type : string
915
+ default : " linux-cuda-12:2023.05.1"
916
+ platform :
917
+ type : string
918
+ default : " x86_64"
908
919
machine :
909
- image : linux-cuda-12:2023.05.1
920
+ image : << parameters.ci-image >>
910
921
resource_class : gpu.nvidia.medium
911
922
parallelism : 4
912
923
steps :
@@ -931,7 +942,8 @@ jobs:
931
942
name : " Install torch-tensorrt"
932
943
command : pip3 install /tmp/dist/x86_64-linux/*cp310-cp310*.whl
933
944
- dump-test-env
934
- - test-ts-core
945
+ - test-ts-core :
946
+ platform : << parameters.platform >>
935
947
936
948
test-py-ts-x86_64-linux :
937
949
parameters :
@@ -945,8 +957,11 @@ jobs:
945
957
type : string
946
958
python-version :
947
959
type : string
960
+ ci-image :
961
+ type : string
962
+ default : " linux-cuda-12:2023.05.1"
948
963
machine :
949
- image : linux-cuda-12:2023.05.1
964
+ image : << parameters.ci-image >>
950
965
resource_class : gpu.nvidia.medium
951
966
steps :
952
967
- checkout
@@ -978,9 +993,12 @@ jobs:
978
993
type : string
979
994
python-version :
980
995
type : string
996
+ ci-image :
997
+ type : string
998
+ default : " linux-cuda-12:2023.05.1"
981
999
parallelism : 8
982
1000
machine :
983
- image : linux-cuda-12:2023.05.1
1001
+ image : << parameters.ci-image >>
984
1002
resource_class : gpu.nvidia.medium
985
1003
steps :
986
1004
- checkout
@@ -1014,9 +1032,12 @@ jobs:
1014
1032
type : string
1015
1033
python-version :
1016
1034
type : string
1035
+ ci-image :
1036
+ type : string
1037
+ default : " linux-cuda-12:2023.05.1"
1017
1038
parallelism : 8
1018
1039
machine :
1019
- image : linux-cuda-12:2023.05.1
1040
+ image : << parameters.ci-image >>
1020
1041
resource_class : gpu.nvidia.medium
1021
1042
steps :
1022
1043
- checkout
@@ -1053,9 +1074,12 @@ jobs:
1053
1074
type : string
1054
1075
python-version :
1055
1076
type : string
1077
+ ci-image :
1078
+ type : string
1079
+ default : " linux-cuda-12:2023.05.1"
1056
1080
parallelism : 4
1057
1081
machine :
1058
- image : linux-cuda-12:2023.05.1
1082
+ image : << parameters.ci-image >>
1059
1083
resource_class : gpu.nvidia.medium
1060
1084
steps :
1061
1085
- checkout
@@ -1092,9 +1116,12 @@ jobs:
1092
1116
type : string
1093
1117
torch-build-index :
1094
1118
type : string
1119
+ ci-image :
1120
+ type : string
1121
+ default : " linux-cuda-12:2023.05.1"
1095
1122
parallelism : 4
1096
1123
machine :
1097
- image : linux-cuda-12:2023.05.1
1124
+ image : << parameters.ci-image >>
1098
1125
resource_class : gpu.nvidia.small
1099
1126
steps :
1100
1127
- when :
@@ -1142,8 +1169,11 @@ jobs:
1142
1169
type : string
1143
1170
torch-build-index :
1144
1171
type : string
1172
+ ci-image :
1173
+ type : string
1174
+ default : " linux-cuda-12:2023.05.1"
1145
1175
machine :
1146
- image : linux-cuda-12:2023.05.1
1176
+ image : << parameters.ci-image >>
1147
1177
resource_class : gpu.nvidia.small
1148
1178
steps :
1149
1179
- when :
@@ -1278,8 +1308,11 @@ jobs:
1278
1308
type : string
1279
1309
python-version :
1280
1310
type : string
1311
+ ci-image :
1312
+ type : string
1313
+ default : " linux-cuda-12:2023.05.1"
1281
1314
machine :
1282
- image : linux-cuda-12:2023.05.1
1315
+ image : << parameters.ci-image >>
1283
1316
resource_class : gpu.nvidia.small
1284
1317
steps :
1285
1318
- checkout
@@ -1315,8 +1348,11 @@ jobs:
1315
1348
parameters :
1316
1349
torch-base-image :
1317
1350
type : string
1351
+ ci-image :
1352
+ type : string
1353
+ default : " linux-cuda-12:2023.05.1"
1318
1354
machine :
1319
- image : linux-cuda-12:2023.05.1
1355
+ image : << parameters.ci-image >>
1320
1356
resource_class : gpu.nvidia.small
1321
1357
steps :
1322
1358
- checkout
@@ -1343,8 +1379,11 @@ jobs:
1343
1379
default : false
1344
1380
torch-base-image :
1345
1381
type : string
1382
+ ci-image :
1383
+ type : string
1384
+ default : " linux-cuda-12:2023.05.1"
1346
1385
machine :
1347
- image : linux-cuda-12:2023.05.1
1386
+ image : << parameters.ci-image >>
1348
1387
resource_class : gpu.nvidia.small
1349
1388
steps :
1350
1389
- when :
@@ -1400,7 +1439,7 @@ parameters:
1400
1439
# Legacy platform config
1401
1440
cuda-version-legacy :
1402
1441
type : string
1403
- default : " 11.7 "
1442
+ default : " 11.8 "
1404
1443
torch-build-legacy :
1405
1444
type : string
1406
1445
default : " 1.13.1+cu117"
@@ -1419,6 +1458,12 @@ parameters:
1419
1458
trt-version-long-legacy :
1420
1459
type : string
1421
1460
default : " 8.6.1"
1461
+ ci-image-legacy :
1462
+ type : string
1463
+ default : " linux-cuda-11:2023.02.1"
1464
+ platform-legacy :
1465
+ type : string
1466
+ default : " x86_64.legacy"
1422
1467
1423
1468
# Jetson platform config
1424
1469
cuda-jetson-version :
@@ -1523,6 +1568,7 @@ workflows:
1523
1568
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1524
1569
python-version : << pipeline.parameters.python-version >>
1525
1570
legacy : << pipeline.parameters.enable-legacy >>
1571
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1526
1572
1527
1573
- test-core-cpp-x86_64-linux :
1528
1574
name : test-core-cpp-x86_64-linux-legacy
@@ -1533,6 +1579,8 @@ workflows:
1533
1579
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1534
1580
cudnn-version : << pipeline.parameters.cudnn-version-legacy >>
1535
1581
python-version : << pipeline.parameters.python-version >>
1582
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1583
+ platform : << pipeline.parameters.platform-legacy >>
1536
1584
requires :
1537
1585
- build-x86_64-linux-legacy
1538
1586
@@ -1543,6 +1591,7 @@ workflows:
1543
1591
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1544
1592
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1545
1593
python-version : << pipeline.parameters.python-version >>
1594
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1546
1595
requires :
1547
1596
- build-x86_64-linux-legacy
1548
1597
@@ -1552,6 +1601,7 @@ workflows:
1552
1601
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1553
1602
trt-version-long : << pipeline.parameters.trt-version-long-legacy >>
1554
1603
python-version : << pipeline.parameters.python-version >>
1604
+ ci-image : << pipeline.parameters.ci-image-legacy >>
1555
1605
requires :
1556
1606
- build-x86_64-linux-legacy
1557
1607
0 commit comments