From 20621c7bf052d5b8a4a1d5a151728e679d3482a5 Mon Sep 17 00:00:00 2001 From: Sing_chan <51314274+betterpig@users.noreply.github.com> Date: Wed, 13 Jul 2022 11:12:17 +0800 Subject: [PATCH] add dependency for fwd_func to avoid compiling error of random parallel compiling (#44277) --- .../api/manual/fluid_manual/forwards/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/eager/api/manual/fluid_manual/forwards/CMakeLists.txt b/paddle/fluid/eager/api/manual/fluid_manual/forwards/CMakeLists.txt index 4912663ef1..295b8d9a64 100644 --- a/paddle/fluid/eager/api/manual/fluid_manual/forwards/CMakeLists.txt +++ b/paddle/fluid/eager/api/manual/fluid_manual/forwards/CMakeLists.txt @@ -3,21 +3,24 @@ cc_library( SRCS fused_gate_attention_fwd_func.cc DEPS ${eager_deps} ${fluid_deps} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS}) -add_dependencies(fused_gate_attention_fwd_func eager_codegen) +add_dependencies(fused_gate_attention_fwd_func eager_codegen + copy_dygraph_forward_functions) cc_library( fused_feedforward_fwd_func SRCS fused_feedforward_fwd_func.cc DEPS ${eager_deps} ${fluid_deps} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS}) -add_dependencies(fused_feedforward_fwd_func eager_codegen) +add_dependencies(fused_feedforward_fwd_func eager_codegen + copy_dygraph_forward_functions) cc_library( fused_attention_fwd_func SRCS fused_attention_fwd_func.cc DEPS ${eager_deps} ${fluid_deps} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS}) -add_dependencies(fused_attention_fwd_func eager_codegen) +add_dependencies(fused_attention_fwd_func eager_codegen + copy_dygraph_forward_functions) set(fluid_manual_functions fused_gate_attention_fwd_func fused_feedforward_fwd_func -- GitLab