@@ -138,6 +138,7 @@ set(TRAIN_SRC_LIST | |||||
"graph/passes/mark_same_addr_pass.cc" | "graph/passes/mark_same_addr_pass.cc" | ||||
"graph/passes/mark_graph_unknown_status_pass.cc" | "graph/passes/mark_graph_unknown_status_pass.cc" | ||||
"graph/partition/dynamic_shape_partition.cc" | "graph/partition/dynamic_shape_partition.cc" | ||||
"graph/partition/stage_partition.cc" | |||||
"graph/passes/base_pass.cc" | "graph/passes/base_pass.cc" | ||||
"graph/passes/bitcast_pass.cc" | "graph/passes/bitcast_pass.cc" | ||||
"graph/passes/cast_remove_pass.cc" | "graph/passes/cast_remove_pass.cc" | ||||
@@ -270,6 +271,7 @@ set(TRAIN_SRC_LIST | |||||
"model/ge_root_model.cc" | "model/ge_root_model.cc" | ||||
"omm/csa_interact.cc" | "omm/csa_interact.cc" | ||||
"opskernel_manager/ops_kernel_manager.cc" | "opskernel_manager/ops_kernel_manager.cc" | ||||
"opskernel_manager/ops_kernel_builder_manager.cc" | |||||
"session/inner_session.cc" | "session/inner_session.cc" | ||||
"session/session_manager.cc" | "session/session_manager.cc" | ||||
"single_op/single_op.cc" | "single_op/single_op.cc" | ||||
@@ -356,6 +358,7 @@ target_include_directories(ge_runner PRIVATE | |||||
${CMAKE_BINARY_DIR}/proto/ge | ${CMAKE_BINARY_DIR}/proto/ge | ||||
#### yellow zone #### | #### yellow zone #### | ||||
${GE_CODE_DIR}/../inc | ${GE_CODE_DIR}/../inc | ||||
${GE_CODE_DIR}/../inc/external | |||||
${GE_CODE_DIR}/../inc/cce | ${GE_CODE_DIR}/../inc/cce | ||||
${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
#### blue zone | #### blue zone | ||||
@@ -369,6 +372,7 @@ target_link_libraries(ge_runner | |||||
$<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
ge_memory | ge_memory | ||||
adump_server | adump_server | ||||
msprofiler | |||||
-Wl,--no-as-needed | -Wl,--no-as-needed | ||||
graph | graph | ||||
ge_common | ge_common | ||||
@@ -426,6 +430,7 @@ set(INFER_SRC_LIST | |||||
"session/session_manager.cc" | "session/session_manager.cc" | ||||
"engine_manager/dnnengine_manager.cc" | "engine_manager/dnnengine_manager.cc" | ||||
"opskernel_manager/ops_kernel_manager.cc" | "opskernel_manager/ops_kernel_manager.cc" | ||||
"opskernel_manager/ops_kernel_builder_manager.cc" | |||||
"graph/manager/graph_manager.cc" | "graph/manager/graph_manager.cc" | ||||
"graph/manager/graph_manager_utils.cc" | "graph/manager/graph_manager_utils.cc" | ||||
"graph/manager/graph_context.cc" | "graph/manager/graph_context.cc" | ||||
@@ -678,6 +683,7 @@ target_include_directories(ge_compiler PRIVATE | |||||
${CMAKE_BINARY_DIR}/proto/ge | ${CMAKE_BINARY_DIR}/proto/ge | ||||
#### yellow zone #### | #### yellow zone #### | ||||
${GE_CODE_DIR}/../inc | ${GE_CODE_DIR}/../inc | ||||
${GE_CODE_DIR}/../inc/external | |||||
${GE_CODE_DIR}/../inc/cce | ${GE_CODE_DIR}/../inc/cce | ||||
${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
#### blue zone | #### blue zone | ||||
@@ -71,7 +71,10 @@ GE_COMMON_LOCAL_C_INCLUDES := \ | |||||
$(TOPDIR)third_party/openssl/include/x86/include \ | $(TOPDIR)third_party/openssl/include/x86/include \ | ||||
$(TOPDIR)framework/domi \ | $(TOPDIR)framework/domi \ | ||||
$(TOPDIR)framework/domi/common \ | $(TOPDIR)framework/domi/common \ | ||||
$(TOPDIR)framework/domi/common/op | |||||
$(TOPDIR)framework/domi/common/op \ | |||||
$(TOPDIR)graphengine/ge \ | |||||
$(TOPDIR)graphengine/ge/common \ | |||||
$(TOPDIR)graphengine/ge/common/op \ | |||||
#compile host libge_common | #compile host libge_common | ||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
@@ -60,6 +60,7 @@ set(SRC_LIST | |||||
"../graph/load/new_model_manager/task_info/end_graph_task_info.cc" | "../graph/load/new_model_manager/task_info/end_graph_task_info.cc" | ||||
"../graph/load/new_model_manager/task_info/super_kernel/super_kernel_factory.cc" | "../graph/load/new_model_manager/task_info/super_kernel/super_kernel_factory.cc" | ||||
"../graph/load/new_model_manager/task_info/super_kernel/super_kernel.cc" | "../graph/load/new_model_manager/task_info/super_kernel/super_kernel.cc" | ||||
"../opskernel_manager/ops_kernel_builder_manager.cc" | |||||
"../single_op/single_op_manager.cc" | "../single_op/single_op_manager.cc" | ||||
"../single_op/single_op_model.cc" | "../single_op/single_op_model.cc" | ||||
"../single_op/single_op.cc" | "../single_op/single_op.cc" | ||||
@@ -75,6 +75,7 @@ local_ge_executor_c_include := \ | |||||
$(TOPDIR)inc/framework \ | $(TOPDIR)inc/framework \ | ||||
$(TOPDIR)inc \ | $(TOPDIR)inc \ | ||||
$(LOCAL_PATH)/../ \ | $(LOCAL_PATH)/../ \ | ||||
$(TOPDIR)graphengine/ge \ | |||||
$(TOPDIR)libc_sec/include \ | $(TOPDIR)libc_sec/include \ | ||||
third_party/protobuf/include \ | third_party/protobuf/include \ | ||||
third_party/json/include \ | third_party/json/include \ | ||||
@@ -347,6 +347,7 @@ DEVICE_LOCAL_C_INCLUDES := \ | |||||
$(TOPDIR)inc/runtime \ | $(TOPDIR)inc/runtime \ | ||||
$(TOPDIR)ops/built-in/op_proto/inc \ | $(TOPDIR)ops/built-in/op_proto/inc \ | ||||
$(TOPDIR)framework/domi \ | $(TOPDIR)framework/domi \ | ||||
$(TOPDIR)graphengine/ge \ | |||||
$(TOPDIR)toolchain/ide/ide-daemon/external \ | $(TOPDIR)toolchain/ide/ide-daemon/external \ | ||||
third_party/json/include \ | third_party/json/include \ | ||||
third_party/protobuf/include \ | third_party/protobuf/include \ | ||||
@@ -23,6 +23,7 @@ local_lib_inc_path := proto/task.proto \ | |||||
${TOPDIR}third_party/protobuf/include \ | ${TOPDIR}third_party/protobuf/include \ | ||||
${TOPDIR}inc/framework \ | ${TOPDIR}inc/framework \ | ||||
$(TOPDIR)framework/domi \ | $(TOPDIR)framework/domi \ | ||||
$(TOPDIR)graphengine/ge \ | |||||
#compiler for host | #compiler for host | ||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
@@ -143,4 +144,4 @@ LOCAL_SRC_FILES := $(ops_kernel_builder_src_files) | |||||
LOCAL_C_INCLUDES := $(local_lib_inc_path) | LOCAL_C_INCLUDES := $(local_lib_inc_path) | ||||
include ${BUILD_STATIC_LIBRARY} | |||||
include ${BUILD_STATIC_LIBRARY} |
@@ -318,6 +318,7 @@ RUNNER_LOCAL_C_INCLUDES := \ | |||||
$(TOPDIR)libc_sec/include \ | $(TOPDIR)libc_sec/include \ | ||||
$(TOPDIR)ops/built-in/op_proto/inc \ | $(TOPDIR)ops/built-in/op_proto/inc \ | ||||
$(TOPDIR)framework/domi/analyzer \ | $(TOPDIR)framework/domi/analyzer \ | ||||
$(TOPDIR)graphengine/ge/analyzer \ | |||||
$(TOPDIR)toolchain/ide/ide-daemon/external \ | $(TOPDIR)toolchain/ide/ide-daemon/external \ | ||||
proto/fwk_adapter.proto \ | proto/fwk_adapter.proto \ | ||||
proto/ge_ir.proto \ | proto/ge_ir.proto \ | ||||
@@ -0,0 +1,59 @@ | |||||
############ libge_runtime.so ############ | |||||
set(GE_SRC_LIST | |||||
"model_runner.cc" | |||||
"runtime_model.cc" | |||||
"output.cc" | |||||
"task/aicpu_task.cc" | |||||
"task/cce_task.cc" | |||||
"task/tbe_task.cc" | |||||
"task/event_record_task.cc" | |||||
"task/event_wait_task.cc" | |||||
"task/stream_active_task.cc" | |||||
"task/stream_switch_task.cc" | |||||
"task/hccl_task.cc" | |||||
"task/memcpy_async_task.cc" | |||||
"task/profiler_task.cc" | |||||
) | |||||
add_library(ge_runtime SHARED ${GE_SRC_LIST}) | |||||
target_compile_options(ge_runtime PRIVATE | |||||
-Werror | |||||
-O2 | |||||
) | |||||
target_compile_definitions(ge_runtime PRIVATE | |||||
PROTOBUF_INLINE_NOT_IN_HEADERS=0 | |||||
) | |||||
target_include_directories(ge_runtime PRIVATE | |||||
${TOP_DIR} | |||||
${TOP_DIR}/inc | |||||
${TOP_DIR}/inc/graph | |||||
${TOP_DIR}/inc/external | |||||
${TOP_DIR}/inc/framework | |||||
${TOP_DIR}/inc/framework/common | |||||
${TOP_DIR}/inc/framework/ge_runtime | |||||
${TOP_DIR}/inc/cce | |||||
${CMAKE_BINARY_DIR} | |||||
${CMAKE_BINARY_DIR}/proto/ge | |||||
) | |||||
target_link_libraries(ge_runtime PRIVATE | |||||
$<BUILD_INTERFACE:intf_pub> | |||||
-Wl,--no-as-needed | |||||
slog | |||||
runtime | |||||
c_sec | |||||
-Wl,--as-needed | |||||
-lrt | |||||
-ldl | |||||
) | |||||
############ install ############ | |||||
set(INSTALL_BASE_DIR "") | |||||
set(INSTALL_LIBRARY_DIR lib) | |||||
install(TARGETS ge_runtime OPTIONAL | |||||
LIBRARY DESTINATION ${INSTALL_LIBRARY_DIR} | |||||
) |
@@ -17,6 +17,7 @@ local_lib_inc_path := ${LOCAL_PATH} \ | |||||
${TOPDIR}third_party/protobuf/include \ | ${TOPDIR}third_party/protobuf/include \ | ||||
${TOPDIR}inc/framework \ | ${TOPDIR}inc/framework \ | ||||
$(TOPDIR)framework/domi \ | $(TOPDIR)framework/domi \ | ||||
$(TOPDIR)graphengine/ge \ | |||||
#compiler for host | #compiler for host | ||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
@@ -15,6 +15,7 @@ local_lib_inc_path := proto/task.proto \ | |||||
${TOPDIR}third_party/protobuf/include \ | ${TOPDIR}third_party/protobuf/include \ | ||||
${TOPDIR}inc/framework \ | ${TOPDIR}inc/framework \ | ||||
$(TOPDIR)framework/domi \ | $(TOPDIR)framework/domi \ | ||||
$(TOPDIR)graphengine/ge \ | |||||
#compiler for host | #compiler for host | ||||
include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||
@@ -29,15 +29,19 @@ target_compile_definitions(atc PRIVATE | |||||
target_include_directories(atc PRIVATE | target_include_directories(atc PRIVATE | ||||
${CMAKE_CURRENT_LIST_DIR} | ${CMAKE_CURRENT_LIST_DIR} | ||||
${GE_CODE_DIR} | |||||
${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
${GE_CODE_DIR}/graphengine | |||||
${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
${GE_CODE_DIR}/common/inc/external | ${GE_CODE_DIR}/common/inc/external | ||||
${GE_CODE_DIR}/common/inc/external/graph | ${GE_CODE_DIR}/common/inc/external/graph | ||||
${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
${METADEF_DIR}/inc/graph | |||||
${METADEF_DIR}/inc/register | |||||
${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
${METADEF_DIR}/inc/external/graph | |||||
${METADEF_DIR}/inc/external/register | |||||
${PARSER_DIR} | ${PARSER_DIR} | ||||
${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
${CMAKE_BINARY_DIR}/proto/ge | ${CMAKE_BINARY_DIR}/proto/ge | ||||
@@ -23,6 +23,7 @@ LOCAL_C_INCLUDES := \ | |||||
$(TOPDIR)inc/framework/domi \ | $(TOPDIR)inc/framework/domi \ | ||||
$(TOPDIR)libc_sec/include \ | $(TOPDIR)libc_sec/include \ | ||||
$(TOPDIR)inc/common/util \ | $(TOPDIR)inc/common/util \ | ||||
$(TOPDIR)parser \ | |||||
third_party/json/include \ | third_party/json/include \ | ||||
third_party/gflags/include \ | third_party/gflags/include \ | ||||
third_party/protobuf/include \ | third_party/protobuf/include \ | ||||