@@ -745,7 +745,7 @@ jobs:
745
745
- dump-test-env
746
746
- test-fx
747
747
748
- package-x86_64-linux :
748
+ package-x86_64-linux-pre-cxx11-abi :
749
749
parameters :
750
750
enabled :
751
751
type : boolean
@@ -774,6 +774,40 @@ jobs:
774
774
cd ~/project/py/
775
775
cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel ~/project/WORKSPACE
776
776
docker run -it --rm --gpus all -v ~/project:/workspace/project torch_tensorrt_release_env /bin/bash /workspace/project/py/ci/build_whl.sh $(cat /workspace/project/py/ci/build_manifest.txt | circleci tests split)
777
+ - run :
778
+ name : Collect packages
779
+ command : |
780
+ mkdir -p /tmp/dist/x86_64-linux
781
+ cp -r ~/project/py/wheelhouse/* /tmp/dist/x86_64-linux
782
+ - store_artifacts :
783
+ path : /tmp/dist/x86_64-linux
784
+ destination : x86_64-linux-pkgs
785
+ - unless :
786
+ condition : << parameters.enabled >>
787
+ steps :
788
+ - run :
789
+ name : Skipped packaging
790
+ command : echo -e "Packaging stage not enabled"
791
+
792
+
793
+ package-x86_64-cxx11-abi :
794
+ parameters :
795
+ enabled :
796
+ type : boolean
797
+ default : false
798
+ torch-build :
799
+ type : string
800
+ torch-build-index :
801
+ type : string
802
+ parallelism : 4
803
+ machine :
804
+ image : ubuntu-2004-cuda-11.4:202110-01
805
+ resource_class : gpu.nvidia.small
806
+ steps :
807
+ - when :
808
+ condition : << parameters.enabled >>
809
+ steps :
810
+ - checkout
777
811
- create-env :
778
812
os : " ubuntu2004"
779
813
platform : " x86_64"
@@ -796,12 +830,13 @@ jobs:
796
830
pip3 install --upgrade pip
797
831
pip3 install -r ~/project/py/requirements.txt
798
832
TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
833
+ mkdir -p ~/project/py/dist/
799
834
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}-x86_64-linux.tar.gz
800
835
- run :
801
836
name : Collect packages
802
837
command : |
803
838
mkdir -p /tmp/dist/x86_64-linux
804
- cp -r ~/project/py/wheelhouse /* /tmp/dist/x86_64-linux
839
+ cp -r ~/project/py/dist /* /tmp/dist/x86_64-linux
805
840
- store_artifacts :
806
841
path : /tmp/dist/x86_64-linux
807
842
destination : x86_64-linux-pkgs
@@ -1105,7 +1140,16 @@ workflows:
1105
1140
- build-x86_64-linux
1106
1141
1107
1142
1108
- - package-x86_64-linux :
1143
+ - package-x86_64-linux-pre-cxx11-abi :
1144
+ enabled : << pipeline.parameters.enable-packaging >>
1145
+ torch-build : << pipeline.parameters.torch-build >>
1146
+ torch-build-index : << pipeline.parameters.torch-build-index >>
1147
+ # requires:
1148
+ # - test-core-cpp-x86_64-linux
1149
+ # - test-py-ts-x86_64-linux
1150
+ # - test-py-fx-x86_64-linux
1151
+
1152
+ - package-x86_64-linux-cxx11-abi :
1109
1153
enabled : << pipeline.parameters.enable-packaging >>
1110
1154
torch-build : << pipeline.parameters.torch-build >>
1111
1155
torch-build-index : << pipeline.parameters.torch-build-index >>
0 commit comments