67
67
smoke-test-script : ${{ matrix.smoke-test-script }}
68
68
trigger-event : ${{ github.event_name }}
69
69
70
- tests-py-torchscript-fe :
71
- name : Test torchscript frontend [Python ]
70
+ tests-cpp-core-conversion :
71
+ name : Test core conversion[CPP ]
72
72
needs : [generate-tensorrt-matrix, build]
73
73
strategy :
74
74
fail-fast : false
@@ -81,55 +81,88 @@ jobs:
81
81
smoke-test-script : packaging/smoke_test_script.sh
82
82
uses : ./.github/workflows/linux-test.yml
83
83
with :
84
- job-name : tests-py-torchscript-fe
84
+ job-name : tests-cpp-core-conversion
85
85
repository : " pytorch/tensorrt"
86
86
ref : " "
87
87
test-infra-repository : pytorch/test-infra
88
88
test-infra-ref : main
89
89
build-matrix : ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
90
90
pre-script : ${{ matrix.pre-script }}
91
91
script : |
92
+ set -x
92
93
export USE_HOST_DEPS=1
93
- export CI_BUILD=1
94
- export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
95
- pushd .
96
- cd tests/modules
97
- python hub.py
98
- popd
99
- pushd .
100
- cd tests/py/ts
101
- python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
102
- python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
103
- python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
104
- popd
94
+ python -m pip show torch_tensorrt
95
+ location=$(python -m pip show torch_tensorrt | grep Location | sed "s/Location: //g")
96
+ ls -lart $location | grep torch_tensorrt
97
+ echo $LD_LIBRARY_PATH
98
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${location}/torch/lib:/usr/local/cuda/lib64:/usr/lib64
99
+ echo $LD_LIBRARY_PATH
100
+ bazel test //tests/core/conversion:conversion_tests --compilation_mode=opt \
101
+ --test_output=summary --config use_precompiled_torchtrt --config pre_cxx11_abi --sandbox_debug --verbose_failures --cxxopt='-std=c++17'
105
102
106
- tests-py-dynamo-core :
107
- name : Test dynamo core [Python]
108
- needs : [generate-tensorrt-matrix, build]
109
- strategy :
110
- fail-fast : false
111
- matrix :
112
- include :
113
- - repository : pytorch/tensorrt
114
- package-name : torch_tensorrt
115
- pre-script : packaging/pre_build_script.sh
116
- post-script : packaging/post_build_script.sh
117
- smoke-test-script : packaging/smoke_test_script.sh
118
- uses : ./.github/workflows/linux-test.yml
119
- with :
120
- job-name : tests-py-dynamo-core
121
- repository : " pytorch/tensorrt"
122
- ref : " "
123
- test-infra-repository : pytorch/test-infra
124
- test-infra-ref : main
125
- build-matrix : ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
126
- pre-script : ${{ matrix.pre-script }}
127
- script : |
128
- export USE_HOST_DEPS=1
129
- export CI_BUILD=1
130
- pushd .
131
- cd tests/py/dynamo
132
- python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/test_000_*
133
- python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
134
- python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
135
- popd
103
+ # tests-py-torchscript-fe:
104
+ # name: Test torchscript frontend [Python]
105
+ # needs: [generate-tensorrt-matrix, build]
106
+ # strategy:
107
+ # fail-fast: false
108
+ # matrix:
109
+ # include:
110
+ # - repository: pytorch/tensorrt
111
+ # package-name: torch_tensorrt
112
+ # pre-script: packaging/pre_build_script.sh
113
+ # post-script: packaging/post_build_script.sh
114
+ # smoke-test-script: packaging/smoke_test_script.sh
115
+ # uses: ./.github/workflows/linux-test.yml
116
+ # with:
117
+ # job-name: tests-py-torchscript-fe
118
+ # repository: "pytorch/tensorrt"
119
+ # ref: ""
120
+ # test-infra-repository: pytorch/test-infra
121
+ # test-infra-ref: main
122
+ # build-matrix: ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
123
+ # pre-script: ${{ matrix.pre-script }}
124
+ # script: |
125
+ # export USE_HOST_DEPS=1
126
+ # export CI_BUILD=1
127
+ # export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
128
+ # pushd .
129
+ # cd tests/modules
130
+ # python hub.py
131
+ # popd
132
+ # pushd .
133
+ # cd tests/py/ts
134
+ # python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
135
+ # python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
136
+ # python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
137
+ # popd
138
+
139
+ # tests-py-dynamo-core:
140
+ # name: Test dynamo core [Python]
141
+ # needs: [generate-tensorrt-matrix, build]
142
+ # strategy:
143
+ # fail-fast: false
144
+ # matrix:
145
+ # include:
146
+ # - repository: pytorch/tensorrt
147
+ # package-name: torch_tensorrt
148
+ # pre-script: packaging/pre_build_script.sh
149
+ # post-script: packaging/post_build_script.sh
150
+ # smoke-test-script: packaging/smoke_test_script.sh
151
+ # uses: ./.github/workflows/linux-test.yml
152
+ # with:
153
+ # job-name: tests-py-dynamo-core
154
+ # repository: "pytorch/tensorrt"
155
+ # ref: ""
156
+ # test-infra-repository: pytorch/test-infra
157
+ # test-infra-ref: main
158
+ # build-matrix: ${{ needs.generate-tensorrt-matrix.outputs.matrix }}
159
+ # pre-script: ${{ matrix.pre-script }}
160
+ # script: |
161
+ # export USE_HOST_DEPS=1
162
+ # export CI_BUILD=1
163
+ # pushd .
164
+ # cd tests/py/dynamo
165
+ # python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_runtime_test_results.xml runtime/test_000_*
166
+ # python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_partitioning_test_results.xml partitioning/
167
+ # python -m pytest -ra -n 4 --junitxml=${RUNNER_TEST_RESULTS_DIR}/tests_py_dynamo_core_lowering_test_results.xml lowering/
168
+ # popd
0 commit comments