@@ -162,8 +162,7 @@ commands:
162
162
- run :
163
163
name : Build setup
164
164
command : |
165
- mv toolchains/ci_workspaces/WORKSPACE.<< parameters.platform >> WORKSPACE
166
- cd py
165
+ mv ~/project/toolchains/ci_workspaces/WORKSPACE.<< parameters.platform >> ~/project/WORKSPACE
167
166
python3 -m pip install wheel setuptools
168
167
python3 -m pip install pybind11==2.6.2
169
168
- when :
@@ -172,6 +171,7 @@ commands:
172
171
- run :
173
172
name : Build torch-tensorrt python release package
174
173
command : |
174
+ cd ~/project/py
175
175
python3 setup.py bdist_wheel --use-cxx11-abi --release
176
176
python3 setup.py install --use-cxx11-abi --release
177
177
mkdir -p /tmp/dist/builds
@@ -182,6 +182,7 @@ commands:
182
182
- run :
183
183
name : Build torch-tensorrt python package
184
184
command : |
185
+ cd ~/project/py
185
186
python3 setup.py bdist_wheel --use-cxx11-abi
186
187
python3 setup.py install --use-cxx11-abi
187
188
mkdir -p /tmp/dist/builds
@@ -624,8 +625,8 @@ jobs:
624
625
name : Build Python packages and pre-cxx11-abi tarball
625
626
command : |
626
627
cd ~/project/py/
627
- cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release ~/project/WORKSPACE
628
- docker run -it --rm -v$(pwd)/.. :/workspace/Torch-TensorRT torch_tensorrt_release_env /bin/bash /workspace/Torch-TensorRT /py/ci/build_whl.sh
628
+ cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel ~/project/WORKSPACE
629
+ docker run -it --rm -v ~/project :/workspace/project torch_tensorrt_release_env /bin/bash /workspace/project /py/ci/build_whl.sh
629
630
- create-env :
630
631
os : " ubuntu2004"
631
632
platform : " x86_64"
@@ -637,14 +638,17 @@ jobs:
637
638
name : Build cxx11-abi tarball
638
639
command : |
639
640
set -e
640
- bazel build //:libtorchtrt -c opt
641
+ cd ~/project/
642
+ cp ~/project/toolchains/ci_workspaces/WORKSPACE.x86_64.release.ubuntu ~/project/WORKSPACE
643
+ bazel build //:libtorchtrt -c opt --noshow_progress
644
+ sudo chown -R $(whoami) ~/project/py
641
645
CUDA_VERSION=$(cd ~/project/py/torch_tensorrt && python3 -c "from _version import __cuda_version__;print(__cuda_version__)")
642
- TORCHTRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
643
- TRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
644
- CUDNN_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
646
+ TORCHTRT_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
647
+ TRT_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
648
+ CUDNN_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
645
649
pip3 install -r ~/project/py/requirements.txt
646
650
TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
647
- 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
651
+ 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
648
652
- run :
649
653
name : Collect packages
650
654
command : |
@@ -720,14 +724,15 @@ jobs:
720
724
name : Build cxx11-abi tarball
721
725
command : |
722
726
set -e
723
- bazel build //:libtorchtrt -c opt
727
+ cd ~/project/py/
728
+ bazel build //:libtorchtrt -c opt --noshow_progress
724
729
CUDA_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cuda_version__;print(__cuda_version__)")
725
730
TORCHTRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
726
731
TRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
727
732
CUDNN_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
728
733
pip3 install -r ~/project/py/requirements.txt
729
734
TORCH_VERSION=$(python3 -c "from torch import __version__;print(__version__.split('+')[0])")
730
- 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
735
+ 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}-aarch64-linux-jp<< parameters.jetpack-version >> .tar.gz
731
736
- run :
732
737
name : Move to release dir
733
738
command : |
@@ -790,7 +795,7 @@ parameters:
790
795
type : string
791
796
default : " 8.4.1.5"
792
797
793
- packaging-enabled :
798
+ enable-packaging :
794
799
type : boolean
795
800
default : false
796
801
@@ -881,7 +886,7 @@ workflows:
881
886
- build-x86_64-pyt-nightly
882
887
883
888
release :
884
- when : << pipeline.parameters.packaging-enabled >>
889
+ when : << pipeline.parameters.enable-packaging >>
885
890
jobs :
886
891
- build-aarch64-pyt-jetson :
887
892
torch-build : << pipeline.parameters.torch-jetson-build >>
@@ -925,7 +930,7 @@ workflows:
925
930
926
931
- package-x86_64 :
927
932
name : package-release-x86_64
928
- enabled : << pipeline.parameters.packaging-enabled >>
933
+ enabled : << pipeline.parameters.enable-packaging >>
929
934
torch-build : << pipeline.parameters.torch-release-build >>
930
935
torch-build-index : << pipeline.parameters.torch-release-build-index >>
931
936
requires :
@@ -935,7 +940,7 @@ workflows:
935
940
936
941
- package-jetson :
937
942
name : package-release-aarch64-jetson
938
- enabled : << pipeline.parameters.packaging-enabled >>
943
+ enabled : << pipeline.parameters.enable-packaging >>
939
944
torch-build : << pipeline.parameters.torch-jetson-build >>
940
945
jetpack-version : << pipeline.parameters.jetpack-version >>
941
946
python-version : 3.8.10
0 commit comments