From c938b65a7131d62b9b73fee5c226688fb65de163 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 15 Apr 2021 19:38:31 +0800 Subject: [PATCH] Add dump_task_src in ge_executor. --- ge/executor/CMakeLists.txt | 9 +++++++-- metadef | 2 +- parser | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ge/executor/CMakeLists.txt b/ge/executor/CMakeLists.txt index 2fca1aa6..7108fc46 100644 --- a/ge/executor/CMakeLists.txt +++ b/ge/executor/CMakeLists.txt @@ -4,11 +4,16 @@ set(PROTO_LIST "${METADEF_DIR}/proto/insert_op.proto" "${METADEF_DIR}/proto/task.proto" "${METADEF_DIR}/proto/op_mapping_info.proto" +) + +set(DUMP_PROTO_LIST "${METADEF_DIR}/proto/dump_task.proto" ) protobuf_generate(ge PROTO_SRCS PROTO_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 "ge_executor.cc" @@ -164,7 +169,7 @@ set(SRC_LIST ) ######## 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 $<$,$>:-fvisibility=hidden -O2 -Werror -Wno-deprecated-declarations -fno-common> @@ -212,7 +217,7 @@ target_link_libraries(ge_executor PRIVATE ) ######## 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 -fno-common diff --git a/metadef b/metadef index 72984c62..09c002f7 160000 --- a/metadef +++ b/metadef @@ -1 +1 @@ -Subproject commit 72984c62e434da09f8ea7d7a4fd4a365e0b6f42c +Subproject commit 09c002f7a564fa9f763292189cbb7156a63f7df6 diff --git a/parser b/parser index 88c66a63..6f894277 160000 --- a/parser +++ b/parser @@ -1 +1 @@ -Subproject commit 88c66a63b382bb54b338859e44b6321da979b22e +Subproject commit 6f894277aac964e1541800d7e04efe77d4433720