Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inference test compile bug #60767

Merged
merged 7 commits into from
Jan 15, 2024
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
3 changes: 1 addition & 2 deletions paddle/fluid/inference/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cc_library(
benchmark
SRCS benchmark.cc
DEPS enforce common)
paddle_test(test_benchmark SRCS benchmark_tester.cc DEPS benchmark)

cc_library(
infer_io_utils
SRCS io_utils.cc
Expand All @@ -13,7 +13,6 @@ cc_library(
DEPS proto_desc enforce common)

cc_library(table_printer SRCS table_printer.cc)
paddle_test(test_table_printer SRCS table_printer_tester.cc DEPS pir)

proto_library(shape_range_info_proto SRCS shape_range_info.proto)

Expand Down
6 changes: 6 additions & 0 deletions test/cpp/fluid/inference/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ if(WITH_TESTING)
if(NOT APPLE)
inference_base_test(infer_io_utils_tester SRCS io_utils_tester.cc DEPS
paddle_inference_shared common)
inference_base_test(test_benchmark SRCS benchmark_tester.cc DEPS
paddle_inference_shared benchmark)
inference_base_test(test_table_printer SRCS table_printer_tester.cc DEPS
paddle_inference_shared pir)
endif()
endif()

if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(infer_io_utils_tester)
copy_onnx(test_benchmark)
copy_onnx(test_table_printer)
endif()