File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1027,6 +1027,14 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST)
10271027 else ()
10281028 target_link_libraries (test_analyzer_capi_exp_xpu paddle_inference_c)
10291029 endif ()
1030+ inference_analysis_test(
1031+ trt_rebind_stream_test
1032+ SRCS
1033+ trt_rebind_stream_test.cc
1034+ EXTRA_DEPS
1035+ paddle_inference_shared
1036+ ARGS
1037+ --infer_model=${TRT_MODEL_INSTALL_DIR} /trt_inference_test_models)
10301038
10311039 set (TRT_MODEL_QUANT_RESNET_DIR
10321040 "${INFERENCE_DEMO_INSTALL_DIR} /small_quant_model" )
@@ -1378,6 +1386,8 @@ if(WITH_TESTING AND WITH_INFERENCE_API_TEST)
13781386 endif ()
13791387 if (WITH_GPU AND TENSORRT_FOUND)
13801388 set_tests_properties (trt_mobilenet_test PROPERTIES TIMEOUT 120)
1389+ set_tests_properties (trt_rebind_stream_test PROPERTIES TIMEOUT 120 LABELS
1390+ "RUN_TYPE=EXCLUSIVE" )
13811391 if (WITH_MKLDNN)
13821392 set_tests_properties (test_analyzer_bfloat16_resnet50 PROPERTIES TIMEOUT
13831393 120)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ limitations under the License. */
1616#include < gtest/gtest.h>
1717
1818#include " gflags/gflags.h"
19- #include " paddle/fluid /inference/tests/ api/trt_test_helper .h"
19+ #include " test/cpp /inference/api/tester_helper .h"
2020
2121namespace paddle {
2222namespace inference {
You can’t perform that action at this time.
0 commit comments