Skip to content

Commit 7ff0e6c

Browse files
committed
CHANNELS
1 parent ab5daed commit 7ff0e6c

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/scripts/install-torch-tensorrt.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
set -eou pipefail
33
# Source conda so it's available to the script environment
44
source ${BUILD_ENV_FILE}
5-
${CONDA_RUN} python -m pip install pyyaml
6-
# ${CONDA_RUN} ${PIP_INSTALL_TORCH} torchvision pyyaml
5+
${CONDA_RUN} ${PIP_INSTALL_TORCH} torchvision pyyaml
76
export TRT_VERSION=$(${CONDA_RUN} python -c "import versions; versions.tensorrt_version()")
87
${CONDA_RUN} python -m pip install /opt/torch-tensorrt-builds/torch_tensorrt*+${CU_VERSION}*.whl tensorrt~=${TRT_VERSION} tensorrt-bindings~=${TRT_VERSION} --extra-index-url=https://pypi.ngc.nvidia.com
98

.github/workflows/build-test.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1414
workflow_dispatch:
1515

16+
env:
17+
channel: test
18+
1619
jobs:
1720
generate-matrix:
1821
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.1
@@ -21,7 +24,7 @@ jobs:
2124
os: linux
2225
test-infra-repository: pytorch/test-infra
2326
test-infra-ref: release/2.1
24-
channel: test
27+
channel: ${{ env.channel }}
2528
with-rocm: false
2629
with-cpu: false
2730

@@ -109,15 +112,13 @@ jobs:
109112
test-infra-ref: release/2.1
110113
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
111114
pre-script: ${{ matrix.pre-script }}
115+
channel: ${{ env.channel }}
112116
script: |
113117
export USE_HOST_DEPS=1
114-
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
115118
pushd .
116119
cd tests/py/dynamo
117-
${CONDA_RUN} python -m pip install --pre pytest timm transformers parameterized expecttest --use-deprecated=legacy-resolver
118-
${CONDA_RUN} python -c "import torch; print('IMPORTED TORCH')"
119-
${CONDA_RUN} python -c "import tensorrt; print('IMPORTED TRT')"
120-
${CONDA_RUN} python -c "import torch_tensorrt; torch_tensorrt.dump_build_info()"
120+
${CONDA_RUN} python -m pip install --pre pytest-xdist timm transformers parameterized expecttest --use-deprecated=legacy-resolver
121+
${CONDA_RUN} python -m pytest --junitxml=${RUNNER_TEST_RESULTS_DIR}/dynamo_converters_test_results.xml -n 10 conversion/
121122
popd
122123
123124
# tests-py-dynamo-fe:

.github/workflows/linux-test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ on:
5353
description: 'Name to give artifacts uploaded from ${RUNNER_ARTIFACT_DIR}'
5454
default: ''
5555
type: string
56+
channel:
57+
description: "Channel to use (nightly, test, release, all)"
58+
default: ""
59+
type: string
5660

5761
jobs:
5862
test:
@@ -66,6 +70,7 @@ jobs:
6670
REF: ${{ inputs.ref }}
6771
CU_VERSION: ${{ matrix.desired_cuda }}
6872
SCRIPT: ${{ inputs.script }}
73+
CHANNEL: ${{ inputs.channel }}
6974
RUNNER_TEST_RESULTS_DIR: /tmp/test_results
7075
name: ${{ inputs.job-name }}-${{ matrix.desired_cuda }}
7176
runs-on: ${{ matrix.validation_runner }}

0 commit comments

Comments
 (0)