Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/build-test-linux-x86_64_rtx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,44 +77,6 @@ jobs:
architecture: "x86_64"
use-rtx: true

tests-py-torchscript-fe:
name: Test torchscript frontend [Python]
needs: [filter-matrix, build]
strategy:
fail-fast: false
matrix:
include:
- repository: pytorch/tensorrt
package-name: torch_tensorrt
pre-script: packaging/pre_build_script.sh
post-script: packaging/post_build_script.sh
smoke-test-script: packaging/smoke_test_script.sh
uses: ./.github/workflows/linux-test.yml
with:
job-name: tests-py-torchscript-fe
repository: "pytorch/tensorrt"
ref: ""
test-infra-repository: pytorch/test-infra
test-infra-ref: main
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
pre-script: ${{ matrix.pre-script }}
use-rtx: true
script: |
set -euo pipefail
export USE_HOST_DEPS=1
export CI_BUILD=1
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
pushd .
cd tests/modules
python hub.py
popd
pushd .
cd tests/py/ts
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
popd

tests-py-dynamo-converters:
name: Test dynamo converters [Python]
needs: [filter-matrix, build]
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/build-test-windows_rtx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,40 +87,6 @@ jobs:
use-rtx: true
timeout: 120

tests-py-torchscript-fe:
name: Test torchscript frontend [Python]
needs: [substitute-runner, build]
strategy:
fail-fast: false
matrix:
include:
- repository: pytorch/tensorrt
package-name: torch_tensorrt
uses: ./.github/workflows/windows-test.yml
with:
job-name: tests-py-torchscript-fe
repository: ${{ matrix.repository }}
ref: ""
test-infra-repository: pytorch/test-infra
test-infra-ref: main
build-matrix: ${{ needs.substitute-runner.outputs.matrix }}
pre-script: packaging/driver_upgrade.bat
use-rtx: true
script: |
set -euo pipefail
export USE_HOST_DEPS=1
export CI_BUILD=1
pushd .
cd tests/modules
python hub.py
popd
pushd .
cd tests/py/ts
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
popd

tests-py-dynamo-converters:
name: Test dynamo converters [Python]
needs: [substitute-runner, build]
Expand Down
23 changes: 21 additions & 2 deletions tests/core/runtime/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,27 @@ package(default_visibility = ["//visibility:public"])
config_setting(
name = "use_torch_whl",
flag_values = {
"//toolchains/dep_src:torch": "whl"
"//toolchains/dep_src:torch": "whl",
},
)

config_setting(
name = "sbsa",
constraint_values = [
"@platforms//cpu:aarch64",
],
flag_values = {
"//toolchains/dep_collection:compute_libs": "default",
},
)

config_setting(
name = "jetpack",
constraint_values = [
"@platforms//cpu:aarch64",
],
flag_values = {
"//toolchains/dep_collection:compute_libs": "jetpack",
},
)

Expand All @@ -16,7 +36,6 @@ config_setting(
],
)


runtime_test(
name = "test_multi_device_safe_mode",
)
Expand Down
21 changes: 21 additions & 0 deletions tests/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ config_setting(
},
)

config_setting(
name = "rtx_x86_64",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
flag_values = {
"//toolchains/dep_collection:compute_libs": "rtx",
},
)

config_setting(
name = "rtx_win",
constraint_values = [
"@platforms//os:windows",
],
flag_values = {
"//toolchains/dep_collection:compute_libs": "rtx",
},
)

cc_library(
name = "util",
srcs = [
Expand Down
Loading