Browse Source

!1530 Add dump_task_src in ge_executor.

From: @zhao_zhixuan
Reviewed-by: @wqtshg,@ji_chen
Signed-off-by: @ji_chen
tags/v1.3.0
mindspore-ci-bot Gitee 4 years ago
parent
commit
7f0909e514
4 changed files with 10 additions and 4 deletions
  1. +1
    -0
      ge/CMakeLists.txt
  2. +7
    -2
      ge/executor/CMakeLists.txt
  3. +1
    -1
      metadef
  4. +1
    -1
      parser

+ 1
- 0
ge/CMakeLists.txt View File

@@ -11,6 +11,7 @@ elseif (ENABLE_D)
endif () endif ()


set(PROTO_LIST set(PROTO_LIST
"${METADEF_DIR}/proto/dump_task.proto"
"${METADEF_DIR}/proto/fusion_model.proto" "${METADEF_DIR}/proto/fusion_model.proto"
"${GE_CODE_DIR}/ge/proto/optimizer_priority.proto" "${GE_CODE_DIR}/ge/proto/optimizer_priority.proto"
) )


+ 7
- 2
ge/executor/CMakeLists.txt View File

@@ -4,11 +4,16 @@ set(PROTO_LIST
"${METADEF_DIR}/proto/insert_op.proto" "${METADEF_DIR}/proto/insert_op.proto"
"${METADEF_DIR}/proto/task.proto" "${METADEF_DIR}/proto/task.proto"
"${METADEF_DIR}/proto/op_mapping_info.proto" "${METADEF_DIR}/proto/op_mapping_info.proto"
)

set(DUMP_PROTO_LIST
"${METADEF_DIR}/proto/dump_task.proto" "${METADEF_DIR}/proto/dump_task.proto"
) )


protobuf_generate(ge PROTO_SRCS PROTO_HDRS ${PROTO_LIST}) protobuf_generate(ge PROTO_SRCS PROTO_HDRS ${PROTO_LIST})
protobuf_generate(ge_static PROTO_STATIC_SRCS PROTO_STATIC_HDRS ${PROTO_LIST}) protobuf_generate(ge_static PROTO_STATIC_SRCS PROTO_STATIC_HDRS ${PROTO_LIST})
protobuf_generate(ge DUMP_PROTO_SRCS DUMP_PROTO_HDRS ${DUMP_PROTO_LIST})
protobuf_generate(ge_static DUMP_PROTO_STATIC_SRCS DUMP_PROTO_STATIC_HDRS ${DUMP_PROTO_LIST})


set(SRC_LIST set(SRC_LIST
"ge_executor.cc" "ge_executor.cc"
@@ -164,7 +169,7 @@ set(SRC_LIST
) )


######## libge_executor.a ######## ######## libge_executor.a ########
add_library(ge_executor STATIC ${SRC_LIST} ${PROTO_STATIC_HDRS})
add_library(ge_executor STATIC ${SRC_LIST} ${PROTO_STATIC_HDRS} ${DUMP_PROTO_STATIC_SRCS})


target_compile_options(ge_executor PRIVATE target_compile_options(ge_executor PRIVATE
$<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations -fno-common> $<$<OR:$<STREQUAL:${TARGET_SYSTEM_NAME},Linux>,$<STREQUAL:${TARGET_SYSTEM_NAME},Android>>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations -fno-common>
@@ -212,7 +217,7 @@ target_link_libraries(ge_executor PRIVATE
) )


######## libge_executor.so ######## ######## libge_executor.so ########
add_library(ge_executor_shared SHARED ${SRC_LIST} ${PROTO_HDRS})
add_library(ge_executor_shared SHARED ${SRC_LIST} ${PROTO_HDRS} ${DUMP_PROTO_SRCS})


target_compile_options(ge_executor_shared PRIVATE target_compile_options(ge_executor_shared PRIVATE
-fno-common -fno-common


+ 1
- 1
metadef

@@ -1 +1 @@
Subproject commit 72984c62e434da09f8ea7d7a4fd4a365e0b6f42c
Subproject commit 09c002f7a564fa9f763292189cbb7156a63f7df6

+ 1
- 1
parser

@@ -1 +1 @@
Subproject commit 88c66a63b382bb54b338859e44b6321da979b22e
Subproject commit 6f894277aac964e1541800d7e04efe77d4433720

Loading…
Cancel
Save