@@ -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
@@ -625,7 +626,7 @@ jobs:
625
626
command : |
626
627
cd ~/project/py/
627
628
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
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,15 @@ jobs:
637
638
name : Build cxx11-abi tarball
638
639
command : |
639
640
set -e
640
- bazel build //:libtorchtrt -c opt
641
+ cd ~/project/py/
642
+ bazel build //:libtorchtrt -c opt --noshow_progress
641
643
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__)")
644
+ TORCHTRT_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
645
+ TRT_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
646
+ CUDNN_VERSION=$(cd ~/project/py/ torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
645
647
pip3 install -r ~/project/py/requirements.txt
646
648
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
649
+ 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
650
- run :
649
651
name : Collect packages
650
652
command : |
@@ -720,14 +722,15 @@ jobs:
720
722
name : Build cxx11-abi tarball
721
723
command : |
722
724
set -e
723
- bazel build //:libtorchtrt -c opt
725
+ cd ~/project/py/
726
+ bazel build //:libtorchtrt -c opt --noshow_progress
724
727
CUDA_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cuda_version__;print(__cuda_version__)")
725
728
TORCHTRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __version__;print(__version__)")
726
729
TRT_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __tensorrt_version__;print(__tensorrt_version__)")
727
730
CUDNN_VERSION=$(cd torch_tensorrt && python3 -c "from _version import __cudnn_version__;print(__cudnn_version__)")
728
731
pip3 install -r ~/project/py/requirements.txt
729
732
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
733
+ 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
734
- run :
732
735
name : Move to release dir
733
736
command : |
@@ -928,19 +931,19 @@ workflows:
928
931
enabled : << pipeline.parameters.packaging-enabled >>
929
932
torch-build : << pipeline.parameters.torch-release-build >>
930
933
torch-build-index : << pipeline.parameters.torch-release-build-index >>
931
- requires :
932
- - test-core-cpp-x86_64-pyt-release
933
- - test-py-ts-x86_64-pyt-release
934
- - test-py-fx-x86_64-pyt-release
934
+ # requires:
935
+ # - test-core-cpp-x86_64-pyt-release
936
+ # - test-py-ts-x86_64-pyt-release
937
+ # - test-py-fx-x86_64-pyt-release
935
938
936
939
- package-jetson :
937
940
name : package-release-aarch64-jetson
938
941
enabled : << pipeline.parameters.packaging-enabled >>
939
942
torch-build : << pipeline.parameters.torch-jetson-build >>
940
943
jetpack-version : << pipeline.parameters.jetpack-version >>
941
944
python-version : 3.8.10
942
- requires :
943
- - build-aarch64-pyt-jetson
945
+ # requires:
946
+ # - build-aarch64-pyt-jetson
944
947
945
948
on-push :
946
949
jobs :
0 commit comments