File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -55,18 +55,16 @@ libtorchtrt() {
55
55
PY_NAME=python${PYTHON_VERSION}
56
56
PY_DIR=/opt/python/${PY_BUILD_CODE}
57
57
58
- python -m pip install -r ${PROJECT_DIR} /py/requirements.txt
59
-
60
- TORCH_VERSION=$( python -c " from torch import __version__;print(__version__.split('+')[0])" )
58
+ # python -m pip install -r ${PROJECT_DIR}/py/requirements.txt
61
59
62
60
if [[ ' ${pre_cxx11_abi}' == ' true' ]]; then
63
61
bazel build //:libtorchtrt --config pre_cxx11_abi --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
64
62
cp ${PROJECT_DIR} /bazel-bin/libtorchtrt.tar.gz \
65
- ${PROJECT_DIR} /dist/libtorchtrt-${TORCHTRT_VERSION} -pre-cxx11-abi-tensorrt${TRT_VERSION} -cuda${CU_VERSION} -libtorch${TORCH_VERSION } -x86_64-linux.tar.gz
63
+ ${PROJECT_DIR} /dist/libtorchtrt-${TORCHTRT_VERSION} -pre-cxx11-abi-tensorrt${TRT_VERSION} -cuda${CU_VERSION} -libtorch${PYTORCH_VERSION } -x86_64-linux.tar.gz
66
64
else
67
65
bazel build //:libtorchtrt --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
68
66
cp ${PROJECT_DIR} /bazel-bin/libtorchtrt.tar.gz \
69
- ${PROJECT_DIR} /dist/libtorchtrt-${TORCHTRT_VERSION} -tensorrt${TRT_VERSION} -cuda${CU_VERSION} -libtorch${TORCH_VERSION } -x86_64-linux.tar.gz
67
+ ${PROJECT_DIR} /dist/libtorchtrt-${TORCHTRT_VERSION} -tensorrt${TRT_VERSION} -cuda${CU_VERSION} -libtorch${PYTORCH_VERSION } -x86_64-linux.tar.gz
70
68
fi
71
69
}
72
70
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ jobs:
100
100
with :
101
101
github-secret : ${{ github.token }}
102
102
- uses : ./test-infra/.github/actions/set-channel
103
+ - name : Set PYTORCH_VERSION
104
+ if : ${{ env.CHANNEL == 'test' }}
105
+ run : |
106
+ # When building RC, set the version to be the current candidate version,
107
+ # otherwise, leave it alone so nightly will pick up the latest
108
+ echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
103
109
- uses : ./test-infra/.github/actions/setup-binary-builds
104
110
with :
105
111
repository : ${{ inputs.repository }}
You can’t perform that action at this time.
0 commit comments