|
2 | 2 | # See: https://circleci.com/docs/2.0/configuration-reference
|
3 | 3 | version: 2.1
|
4 | 4 |
|
| 5 | +orbs: |
| 6 | + |
| 7 | + |
5 | 8 | commands:
|
6 | 9 | install-bazel:
|
7 | 10 | description: "Install bazel"
|
@@ -207,6 +210,26 @@ commands:
|
207 | 210 | mkdir -p /tmp/dist/builds
|
208 | 211 | cp dist/* /tmp/dist/builds
|
209 | 212 |
|
| 213 | + build-cmake: |
| 214 | + description: "Build the torch-tensorrt using CMake" |
| 215 | + parameters: |
| 216 | + platform: |
| 217 | + type: string |
| 218 | + default: "x86_64" |
| 219 | + steps: |
| 220 | + - run: |
| 221 | + name: Build torch-tensorrt library with CMake |
| 222 | + command: | |
| 223 | + mkdir build |
| 224 | + cmake -S. -Bbuild \ |
| 225 | + -DCMAKE_MODULE_PATH=cmake/Module \ |
| 226 | + -DTorch_DIR=/opt/circleci/.pyenv/versions/3.9.4/lib/python3.9/site-packages/torch/share/cmake/Torch \ |
| 227 | + -DTensorRT_ROOT=/usr \ |
| 228 | + -DCMAKE_BUILD_TYPE=Debug |
| 229 | + cmake --build build |
| 230 | + mkdir -p /tmp/dist/builds |
| 231 | + cp -r build /tmp/dist/builds |
| 232 | +
|
210 | 233 | dump-test-env:
|
211 | 234 | description: "Dump the test env to console"
|
212 | 235 | steps:
|
@@ -632,7 +655,7 @@ jobs:
|
632 | 655 | platform: "x86_64"
|
633 | 656 | cudnn-version: << pipeline.parameters.cudnn-release-version >>
|
634 | 657 | trt-version-short: << pipeline.parameters.trt-release-version-short >>
|
635 |
| - bazel-version: "5.1.1" |
| 658 | + bazel-version: << pipeline.parameters.bazel-version >> |
636 | 659 | bazel-platform: "x86_64"
|
637 | 660 | - run:
|
638 | 661 | name: Build cxx11-abi tarball
|
@@ -703,7 +726,7 @@ jobs:
|
703 | 726 | platform: "sbsa"
|
704 | 727 | cudnn-version: << pipeline.parameters.cudnn-jetson-version >>
|
705 | 728 | trt-version-short: << pipeline.parameters.trt-jetson-version-short >>
|
706 |
| - bazel-version: "5.1.1" |
| 729 | + bazel-version: << pipeline.parameters.bazel-version >> |
707 | 730 | bazel-platform: "arm64"
|
708 | 731 | - run:
|
709 | 732 | name: Set python version
|
@@ -742,6 +765,45 @@ jobs:
|
742 | 765 | path: /tmp/dist/jetson
|
743 | 766 | destination: aarch64-release-pkgs
|
744 | 767 |
|
| 768 | + build-x86_64-cmake: |
| 769 | + parameters: |
| 770 | + cudnn-version: |
| 771 | + type: string |
| 772 | + trt-version-short: |
| 773 | + type: string |
| 774 | + torch-build: |
| 775 | + type: string |
| 776 | + torch-build-index: |
| 777 | + type: string |
| 778 | + machine: |
| 779 | + image: ubuntu-2004-cuda-11.4:202110-01 |
| 780 | + resource_class: xlarge |
| 781 | + steps: |
| 782 | + - checkout |
| 783 | + - create-env: |
| 784 | + os: "ubuntu2004" |
| 785 | + platform: "x86_64" |
| 786 | + cudnn-version: << parameters.cudnn-version >> |
| 787 | + trt-version-short: << parameters.trt-version-short >> |
| 788 | + bazel-platform: "x86_64" |
| 789 | + - cmake/install: |
| 790 | + version: 3.24.1 |
| 791 | + - install-torch-from-index: |
| 792 | + torch-build: << parameters.torch-build >> |
| 793 | + torch-build-index: << parameters.torch-build-index >> |
| 794 | + - build-cmake |
| 795 | + - run: |
| 796 | + name: Move to cmake build dir |
| 797 | + command: | |
| 798 | + mkdir -p /tmp/dist/cmake |
| 799 | + cp -r /tmp/dist/builds/* /tmp/dist/cmake |
| 800 | + - persist_to_workspace: |
| 801 | + root: /tmp/dist |
| 802 | + paths: |
| 803 | + - cmake |
| 804 | + - store_artifacts: |
| 805 | + path: /tmp/dist/cmake |
| 806 | + destination: x86_64-cmake |
745 | 807 |
|
746 | 808 | parameters:
|
747 | 809 | bazel-version:
|
@@ -821,7 +883,6 @@ workflows:
|
821 | 883 | jetpack-version: << pipeline.parameters.jetpack-version >>
|
822 | 884 | python-version: 3.8.10
|
823 | 885 |
|
824 |
| - |
825 | 886 | - build-x86_64-pyt-release:
|
826 | 887 | torch-build: << pipeline.parameters.torch-release-build >>
|
827 | 888 | torch-build-index: << pipeline.parameters.torch-release-build-index >>
|
@@ -855,7 +916,6 @@ workflows:
|
855 | 916 | requires:
|
856 | 917 | - build-x86_64-pyt-release
|
857 | 918 |
|
858 |
| - |
859 | 919 | - build-x86_64-pyt-nightly:
|
860 | 920 | torch-build: << pipeline.parameters.torch-nightly-build >>
|
861 | 921 | torch-build-index: << pipeline.parameters.torch-nightly-build-index >>
|
@@ -901,7 +961,6 @@ workflows:
|
901 | 961 | torch-build: << pipeline.parameters.torch-release-build >>
|
902 | 962 | torch-build-index: << pipeline.parameters.torch-release-build-index >>
|
903 | 963 |
|
904 |
| - |
905 | 964 | - test-core-cpp-x86_64:
|
906 | 965 | name: test-core-cpp-x86_64-pyt-release
|
907 | 966 | channel: "release"
|
@@ -958,7 +1017,6 @@ workflows:
|
958 | 1017 | jetpack-version: << pipeline.parameters.jetpack-version >>
|
959 | 1018 | python-version: 3.8.10
|
960 | 1019 |
|
961 |
| - |
962 | 1020 | - build-x86_64-pyt-release:
|
963 | 1021 | torch-build: << pipeline.parameters.torch-release-build >>
|
964 | 1022 | torch-build-index: << pipeline.parameters.torch-release-build-index >>
|
@@ -1025,3 +1083,17 @@ workflows:
|
1025 | 1083 | trt-version-long: << pipeline.parameters.trt-nightly-version-long >>
|
1026 | 1084 | requires:
|
1027 | 1085 | - build-x86_64-pyt-nightly
|
| 1086 | + |
| 1087 | + - build-x86_64-cmake: |
| 1088 | + name: build-x86_64-cmake-pyt-nightly |
| 1089 | + torch-build: << pipeline.parameters.torch-nightly-build >> |
| 1090 | + torch-build-index: << pipeline.parameters.torch-nightly-build-index >> |
| 1091 | + trt-version-short: << pipeline.parameters.trt-nightly-version-short >> |
| 1092 | + cudnn-version: << pipeline.parameters.cudnn-nightly-version >> |
| 1093 | + |
| 1094 | + - build-x86_64-cmake: |
| 1095 | + name: build-x86_64-cmake-pyt-release |
| 1096 | + torch-build: << pipeline.parameters.torch-release-build >> |
| 1097 | + torch-build-index: << pipeline.parameters.torch-release-build-index >> |
| 1098 | + trt-version-short: << pipeline.parameters.trt-release-version-short >> |
| 1099 | + cudnn-version: << pipeline.parameters.cudnn-release-version >> |
0 commit comments