Skip to content

Commit 2285f7e

Browse files
committed
Updated config.yml
1 parent b80c56f commit 2285f7e

File tree

1 file changed

+85
-64
lines changed

1 file changed

+85
-64
lines changed

.circleci/config.yml

Lines changed: 85 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ jobs:
662662

663663
package-jetson:
664664
parameters:
665+
enabled:
666+
type: boolean
667+
default: false
665668
torch-build:
666669
type: string
667670
jetpack-version:
@@ -676,63 +679,72 @@ jobs:
676679
image: ubuntu-2004:202201-02
677680
resource_class: arm.xlarge
678681
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"
736748

737749

738750
parameters:
@@ -809,6 +821,7 @@ workflows:
809821
python-version: 3.8.10
810822

811823

824+
812825
- build-x86_64-pyt-release:
813826
torch-build: << pipeline.parameters.torch-release-build >>
814827
torch-build-index: << pipeline.parameters.torch-release-build-index >>
@@ -833,7 +846,7 @@ workflows:
833846
requires:
834847
- build-x86_64-pyt-release
835848

836-
- test-py-fx-x86_64:
849+
- test-py-ts-x86_64:
837850
name: test-py-fx-x86_64-pyt-release
838851
channel: "release"
839852
torch-build: << pipeline.parameters.torch-release-build >>
@@ -843,6 +856,7 @@ workflows:
843856
- build-x86_64-pyt-release
844857

845858

859+
846860
- build-x86_64-pyt-nightly:
847861
torch-build: << pipeline.parameters.torch-nightly-build >>
848862
torch-build-index: << pipeline.parameters.torch-nightly-build-index >>
@@ -875,7 +889,6 @@ workflows:
875889
trt-version-long: << pipeline.parameters.trt-nightly-version-long >>
876890
requires:
877891
- build-x86_64-pyt-nightly
878-
879892
release:
880893
when: << pipeline.parameters.packaging-enabled >>
881894
jobs:
@@ -888,7 +901,6 @@ workflows:
888901
torch-build: << pipeline.parameters.torch-release-build >>
889902
torch-build-index: << pipeline.parameters.torch-release-build-index >>
890903

891-
892904
- test-core-cpp-x86_64:
893905
name: test-core-cpp-x86_64-pyt-release
894906
channel: "release"
@@ -909,7 +921,7 @@ workflows:
909921
requires:
910922
- build-x86_64-pyt-release
911923

912-
- test-py-fx-x86_64:
924+
- test-py-ts-x86_64:
913925
name: test-py-fx-x86_64-pyt-release
914926
channel: "release"
915927
torch-build: << pipeline.parameters.torch-release-build >>
@@ -918,7 +930,6 @@ workflows:
918930
requires:
919931
- build-x86_64-pyt-release
920932

921-
922933
- package-x86_64:
923934
name: package-release-x86_64
924935
enabled: << pipeline.parameters.packaging-enabled >>
@@ -935,6 +946,7 @@ workflows:
935946
torch-build: << pipeline.parameters.torch-jetson-build >>
936947
jetpack-version: << pipeline.parameters.jetpack-version >>
937948
python-version: 3.8.10
949+
938950
requires:
939951
- build-aarch64-pyt-jetson
940952

@@ -946,6 +958,7 @@ workflows:
946958
python-version: 3.8.10
947959

948960

961+
949962
- build-x86_64-pyt-release:
950963
torch-build: << pipeline.parameters.torch-release-build >>
951964
torch-build-index: << pipeline.parameters.torch-release-build-index >>
@@ -970,7 +983,7 @@ workflows:
970983
requires:
971984
- build-x86_64-pyt-release
972985

973-
- test-py-fx-x86_64:
986+
- test-py-ts-x86_64:
974987
name: test-py-fx-x86_64-pyt-release
975988
channel: "release"
976989
torch-build: << pipeline.parameters.torch-release-build >>
@@ -979,6 +992,14 @@ workflows:
979992
requires:
980993
- build-x86_64-pyt-release
981994

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+
9821003

9831004
- build-x86_64-pyt-nightly:
9841005
torch-build: << pipeline.parameters.torch-nightly-build >>
@@ -1011,4 +1032,4 @@ workflows:
10111032
torch-build-index: << pipeline.parameters.torch-nightly-build-index >>
10121033
trt-version-long: << pipeline.parameters.trt-nightly-version-long >>
10131034
requires:
1014-
- build-x86_64-pyt-nightly
1035+
- build-x86_64-pyt-nightly

0 commit comments

Comments
 (0)