|
|
|
@@ -482,7 +482,7 @@ set(GRAPH_PASS_COMMON_SRC_FILES |
|
|
|
"${GE_CODE_DIR}/ge/graph/passes/compile_nodes_pass.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/common/transop_util.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/passes/flow_ctrl_pass.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/optimize/optimizer/allreduce_fusion_pass.cc" |
|
|
|
#"${GE_CODE_DIR}/ge/graph/optimize/optimizer/allreduce_fusion_pass.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/passes/folding_pass.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/passes/variable_op_pass.cc" |
|
|
|
"${GE_CODE_DIR}/ge/graph/passes/transpose_transdata_pass.cc" |
|
|
|
@@ -670,13 +670,13 @@ set(MULTI_PARTS_TEST_FILES |
|
|
|
) |
|
|
|
|
|
|
|
set(SINGLE_OP_TEST_FILES |
|
|
|
"single_op/single_op_model_unittest.cc" |
|
|
|
#"single_op/single_op_model_unittest.cc" |
|
|
|
"single_op/single_op_manager_unittest.cc" |
|
|
|
"single_op/stream_resource_unittest.cc" |
|
|
|
) |
|
|
|
|
|
|
|
set(PROFILING_MNG_TEST_FILES |
|
|
|
"profiling/ge_profiling_manager_unittest.cc" |
|
|
|
#"profiling/ge_profiling_manager_unittest.cc" |
|
|
|
) |
|
|
|
|
|
|
|
set(OTHERS_TEST_FILES |
|
|
|
@@ -843,13 +843,17 @@ add_executable(ut_libge_multiparts_utest |
|
|
|
${MULTI_PARTS_TEST_FILES} |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_options(ut_libge_multiparts_utest PRIVATE |
|
|
|
-g --coverage -fprofile-arcs -ftest-coverage |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_definitions(ut_libge_multiparts_utest PRIVATE |
|
|
|
google=ascend_private |
|
|
|
) |
|
|
|
|
|
|
|
target_link_libraries(ut_libge_multiparts_utest |
|
|
|
$<BUILD_INTERFACE:intf_pub> |
|
|
|
ge_build_common ge_load_common ge_execute_common ge_optimize_common ge_partition_common ge_prepare_common ge_single_op ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl |
|
|
|
ge_build_common ge_load_common ge_execute_common ge_optimize_common ge_partition_common ge_prepare_common ge_single_op ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl -lgcov |
|
|
|
) |
|
|
|
|
|
|
|
# libge_others_utest |
|
|
|
@@ -860,9 +864,14 @@ add_executable(ut_libge_others_utest |
|
|
|
${EXECUTE_TEST_FILES} |
|
|
|
${OTHERS_TEST_FILES} |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_options(ut_libge_others_utest PRIVATE |
|
|
|
-g --coverage -fprofile-arcs -ftest-coverage |
|
|
|
) |
|
|
|
|
|
|
|
target_link_libraries(ut_libge_others_utest |
|
|
|
$<BUILD_INTERFACE:intf_pub> |
|
|
|
ge_load_common ge_execute_common ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl |
|
|
|
ge_load_common ge_execute_common ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl -lgcov |
|
|
|
) |
|
|
|
|
|
|
|
# libge_kernel_utest |
|
|
|
@@ -872,9 +881,14 @@ add_executable(ut_libge_kernel_utest |
|
|
|
${KERNEL_TEST_FILES} |
|
|
|
${KERNEL_SRC_FILES} |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_options(ut_libge_kernel_utest PRIVATE |
|
|
|
-g --coverage -fprofile-arcs -ftest-coverage |
|
|
|
) |
|
|
|
|
|
|
|
target_link_libraries(ut_libge_kernel_utest |
|
|
|
$<BUILD_INTERFACE:intf_pub> |
|
|
|
ge_load_common ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl |
|
|
|
ge_load_common ge_ut_common gtest gtest_main ascend_protobuf ${COMMON_SHARED_LIBRARIES} json -lrt -ldl -lgcov |
|
|
|
) |
|
|
|
|
|
|
|
# libge_distinct_load_utest |
|
|
|
@@ -886,6 +900,10 @@ add_executable(ut_libge_distinct_load_utest |
|
|
|
${PROFILING_MNG_TEST_FILES} |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_options(ut_libge_distinct_load_utest PRIVATE |
|
|
|
-g --coverage -fprofile-arcs -ftest-coverage |
|
|
|
) |
|
|
|
|
|
|
|
target_compile_definitions(ut_libge_distinct_load_utest PRIVATE |
|
|
|
google=ascend_private |
|
|
|
) |
|
|
|
@@ -896,5 +914,5 @@ target_link_libraries(ut_libge_distinct_load_utest |
|
|
|
ge_execute_common ge_ut_common_format ge_load_common |
|
|
|
ge_single_op ge_prepare_common |
|
|
|
ge_optimize_common ge_build_common ge_partition_common ge_ut_common |
|
|
|
gtest gtest_main ascend_protobuf json c_sec -lrt -ldl -lpthread |
|
|
|
gtest gtest_main ascend_protobuf json c_sec -lrt -ldl -lpthread -lgcov |
|
|
|
) |