Skip to content

Commit 91f4966

Browse files
committed
1 parent 0d8253d commit 91f4966

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

test/cpp/inference/api/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

paddle/fluid/inference/tests/api/trt_rebind_stream_test.cc renamed to test/cpp/inference/api/trt_rebind_stream_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2121
namespace paddle {
2222
namespace inference {

0 commit comments

Comments
 (0)