Skip to content

Commit 67cbaf3

Browse files
committed
test
1 parent 9c0ca36 commit 67cbaf3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build-tensorrt-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
TENSORRT_VERSION: ${{ matrix.tensorrt.version }}
9393
TENSORRT_URLS: ${{ matrix.tensorrt.urls }}
9494
TENSORRT_SHA256: ${{ matrix.tensorrt.sha256 }}
95-
name: build_tensorrt${{ matrix.tensorrt.version }}_py${{matrix.python_version}}_cu${{matrix.desired_cuda}}
95+
name: build_tensorrt${{ matrix.tensorrt.version }}_py${{matrix.python_version}}_${{matrix.desired_cuda}}
9696
runs-on: ${{ matrix.validation_runner }}
9797
container:
9898
image: ${{ matrix.container_image }}
@@ -213,7 +213,7 @@ jobs:
213213
continue-on-error: true
214214
uses: actions/upload-artifact@v3
215215
with:
216-
name: ${{ env.ARTIFACT_NAME }}
216+
name: torch_tensorrt_${{env.TENSORRT_VERSION}}_py${{env.PYTHON_VERSION}}_${{env.CU_VERSION}}
217217
path: ${{ inputs.repository }}/dist
218218

219219
concurrency:

packaging/pre_build_script.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ pip install --force-reinstall --pre ${TORCH_TORCHVISION} --index-url ${INDEX_URL
2121
export TORCH_BUILD_NUMBER=$(python -c "import torch, urllib.parse as ul; print(ul.quote_plus(torch.__version__))")
2222
export TORCH_INSTALL_PATH=$(python -c "import torch, os; print(os.path.dirname(torch.__file__))")
2323

24+
# replace current tensorrt version to the upgraded tensorrt version
25+
current_version="10.3.0"
26+
sed -i -e "s/tensorrt-cu12==${current_version}/tensorrt-cu12==${TENSORRT_VERSION}/g" \
27+
-e "s/tensorrt-cu12-bindings==${current_version}/tensorrt-cu12-bindings==${TENSORRT_VERSION}/g" \
28+
-e "s/tensorrt-cu12-libs==${current_version}/tensorrt-cu12-libs==${TENSORRT_VERSION}/g" \
29+
pyproject.toml
30+
2431
if [[ "${CU_VERSION::4}" < "cu12" ]]; then
2532
# replace dependencies from tensorrt-cu12-bindings/libs to tensorrt-cu11-bindings/libs
2633
sed -i -e "s/tensorrt-cu12==/tensorrt-${CU_VERSION::4}==/g" \

0 commit comments

Comments
 (0)