Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lanluo-nvidia committed Jun 17, 2024
1 parent 8824afb commit ac8dce9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/scripts/build-linux-release-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,16 @@ libtorchtrt() {
PY_NAME=python${PYTHON_VERSION}
PY_DIR=/opt/python/${PY_BUILD_CODE}

python -m pip install -r ${PROJECT_DIR}/py/requirements.txt

TORCH_VERSION=$(python -c "from torch import __version__;print(__version__.split('+')[0])")
#python -m pip install -r ${PROJECT_DIR}/py/requirements.txt

if [[ '${pre_cxx11_abi}' == 'true' ]]; then
bazel build //:libtorchtrt --config pre_cxx11_abi --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
cp ${PROJECT_DIR}/bazel-bin/libtorchtrt.tar.gz \
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-pre-cxx11-abi-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${TORCH_VERSION}-x86_64-linux.tar.gz
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-pre-cxx11-abi-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${PYTORCH_VERSION}-x86_64-linux.tar.gz
else
bazel build //:libtorchtrt --platforms //toolchains:ci_rhel_x86_64_linux -c opt --noshow_progress
cp ${PROJECT_DIR}/bazel-bin/libtorchtrt.tar.gz \
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${TORCH_VERSION}-x86_64-linux.tar.gz
${PROJECT_DIR}/dist/libtorchtrt-${TORCHTRT_VERSION}-tensorrt${TRT_VERSION}-cuda${CU_VERSION}-libtorch${PYTORCH_VERSION}-x86_64-linux.tar.gz
fi
}

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/linux-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ jobs:
with:
github-secret: ${{ github.token }}
- uses: ./test-infra/.github/actions/set-channel
- name: Set PYTORCH_VERSION
if: ${{ env.CHANNEL == 'test' }}
run: |
# When building RC, set the version to be the current candidate version,
# otherwise, leave it alone so nightly will pick up the latest
echo "PYTORCH_VERSION=${{ matrix.stable_version }}" >> "${GITHUB_ENV}"
- uses: ./test-infra/.github/actions/setup-binary-builds
with:
repository: ${{ inputs.repository }}
Expand Down

0 comments on commit ac8dce9

Please sign in to comment.