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

【paddle_test No.2】replace cc_test with paddle_test #60831

Merged
merged 8 commits into from
Jan 30, 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
10 changes: 9 additions & 1 deletion paddle/fluid/pir/dialect/op_generator/op_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@

# Note(Galaxy1458) The need_export_symbol_op_list is used
# for some unittests these need to export symbol op compiled with dynamic lib.
need_export_symbol_op_list = ['AbsOp', 'FullOp', 'UniformOp']
need_export_symbol_op_list = [
'AbsOp',
'FullOp',
'UniformOp',
'Conv2dOp',
'BatchNormOp',
'FetchOp',
'TransposeOp',
]

# =====================================
# String Template for h file code gen
Expand Down
11 changes: 7 additions & 4 deletions test/cpp/pir/pass/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cc_test(
pass_manager_test
SRCS pass_manager_test.cc
DEPS pir op_dialect_vjp phi common gtest)
paddle_test(pass_manager_test SRCS pass_manager_test.cc DEPS common)

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(pass_manager_test)
endif()