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

Add some ops to static build list #55727

Merged
merged 2 commits into from
Jul 30, 2023
Merged
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
12 changes: 12 additions & 0 deletions test/legacy_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1267,12 +1267,16 @@ set(STATIC_BUILD_TESTS
test_adagrad_op
test_adamw_op
test_arg_min_max_op
test_assign_pos_op
test_bincount_op
test_c_embedding_op
test_decayed_adagrad_op
test_decoupled_py_reader
test_eig_op
test_eigh_op
test_fake_quantize_op
test_fetch_lod_tensor_array
test_ftrl_op
test_fused_attention_op
test_fused_attention_op_api
test_fuse_bn_act_pass
Expand All @@ -1281,14 +1285,18 @@ set(STATIC_BUILD_TESTS
test_imperative_optimizer
test_lamb_op
test_layer_norm_op
test_limit_by_capacity_op
test_lookup_table_bf16_op
test_lookup_table_v2_op
test_matmul_op
test_matmul_v2_op
test_merged_adam_op
test_momentum_op
test_nce
test_number_count_op
test_paddle_save_load_binary
test_prune_gate_by_capacity_op
test_random_routing_op
test_reduce_op
test_segment_ops
test_sparse_momentum_op
Expand All @@ -1311,6 +1319,10 @@ if(NOT WITH_GPU)
list(REMOVE_ITEM STATIC_BUILD_TESTS test_fused_feedforward_op_pass)
endif()

if(((NOT WITH_ROCM) AND (NOT WITH_GPU)) OR WIN32)
list(REMOVE_ITEM STATIC_BUILD_TESTS test_c_embedding_op)
endif()

foreach(STATIC_BUILD_TEST ${STATIC_BUILD_TESTS})
py_test_modules(
${STATIC_BUILD_TEST}_static_build MODULES ${STATIC_BUILD_TEST} ENVS
Expand Down