Skip to content

Commit

Permalink
chore: split builds
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Dec 5, 2022
1 parent 31d0a0a commit ac3c596
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ jobs:
- dump-test-env
- test-fx

package-x86_64-linux:
package-x86_64-linux-pre-cxx11-abi:
parameters:
enabled:
type: boolean
Expand Down Expand Up @@ -774,6 +774,40 @@ jobs:
cd ~/project/py/
cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel ~/project/WORKSPACE
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)
- run:
name: Collect packages
command: |
mkdir -p /tmp/dist/x86_64-linux
cp -r ~/project/py/wheelhouse/* /tmp/dist/x86_64-linux
- store_artifacts:
path: /tmp/dist/x86_64-linux
destination: x86_64-linux-pkgs
- unless:
condition: << parameters.enabled >>
steps:
- run:
name: Skipped packaging
command: echo -e "Packaging stage not enabled"


package-x86_64-linux-cxx11-abi:
parameters:
enabled:
type: boolean
default: false
torch-build:
type: string
torch-build-index:
type: string
parallelism: 4
machine:
image: ubuntu-2004-cuda-11.4:202110-01
resource_class: gpu.nvidia.small
steps:
- when:
condition: << parameters.enabled >>
steps:
- checkout
- create-env:
os: "ubuntu2004"
platform: "x86_64"
Expand All @@ -796,12 +830,13 @@ jobs:
pip3 install --upgrade pip
pip3 install -r ~/project/py/requirements.txt
TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
mkdir -p ~/project/py/dist/
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
- run:
name: Collect packages
command: |
mkdir -p /tmp/dist/x86_64-linux
cp -r ~/project/py/wheelhouse/* /tmp/dist/x86_64-linux
cp -r ~/project/py/dist/* /tmp/dist/x86_64-linux
- store_artifacts:
path: /tmp/dist/x86_64-linux
destination: x86_64-linux-pkgs
Expand Down Expand Up @@ -1105,7 +1140,16 @@ workflows:
- build-x86_64-linux


- package-x86_64-linux:
- package-x86_64-linux-pre-cxx11-abi:
enabled: << pipeline.parameters.enable-packaging >>
torch-build: << pipeline.parameters.torch-build >>
torch-build-index: << pipeline.parameters.torch-build-index >>
#requires:
#- test-core-cpp-x86_64-linux
#- test-py-ts-x86_64-linux
#- test-py-fx-x86_64-linux

- package-x86_64-linux-cxx11-abi:
enabled: << pipeline.parameters.enable-packaging >>
torch-build: << pipeline.parameters.torch-build >>
torch-build-index: << pipeline.parameters.torch-build-index >>
Expand Down

0 comments on commit ac3c596

Please sign in to comment.