@@ -303,6 +303,26 @@ commands:
303303 mkdir -p /tmp/dist/builds
304304 cp dist/* /tmp/dist/builds
305305
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+
306326 build-py-cxx11-abi :
307327 description : " Build the torch-tensorrt python release (cxx11-abi)"
308328 parameters :
@@ -786,13 +806,18 @@ jobs:
786806 parameters :
787807 torch-build :
788808 type : string
809+ torchvision-build :
810+ type : string
789811 torch-build-index :
790812 type : string
791813 python-version :
792814 type : string
793815 cxx11-abi :
794816 type : boolean
795817 default : false
818+ legacy :
819+ type : boolean
820+ default : false
796821 machine :
797822 image : linux-cuda-11:2023.02.1
798823 resource_class : gpu.nvidia.small
@@ -809,6 +834,7 @@ jobs:
809834 bazel-platform : " x86_64"
810835 - install-torch-from-index :
811836 torch-build : << parameters.torch-build >>
837+ torchvision-build : << parameters.torchvision-build >>
812838 torch-build-index : << parameters.torch-build-index >>
813839 - when :
814840 condition : << parameters.cxx11-abi >>
@@ -817,7 +843,14 @@ jobs:
817843 - unless :
818844 condition : << parameters.cxx11-abi >>
819845 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
821854 - run :
822855 name : Move to build dir
823856 command : |
@@ -839,6 +872,8 @@ jobs:
839872 type : string
840873 torch-build-index :
841874 type : string
875+ torchvision-build :
876+ type : string
842877 trt-version-short :
843878 type : string
844879 trt-version-long :
@@ -864,6 +899,7 @@ jobs:
864899 trt-version-long : << parameters.trt-version-long >>
865900 - install-torch-from-index :
866901 torch-build : << parameters.torch-build >>
902+ torchvision-build : << parameters.torchvision-build >>
867903 torch-build-index : << parameters.torch-build-index >>
868904 - attach_workspace :
869905 at : /tmp/dist
@@ -877,6 +913,8 @@ jobs:
877913 parameters :
878914 torch-build :
879915 type : string
916+ torchvision-build :
917+ type : string
880918 torch-build-index :
881919 type : string
882920 trt-version-long :
@@ -896,6 +934,7 @@ jobs:
896934 at : /tmp/dist
897935 - install-torch-from-index :
898936 torch-build : << parameters.torch-build >>
937+ torchvision-build : << parameters.torchvision-build >>
899938 torch-build-index : << parameters.torch-build-index >>
900939 - run :
901940 name : " Install torch-tensorrt"
@@ -907,6 +946,8 @@ jobs:
907946 parameters :
908947 torch-build :
909948 type : string
949+ torchvision-build :
950+ type : string
910951 torch-build-index :
911952 type : string
912953 trt-version-long :
@@ -924,6 +965,7 @@ jobs:
924965 at : /tmp/dist/
925966 - install-torch-from-index :
926967 torch-build : << parameters.torch-build >>
968+ torchvision-build : << parameters.torchvision-build >>
927969 torch-build-index : << parameters.torch-build-index >>
928970 - create-py-env :
929971 trt-version-long : << parameters.trt-version-long >>
@@ -939,6 +981,8 @@ jobs:
939981 parameters :
940982 torch-build :
941983 type : string
984+ torchvision-build :
985+ type : string
942986 torch-build-index :
943987 type : string
944988 trt-version-long :
@@ -956,6 +1000,7 @@ jobs:
9561000 at : /tmp/dist/
9571001 - install-torch-from-index :
9581002 torch-build : << parameters.torch-build >>
1003+ torchvision-build : << parameters.torchvision-build >>
9591004 torch-build-index : << parameters.torch-build-index >>
9601005 - create-py-env :
9611006 trt-version-long : << parameters.trt-version-long >>
@@ -974,6 +1019,8 @@ jobs:
9741019 parameters :
9751020 torch-build :
9761021 type : string
1022+ torchvision-build :
1023+ type : string
9771024 torch-build-index :
9781025 type : string
9791026 trt-version-long :
@@ -991,6 +1038,7 @@ jobs:
9911038 at : /tmp/dist/
9921039 - install-torch-from-index :
9931040 torch-build : << parameters.torch-build >>
1041+ torchvision-build : << parameters.torchvision-build >>
9941042 torch-build-index : << parameters.torch-build-index >>
9951043 - create-py-env :
9961044 trt-version-long : << parameters.trt-version-long >>
@@ -1303,15 +1351,24 @@ parameters:
13031351 torch-build :
13041352 type : string
13051353 default : " 2.1.0.dev20230419+cu118"
1354+ torchvision-build :
1355+ type : string
1356+ default : " 0.16.0.dev20230419+cu118"
13061357 torch-build-index :
13071358 type : string
13081359 default : " https://download.pytorch.org/whl/nightly/cu118"
13091360 torch-build-legacy :
13101361 type : string
13111362 default : " 1.13.1+cu117"
1363+ torchvision-build-legacy :
1364+ type : string
1365+ default : " 0.14.1+cu117"
13121366 torch-build-index-legacy :
13131367 type : string
13141368 default : " https://download.pytorch.org/whl/cu117"
1369+ enable-legacy :
1370+ type : boolean
1371+ default : true
13151372 cudnn-version :
13161373 type : string
13171374 default : " 8.8.0.121"
@@ -1367,11 +1424,13 @@ workflows:
13671424 - build-x86_64-linux :
13681425 name : build-x86_64-linux
13691426 torch-build : << pipeline.parameters.torch-build >>
1427+ torchvision-build : << pipeline.parameters.torchvision-build >>
13701428 torch-build-index : << pipeline.parameters.torch-build-index >>
13711429 python-version : << pipeline.parameters.python-version >>
13721430
13731431 - test-core-cpp-x86_64-linux :
13741432 torch-build : << pipeline.parameters.torch-build >>
1433+ torchvision-build : << pipeline.parameters.torchvision-build >>
13751434 torch-build-index : << pipeline.parameters.torch-build-index >>
13761435 trt-version-short : << pipeline.parameters.trt-version-short >>
13771436 trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1382,6 +1441,7 @@ workflows:
13821441
13831442 - test-py-ts-x86_64-linux :
13841443 torch-build : << pipeline.parameters.torch-build >>
1444+ torchvision-build : << pipeline.parameters.torchvision-build >>
13851445 torch-build-index : << pipeline.parameters.torch-build-index >>
13861446 trt-version-long : << pipeline.parameters.trt-version-long >>
13871447 python-version : << pipeline.parameters.python-version >>
@@ -1390,6 +1450,7 @@ workflows:
13901450
13911451 - test-py-fx-x86_64-linux :
13921452 torch-build : << pipeline.parameters.torch-build >>
1453+ torchvision-build : << pipeline.parameters.torchvision-build >>
13931454 torch-build-index : << pipeline.parameters.torch-build-index >>
13941455 trt-version-long : << pipeline.parameters.trt-version-long >>
13951456 python-version : << pipeline.parameters.python-version >>
@@ -1398,6 +1459,7 @@ workflows:
13981459
13991460 - test-py-dynamo-x86_64-linux :
14001461 torch-build : << pipeline.parameters.torch-build >>
1462+ torchvision-build : << pipeline.parameters.torchvision-build >>
14011463 torch-build-index : << pipeline.parameters.torch-build-index >>
14021464 trt-version-long : << pipeline.parameters.trt-version-long >>
14031465 python-version : << pipeline.parameters.python-version >>
@@ -1407,12 +1469,15 @@ workflows:
14071469 - build-x86_64-linux :
14081470 name : build-x86_64-linux-legacy
14091471 torch-build : << pipeline.parameters.torch-build-legacy >>
1472+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
14101473 torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
14111474 python-version : << pipeline.parameters.python-version >>
1475+ legacy : << pipeline.parameters.enable-legacy >>
14121476
14131477 - test-core-cpp-x86_64-linux :
14141478 name : test-core-cpp-x86_64-linux-legacy
14151479 torch-build : << pipeline.parameters.torch-build-legacy >>
1480+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
14161481 torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
14171482 trt-version-short : << pipeline.parameters.trt-version-short >>
14181483 trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1424,6 +1489,7 @@ workflows:
14241489 - test-py-ts-x86_64-linux :
14251490 name : test-py-ts-x86_64-linux-legacy
14261491 torch-build : << pipeline.parameters.torch-build-legacy >>
1492+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
14271493 torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
14281494 trt-version-long : << pipeline.parameters.trt-version-long >>
14291495 python-version : << pipeline.parameters.python-version >>
@@ -1432,6 +1498,7 @@ workflows:
14321498
14331499 - test-py-fx-x86_64-linux-no-aten :
14341500 torch-build : << pipeline.parameters.torch-build-legacy >>
1501+ torchvision-build : << pipeline.parameters.torchvision-build-legacy >>
14351502 torch-build-index : << pipeline.parameters.torch-build-index-legacy >>
14361503 trt-version-long : << pipeline.parameters.trt-version-long >>
14371504 python-version : << pipeline.parameters.python-version >>
@@ -1454,6 +1521,7 @@ workflows:
14541521
14551522 - test-core-cpp-x86_64-linux :
14561523 torch-build : << pipeline.parameters.torch-build >>
1524+ torchvision-build : << pipeline.parameters.torchvision-build >>
14571525 torch-build-index : << pipeline.parameters.torch-build-index >>
14581526 trt-version-short : << pipeline.parameters.trt-version-short >>
14591527 trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1464,6 +1532,7 @@ workflows:
14641532
14651533 - test-py-ts-x86_64-linux :
14661534 torch-build : << pipeline.parameters.torch-build >>
1535+ torchvision-build : << pipeline.parameters.torchvision-build >>
14671536 torch-build-index : << pipeline.parameters.torch-build-index >>
14681537 trt-version-long : << pipeline.parameters.trt-version-long >>
14691538 python-version : << pipeline.parameters.python-version >>
@@ -1472,6 +1541,7 @@ workflows:
14721541
14731542 - test-py-fx-x86_64-linux :
14741543 torch-build : << pipeline.parameters.torch-build >>
1544+ torchvision-build : << pipeline.parameters.torchvision-build >>
14751545 torch-build-index : << pipeline.parameters.torch-build-index >>
14761546 trt-version-long : << pipeline.parameters.trt-version-long >>
14771547 python-version : << pipeline.parameters.python-version >>
@@ -1480,6 +1550,7 @@ workflows:
14801550
14811551 - test-py-dynamo-x86_64-linux :
14821552 torch-build : << pipeline.parameters.torch-build >>
1553+ torchvision-build : << pipeline.parameters.torchvision-build >>
14831554 torch-build-index : << pipeline.parameters.torch-build-index >>
14841555 trt-version-long : << pipeline.parameters.trt-version-long >>
14851556 python-version : << pipeline.parameters.python-version >>
@@ -1490,11 +1561,13 @@ workflows:
14901561 jobs :
14911562 - build-x86_64-linux :
14921563 torch-build : << pipeline.parameters.torch-build >>
1564+ torchvision-build : << pipeline.parameters.torchvision-build >>
14931565 torch-build-index : << pipeline.parameters.torch-build-index >>
14941566 python-version : << pipeline.parameters.python-version >>
14951567
14961568 - test-core-cpp-x86_64-linux :
14971569 torch-build : << pipeline.parameters.torch-build >>
1570+ torchvision-build : << pipeline.parameters.torchvision-build >>
14981571 torch-build-index : << pipeline.parameters.torch-build-index >>
14991572 trt-version-short : << pipeline.parameters.trt-version-short >>
15001573 trt-version-long : << pipeline.parameters.trt-version-long >>
@@ -1505,6 +1578,7 @@ workflows:
15051578
15061579 - test-py-ts-x86_64-linux :
15071580 torch-build : << pipeline.parameters.torch-build >>
1581+ torchvision-build : << pipeline.parameters.torchvision-build >>
15081582 torch-build-index : << pipeline.parameters.torch-build-index >>
15091583 trt-version-long : << pipeline.parameters.trt-version-long >>
15101584 python-version : << pipeline.parameters.python-version >>
@@ -1513,6 +1587,7 @@ workflows:
15131587
15141588 - test-py-fx-x86_64-linux :
15151589 torch-build : << pipeline.parameters.torch-build >>
1590+ torchvision-build : << pipeline.parameters.torchvision-build >>
15161591 torch-build-index : << pipeline.parameters.torch-build-index >>
15171592 trt-version-long : << pipeline.parameters.trt-version-long >>
15181593 python-version : << pipeline.parameters.python-version >>
@@ -1521,6 +1596,7 @@ workflows:
15211596
15221597 - test-py-dynamo-x86_64-linux :
15231598 torch-build : << pipeline.parameters.torch-build >>
1599+ torchvision-build : << pipeline.parameters.torchvision-build >>
15241600 torch-build-index : << pipeline.parameters.torch-build-index >>
15251601 trt-version-long : << pipeline.parameters.trt-version-long >>
15261602 python-version : << pipeline.parameters.python-version >>
0 commit comments