@@ -303,6 +303,26 @@ commands:
303
303
mkdir -p /tmp/dist/builds
304
304
cp dist/* /tmp/dist/builds
305
305
306
+ build-py-legacy :
307
+ description : " Build the torch-tensorrt python legacy release (pre-cxx11-abi)"
308
+ parameters :
309
+ platform :
310
+ type : string
311
+ default : " x86_64"
312
+ steps :
313
+ - run :
314
+ name : Build torch-tensorrt python legacy release (pre-cxx11-abi)
315
+ command : |
316
+ export CUDA_HOME=/usr/local/cuda-11.8/
317
+ mv toolchains/ci_workspaces/WORKSPACE.<< parameters.platform >> WORKSPACE
318
+ cd py
319
+ python3 -m pip install wheel setuptools
320
+ python3 -m pip install pybind11==2.6.2
321
+ python3 setup.py bdist_wheel --legacy
322
+ python3 setup.py install --legacy
323
+ mkdir -p /tmp/dist/builds
324
+ cp dist/* /tmp/dist/builds
325
+
306
326
build-py-cxx11-abi :
307
327
description : " Build the torch-tensorrt python release (cxx11-abi)"
308
328
parameters :
@@ -786,13 +806,18 @@ jobs:
786
806
parameters :
787
807
torch-build :
788
808
type : string
809
+ torchvision-build :
810
+ type : string
789
811
torch-build-index :
790
812
type : string
791
813
python-version :
792
814
type : string
793
815
cxx11-abi :
794
816
type : boolean
795
817
default : false
818
+ legacy :
819
+ type : boolean
820
+ default : false
796
821
machine :
797
822
image : linux-cuda-11:2023.02.1
798
823
resource_class : gpu.nvidia.small
@@ -809,6 +834,7 @@ jobs:
809
834
bazel-platform : " x86_64"
810
835
- install-torch-from-index :
811
836
torch-build : << parameters.torch-build >>
837
+ torchvision-build : << parameters.torchvision-build >>
812
838
torch-build-index : << parameters.torch-build-index >>
813
839
- when :
814
840
condition : << parameters.cxx11-abi >>
@@ -817,7 +843,14 @@ jobs:
817
843
- unless :
818
844
condition : << parameters.cxx11-abi >>
819
845
steps :
820
- - build-py
846
+ - when :
847
+ condition : << parameters.legacy >>
848
+ steps :
849
+ - build-py-legacy
850
+ - unless :
851
+ condition : << parameters.legacy >>
852
+ steps :
853
+ - build-py
821
854
- run :
822
855
name : Move to build dir
823
856
command : |
@@ -839,6 +872,8 @@ jobs:
839
872
type : string
840
873
torch-build-index :
841
874
type : string
875
+ torchvision-build :
876
+ type : string
842
877
trt-version-short :
843
878
type : string
844
879
trt-version-long :
@@ -864,6 +899,7 @@ jobs:
864
899
trt-version-long : << parameters.trt-version-long >>
865
900
- install-torch-from-index :
866
901
torch-build : << parameters.torch-build >>
902
+ torchvision-build : << parameters.torchvision-build >>
867
903
torch-build-index : << parameters.torch-build-index >>
868
904
- attach_workspace :
869
905
at : /tmp/dist
@@ -877,6 +913,8 @@ jobs:
877
913
parameters :
878
914
torch-build :
879
915
type : string
916
+ torchvision-build :
917
+ type : string
880
918
torch-build-index :
881
919
type : string
882
920
trt-version-long :
@@ -896,6 +934,7 @@ jobs:
896
934
at : /tmp/dist
897
935
- install-torch-from-index :
898
936
torch-build : << parameters.torch-build >>
937
+ torchvision-build : << parameters.torchvision-build >>
899
938
torch-build-index : << parameters.torch-build-index >>
900
939
- run :
901
940
name : " Install torch-tensorrt"
@@ -907,6 +946,8 @@ jobs:
907
946
parameters :
908
947
torch-build :
909
948
type : string
949
+ torchvision-build :
950
+ type : string
910
951
torch-build-index :
911
952
type : string
912
953
trt-version-long :
@@ -924,6 +965,7 @@ jobs:
924
965
at : /tmp/dist/
925
966
- install-torch-from-index :
926
967
torch-build : << parameters.torch-build >>
968
+ torchvision-build : << parameters.torchvision-build >>
927
969
torch-build-index : << parameters.torch-build-index >>
928
970
- create-py-env :
929
971
trt-version-long : << parameters.trt-version-long >>
@@ -939,6 +981,8 @@ jobs:
939
981
parameters :
940
982
torch-build :
941
983
type : string
984
+ torchvision-build :
985
+ type : string
942
986
torch-build-index :
943
987
type : string
944
988
trt-version-long :
@@ -956,6 +1000,7 @@ jobs:
956
1000
at : /tmp/dist/
957
1001
- install-torch-from-index :
958
1002
torch-build : << parameters.torch-build >>
1003
+ torchvision-build : << parameters.torchvision-build >>
959
1004
torch-build-index : << parameters.torch-build-index >>
960
1005
- create-py-env :
961
1006
trt-version-long : << parameters.trt-version-long >>
@@ -974,6 +1019,8 @@ jobs:
974
1019
parameters :
975
1020
torch-build :
976
1021
type : string
1022
+ torchvision-build :
1023
+ type : string
977
1024
torch-build-index :
978
1025
type : string
979
1026
trt-version-long :
@@ -991,6 +1038,7 @@ jobs:
991
1038
at : /tmp/dist/
992
1039
- install-torch-from-index :
993
1040
torch-build : << parameters.torch-build >>
1041
+ torchvision-build : << parameters.torchvision-build >>
994
1042
torch-build-index : << parameters.torch-build-index >>
995
1043
- create-py-env :
996
1044
trt-version-long : << parameters.trt-version-long >>
@@ -1303,15 +1351,24 @@ parameters:
1303
1351
torch-build :
1304
1352
type : string
1305
1353
default : " 2.1.0.dev20230419+cu118"
1354
+ torchvision-build :
1355
+ type : string
1356
+ default : " 0.16.0.dev20230419+cu118"
1306
1357
torch-build-index :
1307
1358
type : string
1308
1359
default : " https://download.pytorch.org/whl/nightly/cu118"
1309
1360
torch-build-legacy :
1310
1361
type : string
1311
1362
default : " 1.13.1+cu117"
1363
+ torchvision-build-legacy :
1364
+ type : string
1365
+ default : " 0.14.1+cu117"
1312
1366
torch-build-index-legacy :
1313
1367
type : string
1314
1368
default : " https://download.pytorch.org/whl/cu117"
1369
+ enable-legacy :
1370
+ type : boolean
1371
+ default : true
1315
1372
cudnn-version :
1316
1373
type : string
1317
1374
default : " 8.8.0.121"
@@ -1367,11 +1424,13 @@ workflows:
1367
1424
- build-x86_64-linux :
1368
1425
name : build-x86_64-linux
1369
1426
torch-build : << pipeline.parameters.torch-build >>
1427
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1370
1428
torch-build-index : << pipeline.parameters.torch-build-index >>
1371
1429
python-version : << pipeline.parameters.python-version >>
1372
1430
1373
1431
- test-core-cpp-x86_64-linux :
1374
1432
torch-build : << pipeline.parameters.torch-build >>
1433
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1375
1434
torch-build-index : << pipeline.parameters.torch-build-index >>
1376
1435
trt-version-short : << pipeline.parameters.trt-version-short >>
1377
1436
trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1382,6 +1441,7 @@ workflows:
1382
1441
1383
1442
- test-py-ts-x86_64-linux :
1384
1443
torch-build : << pipeline.parameters.torch-build >>
1444
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1385
1445
torch-build-index : << pipeline.parameters.torch-build-index >>
1386
1446
trt-version-long : << pipeline.parameters.trt-version-long >>
1387
1447
python-version : << pipeline.parameters.python-version >>
@@ -1390,6 +1450,7 @@ workflows:
1390
1450
1391
1451
- test-py-fx-x86_64-linux :
1392
1452
torch-build : << pipeline.parameters.torch-build >>
1453
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1393
1454
torch-build-index : << pipeline.parameters.torch-build-index >>
1394
1455
trt-version-long : << pipeline.parameters.trt-version-long >>
1395
1456
python-version : << pipeline.parameters.python-version >>
@@ -1398,6 +1459,7 @@ workflows:
1398
1459
1399
1460
- test-py-dynamo-x86_64-linux :
1400
1461
torch-build : << pipeline.parameters.torch-build >>
1462
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1401
1463
torch-build-index : << pipeline.parameters.torch-build-index >>
1402
1464
trt-version-long : << pipeline.parameters.trt-version-long >>
1403
1465
python-version : << pipeline.parameters.python-version >>
@@ -1407,12 +1469,15 @@ workflows:
1407
1469
- build-x86_64-linux :
1408
1470
name : build-x86_64-linux-legacy
1409
1471
torch-build : << pipeline.parameters.torch-build-legacy >>
1472
+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
1410
1473
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1411
1474
python-version : << pipeline.parameters.python-version >>
1475
+ legacy : << pipeline.parameters.enable-legacy >>
1412
1476
1413
1477
- test-core-cpp-x86_64-linux :
1414
1478
name : test-core-cpp-x86_64-linux-legacy
1415
1479
torch-build : << pipeline.parameters.torch-build-legacy >>
1480
+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
1416
1481
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1417
1482
trt-version-short : << pipeline.parameters.trt-version-short >>
1418
1483
trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1424,6 +1489,7 @@ workflows:
1424
1489
- test-py-ts-x86_64-linux :
1425
1490
name : test-py-ts-x86_64-linux-legacy
1426
1491
torch-build : << pipeline.parameters.torch-build-legacy >>
1492
+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
1427
1493
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1428
1494
trt-version-long : << pipeline.parameters.trt-version-long >>
1429
1495
python-version : << pipeline.parameters.python-version >>
@@ -1432,6 +1498,7 @@ workflows:
1432
1498
1433
1499
- test-py-fx-x86_64-linux-no-aten :
1434
1500
torch-build : << pipeline.parameters.torch-build-legacy >>
1501
+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
1435
1502
torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
1436
1503
trt-version-long : << pipeline.parameters.trt-version-long >>
1437
1504
python-version : << pipeline.parameters.python-version >>
@@ -1454,6 +1521,7 @@ workflows:
1454
1521
1455
1522
- test-core-cpp-x86_64-linux :
1456
1523
torch-build : << pipeline.parameters.torch-build >>
1524
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1457
1525
torch-build-index : << pipeline.parameters.torch-build-index >>
1458
1526
trt-version-short : << pipeline.parameters.trt-version-short >>
1459
1527
trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1464,6 +1532,7 @@ workflows:
1464
1532
1465
1533
- test-py-ts-x86_64-linux :
1466
1534
torch-build : << pipeline.parameters.torch-build >>
1535
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1467
1536
torch-build-index : << pipeline.parameters.torch-build-index >>
1468
1537
trt-version-long : << pipeline.parameters.trt-version-long >>
1469
1538
python-version : << pipeline.parameters.python-version >>
@@ -1472,6 +1541,7 @@ workflows:
1472
1541
1473
1542
- test-py-fx-x86_64-linux :
1474
1543
torch-build : << pipeline.parameters.torch-build >>
1544
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1475
1545
torch-build-index : << pipeline.parameters.torch-build-index >>
1476
1546
trt-version-long : << pipeline.parameters.trt-version-long >>
1477
1547
python-version : << pipeline.parameters.python-version >>
@@ -1480,6 +1550,7 @@ workflows:
1480
1550
1481
1551
- test-py-dynamo-x86_64-linux :
1482
1552
torch-build : << pipeline.parameters.torch-build >>
1553
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1483
1554
torch-build-index : << pipeline.parameters.torch-build-index >>
1484
1555
trt-version-long : << pipeline.parameters.trt-version-long >>
1485
1556
python-version : << pipeline.parameters.python-version >>
@@ -1490,11 +1561,13 @@ workflows:
1490
1561
jobs :
1491
1562
- build-x86_64-linux :
1492
1563
torch-build : << pipeline.parameters.torch-build >>
1564
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1493
1565
torch-build-index : << pipeline.parameters.torch-build-index >>
1494
1566
python-version : << pipeline.parameters.python-version >>
1495
1567
1496
1568
- test-core-cpp-x86_64-linux :
1497
1569
torch-build : << pipeline.parameters.torch-build >>
1570
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1498
1571
torch-build-index : << pipeline.parameters.torch-build-index >>
1499
1572
trt-version-short : << pipeline.parameters.trt-version-short >>
1500
1573
trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1505,6 +1578,7 @@ workflows:
1505
1578
1506
1579
- test-py-ts-x86_64-linux :
1507
1580
torch-build : << pipeline.parameters.torch-build >>
1581
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1508
1582
torch-build-index : << pipeline.parameters.torch-build-index >>
1509
1583
trt-version-long : << pipeline.parameters.trt-version-long >>
1510
1584
python-version : << pipeline.parameters.python-version >>
@@ -1513,6 +1587,7 @@ workflows:
1513
1587
1514
1588
- test-py-fx-x86_64-linux :
1515
1589
torch-build : << pipeline.parameters.torch-build >>
1590
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1516
1591
torch-build-index : << pipeline.parameters.torch-build-index >>
1517
1592
trt-version-long : << pipeline.parameters.trt-version-long >>
1518
1593
python-version : << pipeline.parameters.python-version >>
@@ -1521,6 +1596,7 @@ workflows:
1521
1596
1522
1597
- test-py-dynamo-x86_64-linux :
1523
1598
torch-build : << pipeline.parameters.torch-build >>
1599
+ torchvision-build : << pipeline.parameters.torchvision-build >>
1524
1600
torch-build-index : << pipeline.parameters.torch-build-index >>
1525
1601
trt-version-long : << pipeline.parameters.trt-version-long >>
1526
1602
python-version : << pipeline.parameters.python-version >>
0 commit comments