@@ -662,6 +662,9 @@ jobs:
662
662
663
663
package-jetson :
664
664
parameters :
665
+ enabled :
666
+ type : boolean
667
+ default : false
665
668
torch-build :
666
669
type : string
667
670
jetpack-version :
@@ -676,63 +679,72 @@ jobs:
676
679
image : ubuntu-2004:202201-02
677
680
resource_class : arm.xlarge
678
681
steps :
679
- - checkout
680
- # - run:
681
- # name: Upgrade base
682
- # command: |
683
- # sudo apt clean
684
- # sudo apt update
685
- # sudo apt upgrade
686
- # sudo apt install software-properties-common
687
- - install-cuda :
688
- os : " ubuntu2004"
689
- platform : " sbsa"
690
- cuda-pkg-name : " cuda-toolkit-11-4"
691
- - run :
692
- name : Install openblas
693
- command : sudo apt install libopenblas-dev
694
- - create-env :
695
- os : " ubuntu2004"
696
- platform : " sbsa"
697
- cudnn-version : << pipeline.parameters.cudnn-jetson-version >>
698
- trt-version-short : << pipeline.parameters.trt-jetson-version-short >>
699
- bazel-version : " 5.1.1"
700
- bazel-platform : " arm64"
701
- - run :
702
- name : Set python version
703
- command : |
704
- pyenv install << parameters.python-version >>
705
- pyenv global << parameters.python-version >>
706
- - run :
707
- name : Install NGC Torch
708
- environment :
709
- TORCH_INSTALL : https://developer.download.nvidia.com/compute/redist/jp/v<< parameters.jetpack-version >>/pytorch/<< parameters.torch-build >>
710
- command : |
711
- set -e
712
- python3 -m pip install --upgrade pip; python3 -m pip install setuptools wheel; python3 -m pip install expecttest xmlrunner hypothesis aiohttp numpy=='1.19.4' pyyaml scipy=='1.5.3' ninja cython typing_extensions protobuf; export "LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH"; python3 -m pip install --upgrade protobuf; python3 -m pip install --no-cache $TORCH_INSTALL
713
- - build-py-cxx11-abi :
714
- platform : " sbsa"
715
- release : true
716
- - run :
717
- name : Build cxx11-abi tarball
718
- command : |
719
- set -e
720
- bazel build //:libtorchtrt -c opt
721
- CUDA_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cuda_version__;print(__cuda_version__)")
722
- TORCHTRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
723
- TRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
724
- CUDNN_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
725
- pip3 install -r ~/project/py/requirements.txt
726
- TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
727
- cp ~/project/bazel-bin/libtorchtrt.tar.gz ~/project/py/dist/libtorchtrt-${TORCHTRT_VERSION}-cudnn${CUDNN_VERSION}-tensorrt${TRT_VERSION}-cuda${CUDA_VERSION}-libtorch-${TORCH_VERSION}.tar.gz
728
- - run :
729
- name : Move to release dir
730
- command : |
731
- mkdir -p /tmp/dist/jetson
732
- cp -r ~/project/py/dist/* /tmp/dist/jetson
733
- - store_artifacts :
734
- path : /tmp/dist/jetson
735
- destination : aarch64-release-pkgs
682
+ - when :
683
+ condition : << parameters.enabled >>
684
+ steps :
685
+ - checkout
686
+ # - run:
687
+ # name: Upgrade base
688
+ # command: |
689
+ # sudo apt clean
690
+ # sudo apt update
691
+ # sudo apt upgrade
692
+ # sudo apt install software-properties-common
693
+ - install-cuda :
694
+ os : " ubuntu2004"
695
+ platform : " sbsa"
696
+ cuda-pkg-name : " cuda-toolkit-11-4"
697
+ - run :
698
+ name : Install openblas
699
+ command : sudo apt install libopenblas-dev
700
+ - create-env :
701
+ os : " ubuntu2004"
702
+ platform : " sbsa"
703
+ cudnn-version : << pipeline.parameters.cudnn-jetson-version >>
704
+ trt-version-short : << pipeline.parameters.trt-jetson-version-short >>
705
+ bazel-version : " 5.1.1"
706
+ bazel-platform : " arm64"
707
+ - run :
708
+ name : Set python version
709
+ command : |
710
+ pyenv install << parameters.python-version >>
711
+ pyenv global << parameters.python-version >>
712
+ - run :
713
+ name : Install NGC Torch
714
+ environment :
715
+ TORCH_INSTALL : https://developer.download.nvidia.com/compute/redist/jp/v<< parameters.jetpack-version >>/pytorch/<< parameters.torch-build >>
716
+ command : |
717
+ set -e
718
+ python3 -m pip install --upgrade pip; python3 -m pip install setuptools wheel; python3 -m pip install expecttest xmlrunner hypothesis aiohttp numpy=='1.19.4' pyyaml scipy=='1.5.3' ninja cython typing_extensions protobuf; export "LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH"; python3 -m pip install --upgrade protobuf; python3 -m pip install --no-cache $TORCH_INSTALL
719
+ - build-py-cxx11-abi :
720
+ platform : " sbsa"
721
+ release : true
722
+ - run :
723
+ name : Build cxx11-abi tarball
724
+ command : |
725
+ set -e
726
+ bazel build //:libtorchtrt -c opt
727
+ CUDA_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cuda_version__;print(__cuda_version__)")
728
+ TORCHTRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
729
+ TRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
730
+ CUDNN_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
731
+ pip3 install -r ~/project/py/requirements.txt
732
+ TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
733
+ cp ~/project/bazel-bin/libtorchtrt.tar.gz ~/project/py/dist/libtorchtrt-${TORCHTRT_VERSION}-cudnn${CUDNN_VERSION}-tensorrt${TRT_VERSION}-cuda${CUDA_VERSION}-libtorch-${TORCH_VERSION}.tar.gz
734
+ - run :
735
+ name : Move to release dir
736
+ command : |
737
+ mkdir -p /tmp/dist/jetson
738
+ cp -r ~/project/py/dist/* /tmp/dist/jetson
739
+ - store_artifacts :
740
+ path : /tmp/dist/jetson
741
+ destination : aarch64-release-pkgs
742
+ - unless :
743
+ condition : << parameters.enabled >>
744
+ steps :
745
+ - run :
746
+ name : Skipped packaging
747
+ command : echo -e "Packaging stage not enabled"
736
748
737
749
738
750
parameters :
@@ -809,6 +821,7 @@ workflows:
809
821
python-version : 3.8.10
810
822
811
823
824
+
812
825
- build-x86_64-pyt-release :
813
826
torch-build : << pipeline.parameters.torch-release-build >>
814
827
torch-build-index : << pipeline.parameters.torch-release-build-index >>
@@ -833,7 +846,7 @@ workflows:
833
846
requires :
834
847
- build-x86_64-pyt-release
835
848
836
- - test-py-fx -x86_64 :
849
+ - test-py-ts -x86_64 :
837
850
name : test-py-fx-x86_64-pyt-release
838
851
channel : " release"
839
852
torch-build : << pipeline.parameters.torch-release-build >>
@@ -843,6 +856,7 @@ workflows:
843
856
- build-x86_64-pyt-release
844
857
845
858
859
+
846
860
- build-x86_64-pyt-nightly :
847
861
torch-build : << pipeline.parameters.torch-nightly-build >>
848
862
torch-build-index : << pipeline.parameters.torch-nightly-build-index >>
@@ -875,7 +889,6 @@ workflows:
875
889
trt-version-long : << pipeline.parameters.trt-nightly-version-long >>
876
890
requires :
877
891
- build-x86_64-pyt-nightly
878
-
879
892
release :
880
893
when : << pipeline.parameters.packaging-enabled >>
881
894
jobs :
@@ -888,7 +901,6 @@ workflows:
888
901
torch-build : << pipeline.parameters.torch-release-build >>
889
902
torch-build-index : << pipeline.parameters.torch-release-build-index >>
890
903
891
-
892
904
- test-core-cpp-x86_64 :
893
905
name : test-core-cpp-x86_64-pyt-release
894
906
channel : " release"
@@ -909,7 +921,7 @@ workflows:
909
921
requires :
910
922
- build-x86_64-pyt-release
911
923
912
- - test-py-fx -x86_64 :
924
+ - test-py-ts -x86_64 :
913
925
name : test-py-fx-x86_64-pyt-release
914
926
channel : " release"
915
927
torch-build : << pipeline.parameters.torch-release-build >>
@@ -918,7 +930,6 @@ workflows:
918
930
requires :
919
931
- build-x86_64-pyt-release
920
932
921
-
922
933
- package-x86_64 :
923
934
name : package-release-x86_64
924
935
enabled : << pipeline.parameters.packaging-enabled >>
@@ -935,6 +946,7 @@ workflows:
935
946
torch-build : << pipeline.parameters.torch-jetson-build >>
936
947
jetpack-version : << pipeline.parameters.jetpack-version >>
937
948
python-version : 3.8.10
949
+
938
950
requires :
939
951
- build-aarch64-pyt-jetson
940
952
@@ -946,6 +958,7 @@ workflows:
946
958
python-version : 3.8.10
947
959
948
960
961
+
949
962
- build-x86_64-pyt-release :
950
963
torch-build : << pipeline.parameters.torch-release-build >>
951
964
torch-build-index : << pipeline.parameters.torch-release-build-index >>
@@ -970,7 +983,7 @@ workflows:
970
983
requires :
971
984
- build-x86_64-pyt-release
972
985
973
- - test-py-fx -x86_64 :
986
+ - test-py-ts -x86_64 :
974
987
name : test-py-fx-x86_64-pyt-release
975
988
channel : " release"
976
989
torch-build : << pipeline.parameters.torch-release-build >>
@@ -979,6 +992,14 @@ workflows:
979
992
requires :
980
993
- build-x86_64-pyt-release
981
994
995
+ - deploy-py-x86_64 :
996
+ name : deploy-release-x86_86-py
997
+ torch-build : << pipeline.parameters.torch-release-build >>
998
+ torch-build-index : << pipeline.parameters.torch-release-build-index >>
999
+ trt-version-short : << pipeline.parameters.trt-release-version-short >>
1000
+ trt-version-long : << pipeline.parameters.trt-release-version-long >>
1001
+
1002
+
982
1003
983
1004
- build-x86_64-pyt-nightly :
984
1005
torch-build : << pipeline.parameters.torch-nightly-build >>
@@ -1011,4 +1032,4 @@ workflows:
1011
1032
torch-build-index : << pipeline.parameters.torch-nightly-build-index >>
1012
1033
trt-version-long : << pipeline.parameters.trt-nightly-version-long >>
1013
1034
requires :
1014
- - build-x86_64-pyt-nightly
1035
+ - build-x86_64-pyt-nightly
0 commit comments