Skip to content

Commit 82fb1bc

Browse files
committed
chore: split builds
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 31d0a0a commit 82fb1bc

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

.circleci/config.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ jobs:
745745
- dump-test-env
746746
- test-fx
747747

748-
package-x86_64-linux:
748+
package-x86_64-linux-pre-cxx11-abi:
749749
parameters:
750750
enabled:
751751
type: boolean
@@ -774,6 +774,40 @@ jobs:
774774
cd ~/project/py/
775775
cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel ~/project/WORKSPACE
776776
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
777811
- create-env:
778812
os: "ubuntu2004"
779813
platform: "x86_64"
@@ -796,12 +830,13 @@ jobs:
796830
pip3 install --upgrade pip
797831
pip3 install -r ~/project/py/requirements.txt
798832
TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
833+
mkdir -p ~/project/py/dist/
799834
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
800835
- run:
801836
name: Collect packages
802837
command: |
803838
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
805840
- store_artifacts:
806841
path: /tmp/dist/x86_64-linux
807842
destination: x86_64-linux-pkgs
@@ -1105,7 +1140,16 @@ workflows:
11051140
- build-x86_64-linux
11061141

11071142

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:
11091153
enabled: << pipeline.parameters.enable-packaging >>
11101154
torch-build: << pipeline.parameters.torch-build >>
11111155
torch-build-index: << pipeline.parameters.torch-build-index >>

0 commit comments

Comments
 (0)