| @@ -179,4 +179,4 @@ else () | |||||
| add_subdirectory(ge) | add_subdirectory(ge) | ||||
| endif () | |||||
| endif () | |||||
| @@ -13,7 +13,7 @@ if ((${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local) OR | |||||
| endif() | endif() | ||||
| if(GE_PB_PKG) | if(GE_PB_PKG) | ||||
| set(REQ_URL "${GE_PB_PKG}/libs/protobuf/v3.8.0.tar.gz") | |||||
| set(REQ_URL "${GE_PB_PKG}/libs/protobuf/v3.13.0.tar.gz") | |||||
| else() | else() | ||||
| if (ENABLE_GITEE) | if (ENABLE_GITEE) | ||||
| set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.13.0.tar.gz") | set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.13.0.tar.gz") | ||||
| @@ -754,22 +754,15 @@ target_compile_options(ge_runner PRIVATE | |||||
| target_include_directories(ge_runner SYSTEM PRIVATE | target_include_directories(ge_runner SYSTEM PRIVATE | ||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/analyzer | |||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${GE_CODE_DIR}/inc/framework/common | |||||
| ${METADEF_DIR} | |||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### 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}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
| ${GE_CODE_DIR}/../abl/adump/external | ${GE_CODE_DIR}/../abl/adump/external | ||||
| #### blue zone | #### blue zone | ||||
| @@ -835,22 +828,15 @@ target_compile_options(ge_compiler PRIVATE | |||||
| target_include_directories(ge_compiler SYSTEM PRIVATE | target_include_directories(ge_compiler SYSTEM PRIVATE | ||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/analyzer | |||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${GE_CODE_DIR}/inc/framework/common | |||||
| ${METADEF_DIR} | |||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### 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}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
| ${GE_CODE_DIR}/../abl/adump/external | ${GE_CODE_DIR}/../abl/adump/external | ||||
| #### blue zone #### | #### blue zone #### | ||||
| @@ -1000,18 +986,14 @@ set_target_properties(atc_stub_ge_compiler PROPERTIES | |||||
| ) | ) | ||||
| target_include_directories(atc_stub_ge_compiler PRIVATE | target_include_directories(atc_stub_ge_compiler PRIVATE | ||||
| ${GE_CODE_DIR} | |||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/analyzer | |||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${GE_CODE_DIR}/inc/framework/common | |||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${METADEF_DIR}/inc | |||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_CODE_DIR}/../inc/cce | |||||
| ${GE_CODE_DIR}/../inc | |||||
| ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
| ${GE_CODE_DIR}/../abl/adump/external | ${GE_CODE_DIR}/../abl/adump/external | ||||
| #### blue zone #### | #### blue zone #### | ||||
| @@ -1041,18 +1023,14 @@ set_target_properties(fwk_stub_ge_runner PROPERTIES | |||||
| ) | ) | ||||
| target_include_directories(fwk_stub_ge_runner PRIVATE | target_include_directories(fwk_stub_ge_runner PRIVATE | ||||
| ${GE_CODE_DIR} | |||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/analyzer | |||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${GE_CODE_DIR}/inc/framework/common | |||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${METADEF_DIR}/inc | |||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_CODE_DIR}/../inc/cce | |||||
| ${GE_CODE_DIR}/../inc | |||||
| ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external | ||||
| ${GE_CODE_DIR}/../abl/adump/external | ${GE_CODE_DIR}/../abl/adump/external | ||||
| #### blue zone #### | #### blue zone #### | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "analyzer.h" | |||||
| #include "analyzer/analyzer.h" | |||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #include <cstdio> | #include <cstdio> | ||||
| @@ -14,10 +14,10 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "ge/ge_api.h" | |||||
| #include "external/ge/ge_api.h" | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <malloc.h> | #include <malloc.h> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge/datatype_util.h" | #include "common/ge/datatype_util.h" | ||||
| #include "proto/ge_api.pb.h" | #include "proto/ge_api.pb.h" | ||||
| @@ -72,24 +72,18 @@ target_compile_options(ge_common PRIVATE | |||||
| target_include_directories(ge_common PRIVATE | target_include_directories(ge_common PRIVATE | ||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/common | |||||
| ${GE_CODE_DIR}/ge/common/op | |||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${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/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_DEPEND_DIR}/inc | |||||
| ${GE_DEPEND_DIR}/inc/cce | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc> | |||||
| #### blue zone #### | #### blue zone #### | ||||
| #${GE_DEPEND_DIR}/include | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc> | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain> | |||||
| ) | ) | ||||
| target_link_options(ge_common PRIVATE | target_link_options(ge_common PRIVATE | ||||
| @@ -98,6 +92,9 @@ target_link_options(ge_common PRIVATE | |||||
| target_link_libraries(ge_common PRIVATE | target_link_libraries(ge_common PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:slog_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:msprof_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:mmpa_headers>> | |||||
| static_mmpa | static_mmpa | ||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| graph | graph | ||||
| @@ -139,28 +136,25 @@ target_compile_options(ge_common_static PRIVATE | |||||
| target_include_directories(ge_common_static PRIVATE | target_include_directories(ge_common_static PRIVATE | ||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/common | |||||
| ${GE_CODE_DIR}/ge/common/op | |||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_DEPEND_DIR}/inc | |||||
| ${GE_DEPEND_DIR}/inc/cce | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc> | |||||
| #### blue zone #### | #### blue zone #### | ||||
| #${GE_DEPEND_DIR}/include | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc> | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain> | |||||
| ) | ) | ||||
| target_link_libraries(ge_common_static PRIVATE | target_link_libraries(ge_common_static PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:slog_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:msprof_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:mmpa_headers>> | |||||
| ascend_protobuf_static | ascend_protobuf_static | ||||
| json | json | ||||
| c_sec | c_sec | ||||
| @@ -196,15 +190,11 @@ target_compile_options(ge_common PRIVATE | |||||
| target_include_directories(ge_common PRIVATE | target_include_directories(ge_common PRIVATE | ||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/ge/common | |||||
| ${GE_CODE_DIR}/ge/common/op | |||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${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/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | ${GE_CODE_DIR}/third_party/fwkacllib/inc | ||||
| @@ -20,8 +20,8 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <string> | #include <string> | ||||
| #include "debug/ge_log.h" | |||||
| #include "ge_error_codes.h" | |||||
| #include "framework/common/debug/ge_log.h" | |||||
| #include "external/ge/ge_error_codes.h" | |||||
| namespace ge { | namespace ge { | ||||
| namespace { | namespace { | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <mutex> | #include <mutex> | ||||
| #include "common/dump/dump_properties.h" | #include "common/dump/dump_properties.h" | ||||
| #include "common/ge_types.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| class DumpManager { | class DumpManager { | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "proto/op_mapping.pb.h" | #include "proto/op_mapping.pb.h" | ||||
| #include "runtime/stream.h" | #include "runtime/stream.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/debug/log.h" | #include "framework/common/debug/log.h" | ||||
| #include "framework/common/ge_types.h" | #include "framework/common/ge_types.h" | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "opdebug_register.h" | |||||
| #include "common/dump/opdebug_register.h" | |||||
| namespace { | namespace { | ||||
| const size_t kOpDebugMemorySize = 2048UL; | const size_t kOpDebugMemorySize = 2048UL; | ||||
| @@ -18,8 +18,8 @@ | |||||
| #define GE_COMMON_DUMP_OPDEBUG_REGISTER_H_ | #define GE_COMMON_DUMP_OPDEBUG_REGISTER_H_ | ||||
| #include <map> | #include <map> | ||||
| #include "common/debug/ge_log.h" | |||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/ge_log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "graph/load/model_manager/data_dumper.h" | #include "graph/load/model_manager/data_dumper.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <securec.h> | #include <securec.h> | ||||
| #include <memory> | #include <memory> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/formats/utils/formats_definitions.h" | #include "common/formats/utils/formats_definitions.h" | ||||
| #include "common/formats/utils/formats_trans_utils.h" | #include "common/formats/utils/formats_trans_utils.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include "common/formats/utils/formats_definitions.h" | #include "common/formats/utils/formats_definitions.h" | ||||
| #include "common/formats/utils/formats_trans_utils.h" | #include "common/formats/utils/formats_trans_utils.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/utils/type_utils.h" | #include "graph/utils/type_utils.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <map> | #include <map> | ||||
| #include <vector> | #include <vector> | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| namespace ge { | namespace ge { | ||||
| static const int32_t kGeSizeFloat = sizeof(float); | static const int32_t kGeSizeFloat = sizeof(float); | ||||
| @@ -26,8 +26,8 @@ | |||||
| #include <typeinfo> | #include <typeinfo> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "engine/dnnengine.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/engine/dnnengine.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "mmpa/mmpa_api.h" | #include "mmpa/mmpa_api.h" | ||||
| @@ -104,7 +104,15 @@ void TBEPluginManager::ProcessSoFullName(vector<string> &file_list, string &caff | |||||
| } | } | ||||
| } | } | ||||
| void TBEPluginManager::FindParserSo(const string &path, vector<string> &file_list, string &caffe_parser_path) { | |||||
| void TBEPluginManager::FindParserSo(const string &path, vector<string> &file_list, | |||||
| string &caffe_parser_path, uint32_t recursive_depth) { | |||||
| static const uint32_t max_recursive_depth = 20; // For recursive depth protection | |||||
| if (recursive_depth >= max_recursive_depth) { | |||||
| GELOGW("Recursive depth is become %u, Please check input!", recursive_depth); | |||||
| return; | |||||
| } | |||||
| // Path, change to absolute path | // Path, change to absolute path | ||||
| string real_path = RealPath(path.c_str()); | string real_path = RealPath(path.c_str()); | ||||
| // Plugin path does not exist | // Plugin path does not exist | ||||
| @@ -138,7 +146,7 @@ void TBEPluginManager::FindParserSo(const string &path, vector<string> &file_lis | |||||
| ProcessSoFullName(file_list, caffe_parser_path, full_name, caffe_parser_so_suff, aicpu_so_suff, | ProcessSoFullName(file_list, caffe_parser_path, full_name, caffe_parser_so_suff, aicpu_so_suff, | ||||
| aicpu_host_so_suff); | aicpu_host_so_suff); | ||||
| } else { | } else { | ||||
| FindParserSo(full_name, file_list, caffe_parser_path); | |||||
| FindParserSo(full_name, file_list, caffe_parser_path, recursive_depth + 1); | |||||
| } | } | ||||
| } | } | ||||
| mmScandirFree(entries, ret); | mmScandirFree(entries, ret); | ||||
| @@ -57,7 +57,8 @@ class TBEPluginManager { | |||||
| static void ProcessSoFullName(vector<string> &file_list, string &caffe_parser_path, string &full_name, | static void ProcessSoFullName(vector<string> &file_list, string &caffe_parser_path, string &full_name, | ||||
| const string &caffe_parser_so_suff, const string &aicpu_so_suff, | const string &caffe_parser_so_suff, const string &aicpu_so_suff, | ||||
| const string &aicpu_host_so_suff); | const string &aicpu_host_so_suff); | ||||
| static void FindParserSo(const string &path, vector<string> &file_list, string &caffe_parser_path); | |||||
| static void FindParserSo(const string &path, vector<string> &file_list, string &caffe_parser_path, | |||||
| uint32_t recursive_depth = 0); | |||||
| static void GetPluginSoFileList(const string &path, vector<string> &file_list, string &caffe_parser_path); | static void GetPluginSoFileList(const string &path, vector<string> &file_list, string &caffe_parser_path); | ||||
| static void GetCustomOpPath(std::string &customop_path); | static void GetCustomOpPath(std::string &customop_path); | ||||
| void LoadCustomOpLib(); | void LoadCustomOpLib(); | ||||
| @@ -15,7 +15,7 @@ | |||||
| */ | */ | ||||
| #include "framework/common/ge_format_util.h" | #include "framework/common/ge_format_util.h" | ||||
| #include "formats/formats.h" | |||||
| #include "common/formats/formats.h" | |||||
| namespace ge { | namespace ge { | ||||
| GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY Status GeFormatUtil::TransShape(const TensorDesc &src_desc, | GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY Status GeFormatUtil::TransShape(const TensorDesc &src_desc, | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <set> | #include <set> | ||||
| #include <string> | #include <string> | ||||
| #include "ge/ge_api_error_codes.h" | |||||
| #include "external/ge/ge_api_error_codes.h" | |||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/manager/graph_var_manager.h" | #include "graph/manager/graph_var_manager.h" | ||||
| #include "model/ge_model.h" | #include "model/ge_model.h" | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "fp16_math.h" | |||||
| #include "common/math/fp16_math.h" | |||||
| #include "external/register/register_types.h" | #include "external/register/register_types.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "securec.h" | #include "securec.h" | ||||
| #include "common/helper/model_helper.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| namespace ge { | namespace ge { | ||||
| FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ModelParserBase::ModelParserBase() {} | FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ModelParserBase::ModelParserBase() {} | ||||
| @@ -17,7 +17,7 @@ | |||||
| #include "framework/common/op/attr_value_util.h" | #include "framework/common/op/attr_value_util.h" | ||||
| #include "framework/common/debug/log.h" | #include "framework/common/debug/log.h" | ||||
| #include "framework/common/util.h" | #include "framework/common/util.h" | ||||
| #include "register/register_types.h" | |||||
| #include "external/register/register_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| #define DEFINE_SET_ATTR_VALUE_ONE(ARG_TYPE, FIELD) \ | #define DEFINE_SET_ATTR_VALUE_ONE(ARG_TYPE, FIELD) \ | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "common/profiling/ge_profiling.h" | |||||
| #include "framework/common/profiling/ge_profiling.h" | |||||
| #include "runtime/base.h" | #include "runtime/base.h" | ||||
| #include "common/profiling/profiling_manager.h" | #include "common/profiling/profiling_manager.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| @@ -22,6 +22,7 @@ | |||||
| #include "graph/load/graph_loader.h" | #include "graph/load/graph_loader.h" | ||||
| #include "init/gelib.h" | #include "init/gelib.h" | ||||
| #include "framework/common/ge_inner_error_codes.h" | #include "framework/common/ge_inner_error_codes.h" | ||||
| #include "model/ge_model.h" | |||||
| namespace { | namespace { | ||||
| const uint32_t kDeviceListIndex = 3; | const uint32_t kDeviceListIndex = 3; | ||||
| @@ -42,6 +43,10 @@ const std::map<ProfCommandHandleType, std::string> kProfCommandTypeMap = { | |||||
| {kProfCommandhandleFinalize, kProfilingFinalize}, | {kProfCommandhandleFinalize, kProfilingFinalize}, | ||||
| {kProfCommandhandleModelSubscribe, kProfModelSubscribe}, | {kProfCommandhandleModelSubscribe, kProfModelSubscribe}, | ||||
| {kProfCommandhandleModelUnsubscribe, kProfModelUnsubscribe}}; | {kProfCommandhandleModelUnsubscribe, kProfModelUnsubscribe}}; | ||||
| const uint64_t kModelId = ge::INVALID_MODEL_ID; | |||||
| const uint16_t kStepStart = 0; | |||||
| const uint16_t kStepEnd = 1; | |||||
| } // namespace | } // namespace | ||||
| bool TransProfConfigToParam(const ProfCommandHandleData &profCommand, vector<string> &prof_config_params) { | bool TransProfConfigToParam(const ProfCommandHandleData &profCommand, vector<string> &prof_config_params) { | ||||
| @@ -216,6 +221,36 @@ ge::Status ProfCommandHandle(ProfCommandHandleType type, void *data, uint32_t le | |||||
| return ge::SUCCESS; | return ge::SUCCESS; | ||||
| } | } | ||||
| GE_FUNC_VISIBILITY ge::Status ProfSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream) { | |||||
| return ge::SUCCESS; | |||||
| ge::Status ProfSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream) { | |||||
| static bool is_first_run = true; | |||||
| int32_t device_id = 0; | |||||
| rtError_t rt_ret = rtGetDevice(&device_id); | |||||
| if (rt_ret != RT_ERROR_NONE) { | |||||
| GELOGE(rt_ret, "[Get][LogicDeviceId]Failed, ret 0x%X", rt_ret); | |||||
| REPORT_CALL_ERROR("E19999", "Get logic device id failed, ret 0x%X", rt_ret); | |||||
| return ge::FAILED; | |||||
| } | |||||
| if (is_first_run && tag_id == kStepStart) { | |||||
| GE_CHK_STATUS_RET_NOLOG(ge::ProfilingManager::Instance().ProfileStepInfo(index_id, | |||||
| kModelId, | |||||
| tag_id, | |||||
| stream, | |||||
| device_id)); | |||||
| is_first_run = false; | |||||
| return ge::SUCCESS; | |||||
| } | |||||
| if (!is_first_run && tag_id == kStepEnd) { | |||||
| GE_CHK_STATUS_RET_NOLOG(ge::ProfilingManager::Instance().ProfileStepInfo(index_id, | |||||
| kModelId, | |||||
| tag_id, | |||||
| stream, | |||||
| device_id)); | |||||
| is_first_run = true; | |||||
| return ge::SUCCESS; | |||||
| } | |||||
| GELOGE(ge::FAILED, "Param tag_id:%u invalid when is_first_run is %d", tag_id, is_first_run); | |||||
| REPORT_INPUT_ERROR("E10001", std::vector<std::string>({"value", "parameter", "reason"}), | |||||
| std::vector<std::string>({std::to_string(tag_id), "tag_id", | |||||
| "tag id must be 0 when first run, must be 1 when second run"})); | |||||
| return ge::FAILED; | |||||
| } | } | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "common/profiling/ge_runner_profiling.h" | |||||
| #include "framework/common/profiling/ge_runner_profiling.h" | |||||
| #include "init/gelib.h" | #include "init/gelib.h" | ||||
| bool IsInitialize() { | bool IsInitialize() { | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "framework/common/string_util.h" | #include "framework/common/string_util.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/utils/type_utils.h" | #include "graph/utils/type_utils.h" | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "runtime/base.h" | #include "runtime/base.h" | ||||
| #include "graph/load/model_manager/davinci_model.h" | #include "graph/load/model_manager/davinci_model.h" | ||||
| #include "mmpa/mmpa_api.h" | #include "mmpa/mmpa_api.h" | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <fstream> | #include <fstream> | ||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/debug/log.h" | #include "framework/common/debug/log.h" | ||||
| #include "framework/common/ge_types.h" | #include "framework/common/ge_types.h" | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include "common/dump/dump_properties.h" | #include "common/dump/dump_properties.h" | ||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| #include "common/ge_compiler_options.h" | |||||
| #include "framework/common/ge_compiler_options.h" | |||||
| namespace ge { | namespace ge { | ||||
| // Configuration property management | // Configuration property management | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "register/register_types.h" | |||||
| #include "external/register/register_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ThreadPool::ThreadPool(uint32_t size) : is_stoped_(false) { | FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ThreadPool::ThreadPool(uint32_t size) : is_stoped_(false) { | ||||
| @@ -31,7 +31,7 @@ | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/ge_inner_error_codes.h" | #include "framework/common/ge_inner_error_codes.h" | ||||
| #include "external/ge/ge_api_error_codes.h" | #include "external/ge/ge_api_error_codes.h" | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -15,7 +15,7 @@ | |||||
| */ | */ | ||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| namespace ge { | namespace ge { | ||||
| // dump | // dump | ||||
| @@ -340,15 +340,24 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY std::string RealPath(const char | |||||
| return res; | return res; | ||||
| } | } | ||||
| void PathValidErrReport(const std::string &file_path, const std::string &atc_param, const std::string &reason) { | |||||
| if (!atc_param.empty()) { | |||||
| REPORT_INPUT_ERROR("E10001", std::vector<std::string>({"parameter", "value", "reason"}), | |||||
| std::vector<std::string>({atc_param, file_path, reason})); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] invalid, reason:%s", file_path.c_str(), reason.c_str()); | |||||
| } | |||||
| } | |||||
| FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckInputPathValid(const std::string &file_path, | FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckInputPathValid(const std::string &file_path, | ||||
| const std::string &atc_param) { | const std::string &atc_param) { | ||||
| // The specified path is empty | // The specified path is empty | ||||
| std::map<std::string, std::string> args_map; | std::map<std::string, std::string> args_map; | ||||
| if (file_path.empty()) { | if (file_path.empty()) { | ||||
| if (atc_param != "") { | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10004", {"parameter"}, {atc_param}); | |||||
| if (!atc_param.empty()) { | |||||
| REPORT_INPUT_ERROR("E10004", std::vector<std::string>({"parameter"}), std::vector<std::string>({atc_param})); | |||||
| } else { | } else { | ||||
| REPORT_INNER_ERROR("E19999", "Param file_path is empty, check invalid"); | |||||
| REPORT_INNER_ERROR("E19999", "Param file_path is empty, check invalid."); | |||||
| } | } | ||||
| GELOGW("Input parameter %s is empty.", file_path.c_str()); | GELOGW("Input parameter %s is empty.", file_path.c_str()); | ||||
| return false; | return false; | ||||
| @@ -356,13 +365,8 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckInputPathValid(const | |||||
| std::string real_path = RealPath(file_path.c_str()); | std::string real_path = RealPath(file_path.c_str()); | ||||
| // Unable to get absolute path (does not exist or does not have permission to access) | // Unable to get absolute path (does not exist or does not have permission to access) | ||||
| if (real_path.empty()) { | if (real_path.empty()) { | ||||
| if (atc_param != "") { | |||||
| std::string reason = "realpath error, errmsg:" + std::string(strerror(errno)); | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, reason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s]'s realpath is empty, errmsg[%s]", file_path.c_str(), strerror(errno)); | |||||
| } | |||||
| std::string reason = "realpath error, errmsg:" + std::string(strerror(errno)); | |||||
| PathValidErrReport(file_path, atc_param, reason); | |||||
| GELOGW("Path[%s]'s realpath is empty, errmsg[%s]", file_path.c_str(), strerror(errno)); | GELOGW("Path[%s]'s realpath is empty, errmsg[%s]", file_path.c_str(), strerror(errno)); | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -378,23 +382,12 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckInputPathValid(const | |||||
| GE_CHK_BOOL_TRUE_EXEC_WITH_LOG( | GE_CHK_BOOL_TRUE_EXEC_WITH_LOG( | ||||
| !ValidateStr(real_path, mode), | !ValidateStr(real_path, mode), | ||||
| if (atc_param != "") { | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, real_path, kPathValidReason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] has invalid char, %s", file_path.c_str(), kPathValidReason); | |||||
| } | |||||
| PathValidErrReport(file_path, atc_param, kPathValidReason); | |||||
| return false, "Invalid value for %s[%s], %s.", atc_param.c_str(), real_path.c_str(), kPathValidReason); | return false, "Invalid value for %s[%s], %s.", atc_param.c_str(), real_path.c_str(), kPathValidReason); | ||||
| // The absolute path points to a file that is not readable | // The absolute path points to a file that is not readable | ||||
| if (mmAccess2(real_path.c_str(), M_R_OK) != EN_OK) { | if (mmAccess2(real_path.c_str(), M_R_OK) != EN_OK) { | ||||
| if (atc_param != "") { | |||||
| std::string reason = "cat not access, errmsg:" + std::string(strerror(errno)); | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, reason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] can't acccess, errmsg:%s", file_path.c_str(), strerror(errno)); | |||||
| } | |||||
| PathValidErrReport(file_path, atc_param, "cat not access, errmsg:" + std::string(strerror(errno))); | |||||
| GELOGW("Read file[%s] failed, errmsg[%s]", file_path.c_str(), strerror(errno)); | GELOGW("Read file[%s] failed, errmsg[%s]", file_path.c_str(), strerror(errno)); | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -406,10 +399,10 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const | |||||
| const std::string &atc_param) { | const std::string &atc_param) { | ||||
| // The specified path is empty | // The specified path is empty | ||||
| if (file_path.empty()) { | if (file_path.empty()) { | ||||
| if (atc_param != "") { | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10004", {"parameter"}, {atc_param}); | |||||
| if (!atc_param.empty()) { | |||||
| REPORT_INPUT_ERROR("E10004", std::vector<std::string>({"parameter"}), std::vector<std::string>({atc_param})); | |||||
| } else { | } else { | ||||
| REPORT_INNER_ERROR("E19999", "Param file_path is empty, check invalid"); | |||||
| REPORT_INNER_ERROR("E19999", "Param file_path is empty, check invalid."); | |||||
| } | } | ||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10004", {"parameter"}, {atc_param}); | ErrorManager::GetInstance().ATCReportErrMessage("E10004", {"parameter"}, {atc_param}); | ||||
| GELOGW("Input parameter's value is empty."); | GELOGW("Input parameter's value is empty."); | ||||
| @@ -417,17 +410,10 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const | |||||
| } | } | ||||
| GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(strlen(file_path.c_str()) >= MMPA_MAX_PATH, | GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(strlen(file_path.c_str()) >= MMPA_MAX_PATH, | ||||
| if (atc_param != "") { | |||||
| std::string reason = "len is too long, it must be less than " + | |||||
| std::to_string(MMPA_MAX_PATH); | |||||
| ErrorManager::GetInstance().ATCReportErrMessage( | |||||
| "E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, reason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] len is too long, it must be less than %d", | |||||
| file_path.c_str(), MMPA_MAX_PATH); | |||||
| } | |||||
| return "", "Path[%s] len is too long, it must be less than %d", file_path.c_str(), | |||||
| std::string reason = "len is too long, it must be less than " + | |||||
| std::to_string(MMPA_MAX_PATH); | |||||
| PathValidErrReport(file_path, atc_param, reason); | |||||
| return false, "Path[%s] len is too long, it must be less than %d", file_path.c_str(), | |||||
| MMPA_MAX_PATH); | MMPA_MAX_PATH); | ||||
| // A regular matching expression to verify the validity of the input file path | // A regular matching expression to verify the validity of the input file path | ||||
| @@ -441,12 +427,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const | |||||
| GE_CHK_BOOL_TRUE_EXEC_WITH_LOG( | GE_CHK_BOOL_TRUE_EXEC_WITH_LOG( | ||||
| !ValidateStr(file_path, mode), | !ValidateStr(file_path, mode), | ||||
| if (atc_param != "") { | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, kPathValidReason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] has invalid char, %s", file_path.c_str(), kPathValidReason); | |||||
| } | |||||
| PathValidErrReport(file_path, atc_param, kPathValidReason); | |||||
| return false, "Invalid value for %s[%s], %s.", atc_param.c_str(), file_path.c_str(), kPathValidReason); | return false, "Invalid value for %s[%s], %s.", atc_param.c_str(), file_path.c_str(), kPathValidReason); | ||||
| std::string real_path = RealPath(file_path.c_str()); | std::string real_path = RealPath(file_path.c_str()); | ||||
| @@ -454,13 +435,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const | |||||
| if (!real_path.empty()) { | if (!real_path.empty()) { | ||||
| // File is not readable or writable | // File is not readable or writable | ||||
| if (mmAccess2(real_path.c_str(), M_W_OK | M_F_OK) != EN_OK) { | if (mmAccess2(real_path.c_str(), M_W_OK | M_F_OK) != EN_OK) { | ||||
| if (atc_param != "") { | |||||
| std::string reason = "cat not access, errmsg:" + std::string(strerror(errno)); | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, reason}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] can't acccess, errmsg:%s", file_path.c_str(), strerror(errno)); | |||||
| } | |||||
| PathValidErrReport(file_path, atc_param, "cat not access, errmsg:" + std::string(strerror(errno))); | |||||
| GELOGW("Write file[%s] failed, errmsg[%s]", real_path.c_str(), strerror(errno)); | GELOGW("Write file[%s] failed, errmsg[%s]", real_path.c_str(), strerror(errno)); | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -479,12 +454,7 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const | |||||
| std::string prefix_path = std::string(file_path).substr(0, static_cast<size_t>(path_split_pos)); | std::string prefix_path = std::string(file_path).substr(0, static_cast<size_t>(path_split_pos)); | ||||
| // Determine whether the specified path is valid by creating the path | // Determine whether the specified path is valid by creating the path | ||||
| if (CreateDirectory(prefix_path) != 0) { | if (CreateDirectory(prefix_path) != 0) { | ||||
| if (atc_param != "") { | |||||
| ErrorManager::GetInstance().ATCReportErrMessage("E10001", {"parameter", "value", "reason"}, | |||||
| {atc_param, file_path, "Can not create directory"}); | |||||
| } else { | |||||
| REPORT_INNER_ERROR("E19999", "Path[%s] Can not create directory", file_path.c_str()); | |||||
| } | |||||
| PathValidErrReport(file_path, atc_param, "Can not create directory"); | |||||
| GELOGW("Can not create directory[%s].", file_path.c_str()); | GELOGW("Can not create directory[%s].", file_path.c_str()); | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include <map> | #include <map> | ||||
| #include <utility> | #include <utility> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/util/error_manager/error_manager.h" | #include "common/util/error_manager/error_manager.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| @@ -26,9 +26,9 @@ | |||||
| #include "nlohmann/json.hpp" | #include "nlohmann/json.hpp" | ||||
| #include "common/ge/plugin_manager.h" | #include "common/ge/plugin_manager.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/opskernel/ops_kernel_info_types.h" | #include "common/opskernel/ops_kernel_info_types.h" | ||||
| #include "engine/dnnengine.h" | |||||
| #include "framework/engine/dnnengine.h" | |||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| @@ -182,20 +182,20 @@ target_include_directories(ge_executor SYSTEM PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_CODE_DIR}/../inc | |||||
| ${GE_CODE_DIR}/../inc/cce | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc> | |||||
| #### blue zone #### | #### blue zone #### | ||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc> | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc/toolchain> | |||||
| ) | ) | ||||
| target_link_libraries(ge_executor PRIVATE | target_link_libraries(ge_executor PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:slog_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:msprof_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:mmpa_headers>> | |||||
| json | json | ||||
| ascend_protobuf_static | ascend_protobuf_static | ||||
| c_sec | c_sec | ||||
| @@ -233,15 +233,12 @@ target_include_directories(ge_executor_shared PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| ${GE_CODE_DIR}/../inc | |||||
| ${GE_CODE_DIR}/../inc/cce | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc> | |||||
| #### blue zone #### | #### blue zone #### | ||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | |||||
| $<$<BOOL:${ENABLE_OPEN_SRC}>:${GE_CODE_DIR}/third_party/fwkacllib/inc> | |||||
| ) | ) | ||||
| target_link_options(ge_executor_shared PRIVATE | target_link_options(ge_executor_shared PRIVATE | ||||
| @@ -251,6 +248,9 @@ target_link_options(ge_executor_shared PRIVATE | |||||
| target_link_libraries(ge_executor_shared PRIVATE | target_link_libraries(ge_executor_shared PRIVATE | ||||
| $<BUILD_INTERFACE:intf_pub> | $<BUILD_INTERFACE:intf_pub> | ||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:slog_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:msprof_headers>> | |||||
| $<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:$<BUILD_INTERFACE:mmpa_headers>> | |||||
| -Wl,--no-as-needed | -Wl,--no-as-needed | ||||
| ge_common | ge_common | ||||
| runtime | runtime | ||||
| @@ -14,13 +14,13 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "executor/ge_executor.h" | |||||
| #include "framework/executor/ge_executor.h" | |||||
| #include <cce/cce.h> | #include <cce/cce.h> | ||||
| #include <ctime> | #include <ctime> | ||||
| #include <iostream> | #include <iostream> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/helper/model_helper.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| #include "common/profiling/profiling_manager.h" | #include "common/profiling/profiling_manager.h" | ||||
| #include "common/dump/dump_manager.h" | #include "common/dump/dump_manager.h" | ||||
| #include "graph/execute/graph_execute.h" | #include "graph/execute/graph_execute.h" | ||||
| @@ -41,8 +41,6 @@ target_include_directories(ge_local_engine PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| @@ -91,8 +89,6 @@ target_include_directories(atc_ge_local_engine PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| @@ -146,8 +142,6 @@ target_include_directories(ge_local_opskernel_builder PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| @@ -197,8 +191,6 @@ target_include_directories(atc_ge_local_opskernel_builder PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| @@ -254,8 +246,6 @@ target_include_directories(ge_local_opskernel_builder_static PRIVATE | |||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ${CMAKE_BINARY_DIR}/proto/graphengine_protos | ||||
| #### yellow zone #### | #### yellow zone #### | ||||
| @@ -19,10 +19,10 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/constant/constant.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "ge_local_engine/common/constant/constant.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "ops_kernel_store/ge_local_ops_kernel_info.h" | |||||
| #include "ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.h" | |||||
| namespace ge { | namespace ge { | ||||
| namespace ge_local { | namespace ge_local { | ||||
| @@ -13,15 +13,15 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "host_cpu_engine.h" | |||||
| #include "graph/common/omg_util.h" | |||||
| #include "ge_local_engine/engine/host_cpu_engine.h" | |||||
| #include "graph/utils/op_desc_utils.h" | #include "graph/utils/op_desc_utils.h" | ||||
| #include "graph/utils/tensor_adapter.h" | #include "graph/utils/tensor_adapter.h" | ||||
| #include "graph/utils/node_utils.h" | |||||
| #include "graph/utils/type_utils.h" | |||||
| #include "register/op_kernel_registry.h" | #include "register/op_kernel_registry.h" | ||||
| #include "register/host_cpu_context.h" | #include "register/host_cpu_context.h" | ||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/ge/plugin_manager.h" | #include "common/ge/plugin_manager.h" | ||||
| #include "graph/utils/type_utils.h" | |||||
| #include "common/fp16_t.h" | #include "common/fp16_t.h" | ||||
| #include "common/math/math_util.h" | #include "common/math/math_util.h" | ||||
| @@ -123,10 +123,7 @@ bool HostCpuEngine::CheckSupported(const string &op_type) { | |||||
| } | } | ||||
| Status HostCpuEngine::FindOpKernel(const ge::NodePtr &node, std::unique_ptr<HostCpuOp> &op_kernel) { | Status HostCpuEngine::FindOpKernel(const ge::NodePtr &node, std::unique_ptr<HostCpuOp> &op_kernel) { | ||||
| std::string op_type; | |||||
| auto status = GetOriginalType(node, op_type); | |||||
| GE_CHK_BOOL_EXEC_NOLOG(status == SUCCESS, return status); | |||||
| const std::string op_type = NodeUtils::GetNodeType(node); | |||||
| auto kernel = OpKernelRegistry::GetInstance().CreateHostCpuOp(op_type); | auto kernel = OpKernelRegistry::GetInstance().CreateHostCpuOp(op_type); | ||||
| if (kernel == nullptr) { | if (kernel == nullptr) { | ||||
| GELOGD("Op of type %s is not supported by host cpu engine", op_type.c_str()); | GELOGD("Op of type %s is not supported by host cpu engine", op_type.c_str()); | ||||
| @@ -33,7 +33,7 @@ | |||||
| #include <mutex> | #include <mutex> | ||||
| #include "framework/common/ge_inner_error_codes.h" | #include "framework/common/ge_inner_error_codes.h" | ||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| #include "graph/operator.h" | |||||
| #include "external/graph/operator.h" | |||||
| #include "external/../register/register.h" | #include "external/../register/register.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -14,9 +14,9 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "ge_local_ops_kernel_builder.h" | |||||
| #include "ge_local_engine/ops_kernel_store/ge_local_ops_kernel_builder.h" | |||||
| #include <memory> | #include <memory> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| @@ -16,14 +16,14 @@ | |||||
| #include "ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.h" | #include "ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.h" | ||||
| #include <memory> | #include <memory> | ||||
| #include "common/constant/constant.h" | |||||
| #include "ge_local_engine/common/constant/constant.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| #include "graph/utils/type_utils.h" | #include "graph/utils/type_utils.h" | ||||
| #include "op/op_factory.h" | |||||
| #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | |||||
| #include "proto/task.pb.h" | #include "proto/task.pb.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "ge_local_engine/ops_kernel_store/op/ge_deleted_op.h" | #include "ge_local_engine/ops_kernel_store/op/ge_deleted_op.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "ge_local_engine/ops_kernel_store/op/no_op.h" | #include "ge_local_engine/ops_kernel_store/op/no_op.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "ge_local_engine/ops_kernel_store/op/op.h" | #include "ge_local_engine/ops_kernel_store/op/op.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| #include "graph/utils/anchor_utils.h" | #include "graph/utils/anchor_utils.h" | ||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <climits> | #include <climits> | ||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | #include "ge_local_engine/ops_kernel_store/op/op_factory.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -34,21 +34,13 @@ target_compile_definitions(ge_runtime PRIVATE | |||||
| target_include_directories(ge_runtime PRIVATE | target_include_directories(ge_runtime PRIVATE | ||||
| ${CMAKE_CURRENT_LIST_DIR} | ${CMAKE_CURRENT_LIST_DIR} | ||||
| ${GE_CODE_DIR} | |||||
| ${GE_CODE_DIR}/ge | ${GE_CODE_DIR}/ge | ||||
| ${GE_CODE_DIR}/inc | ${GE_CODE_DIR}/inc | ||||
| ${GE_CODE_DIR}/inc/graph | |||||
| ${GE_CODE_DIR}/inc/external | ${GE_CODE_DIR}/inc/external | ||||
| ${GE_CODE_DIR}/inc/framework | ${GE_CODE_DIR}/inc/framework | ||||
| ${GE_CODE_DIR}/inc/framework/common | |||||
| ${GE_CODE_DIR}/inc/framework/ge_runtime | |||||
| ${GE_CODE_DIR}/inc/cce | |||||
| ${GE_CODE_DIR}/third_party/fwkacllib/inc | ${GE_CODE_DIR}/third_party/fwkacllib/inc | ||||
| ${METADEF_DIR} | |||||
| ${METADEF_DIR}/inc | ${METADEF_DIR}/inc | ||||
| ${METADEF_DIR}/inc/external/graph | |||||
| ${METADEF_DIR}/inc/external | ${METADEF_DIR}/inc/external | ||||
| ${METADEF_DIR}/inc/graph | |||||
| ${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
| ${CMAKE_BINARY_DIR}/proto/ge | ${CMAKE_BINARY_DIR}/proto/ge | ||||
| ) | ) | ||||
| @@ -14,12 +14,12 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "ge_runtime/model_runner.h" | |||||
| #include "./runtime_model.h" | |||||
| #include "framework/ge_runtime/model_runner.h" | |||||
| #include "ge_runtime/runtime_model.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "ge_runtime/davinci_model.h" | |||||
| #include "framework/ge_runtime/davinci_model.h" | |||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -15,8 +15,8 @@ | |||||
| */ | */ | ||||
| #include "ge_runtime/output.h" | #include "ge_runtime/output.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -19,8 +19,8 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <vector> | #include <vector> | ||||
| #include "ge_runtime/davinci_model.h" | |||||
| #include "common/ge_types.h" | |||||
| #include "framework/ge_runtime/davinci_model.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| namespace model_runner { | namespace model_runner { | ||||
| @@ -16,15 +16,15 @@ | |||||
| #include "ge_runtime/runtime_model.h" | #include "ge_runtime/runtime_model.h" | ||||
| #include <set> | #include <set> | ||||
| #include "./model_context.h" | |||||
| #include "./task/task.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "ge_runtime/model_context.h" | |||||
| #include "ge_runtime/task/task.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/op/op_parser_util.h" | #include "framework/common/op/op_parser_util.h" | ||||
| #include "graph/types.h" | |||||
| #include "task/task_factory.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "ge_runtime/task/task_factory.h" | |||||
| #include "ge/common/math/math_util.h" | #include "ge/common/math/math_util.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -20,8 +20,8 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "ge_runtime/davinci_model.h" | |||||
| #include "common/ge_types.h" | |||||
| #include "framework/ge_runtime/davinci_model.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "runtime/base.h" | #include "runtime/base.h" | ||||
| #include "runtime/rt_model.h" | #include "runtime/rt_model.h" | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "runtime/rt_model.h" | #include "runtime/rt_model.h" | ||||
| #include "ge_runtime/model_context.h" | #include "ge_runtime/model_context.h" | ||||
| #include "ge_runtime/task_info.h" | |||||
| #include "framework/ge_runtime/task_info.h" | |||||
| #include "external/runtime/rt_error_codes.h" | #include "external/runtime/rt_error_codes.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -21,9 +21,9 @@ | |||||
| #include <map> | #include <map> | ||||
| #include <memory> | #include <memory> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "ge_runtime/task_info.h" | |||||
| #include "framework/ge_runtime/task_info.h" | |||||
| namespace ge { | namespace ge { | ||||
| namespace model_runner { | namespace model_runner { | ||||
| @@ -14,19 +14,19 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "generator/ge_generator.h" | |||||
| #include "framework/generator/ge_generator.h" | |||||
| #include <atomic> | #include <atomic> | ||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/ge/plugin_manager.h" | #include "common/ge/plugin_manager.h" | ||||
| #include "common/helper/model_helper.h" | |||||
| #include "common/helper/om_file_helper.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| #include "framework/common/helper/om_file_helper.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "common/util/error_manager/error_manager.h" | #include "common/util/error_manager/error_manager.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/debug/log.h" | #include "framework/common/debug/log.h" | ||||
| #include "ge/ge_api.h" | |||||
| #include "external/ge/ge_api.h" | |||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/manager/graph_manager.h" | #include "graph/manager/graph_manager.h" | ||||
| @@ -205,6 +205,7 @@ static Status AddInputs(const ComputeGraphPtr &graph, const NodePtr &node, const | |||||
| } | } | ||||
| (void)AttrUtils::SetBool(data_op, "_is_single_op", true); | (void)AttrUtils::SetBool(data_op, "_is_single_op", true); | ||||
| (void)AttrUtils::SetBool(data_op, ATTR_NAME_IS_ORIGINAL_INPUT, true); | |||||
| GE_CHK_BOOL_EXEC(data_op->AddInputDesc(tensor) == GRAPH_SUCCESS, | GE_CHK_BOOL_EXEC(data_op->AddInputDesc(tensor) == GRAPH_SUCCESS, | ||||
| REPORT_CALL_ERROR("E19999", "AddInputDesc failed for node:%s", data_op->GetName().c_str()); | REPORT_CALL_ERROR("E19999", "AddInputDesc failed for node:%s", data_op->GetName().c_str()); | ||||
| @@ -13,11 +13,11 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "generator/generator_api.h" | |||||
| #include "framework/generator/generator_api.h" | |||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "generator/ge_generator.h" | |||||
| #include "framework/generator/ge_generator.h" | |||||
| #include "graph/ge_attr_value.h" | #include "graph/ge_attr_value.h" | ||||
| #include "graph/ge_tensor.h" | #include "graph/ge_tensor.h" | ||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| @@ -17,7 +17,7 @@ | |||||
| #include "graph/build/graph_builder.h" | #include "graph/build/graph_builder.h" | ||||
| #include "graph/build/memory/graph_mem_assigner.h" | #include "graph/build/memory/graph_mem_assigner.h" | ||||
| #include "common/ge/ge_util.h" | #include "common/ge/ge_util.h" | ||||
| #include "common/helper/model_helper.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| #include "graph/build/logical_stream_allocator.h" | #include "graph/build/logical_stream_allocator.h" | ||||
| #include "graph/build/run_context.h" | #include "graph/build/run_context.h" | ||||
| #include "graph/build/stream_graph_optimizer.h" | #include "graph/build/stream_graph_optimizer.h" | ||||
| @@ -22,16 +22,16 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/debug/memory_dumper.h" | #include "common/debug/memory_dumper.h" | ||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "common/string_util.h" | |||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/string_util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "graph/build/model_builder.h" | #include "graph/build/model_builder.h" | ||||
| #include "graph/build/task_generator.h" | #include "graph/build/task_generator.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/graph.h" | |||||
| #include "external/graph/graph.h" | |||||
| #include "graph/manager/graph_manager_utils.h" | #include "graph/manager/graph_manager_utils.h" | ||||
| #include "graph/model.h" | #include "graph/model.h" | ||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| @@ -14,11 +14,11 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "label_allocator.h" | |||||
| #include "graph/build/label_allocator.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| #include "graph/label/label_maker.h" | #include "graph/label/label_maker.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include "graph/buffer.h" | #include "graph/buffer.h" | ||||
| #include "graph/ge_attr_value.h" | #include "graph/ge_attr_value.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| @@ -36,7 +36,7 @@ | |||||
| #include "graph/common/local_context.h" | #include "graph/common/local_context.h" | ||||
| #include "graph/optimize/common/params.h" | #include "graph/optimize/common/params.h" | ||||
| #include "omg/omg_inner_types.h" | |||||
| #include "framework/omg/omg_inner_types.h" | |||||
| #include "runtime/mem.h" | #include "runtime/mem.h" | ||||
| using std::map; | using std::map; | ||||
| @@ -24,9 +24,9 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include <list> | #include <list> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "graph/build/memory/mem_assigner.h" | #include "graph/build/memory/mem_assigner.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| @@ -22,8 +22,8 @@ | |||||
| #include "graph/build/memory/block_mem_assigner.h" | #include "graph/build/memory/block_mem_assigner.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| namespace ge { | namespace ge { | ||||
| using BlockMemAssignerPtr = std::shared_ptr<BlockMemAssigner>; | using BlockMemAssignerPtr = std::shared_ptr<BlockMemAssigner>; | ||||
| @@ -17,8 +17,8 @@ | |||||
| #ifndef GE_GRAPH_BUILD_MEMORY_MEM_ASSIGNER_H_ | #ifndef GE_GRAPH_BUILD_MEMORY_MEM_ASSIGNER_H_ | ||||
| #define GE_GRAPH_BUILD_MEMORY_MEM_ASSIGNER_H_ | #define GE_GRAPH_BUILD_MEMORY_MEM_ASSIGNER_H_ | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "memory/memory_assigner.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/memory/memory_assigner.h" | |||||
| namespace ge { | namespace ge { | ||||
| static const int64_t kInvalidOffset = -1; | static const int64_t kInvalidOffset = -1; | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "memory/memory_assigner.h" | |||||
| #include "framework/memory/memory_assigner.h" | |||||
| #include <memory> | #include <memory> | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/build/memory/graph_mem_assigner.h" | #include "graph/build/memory/graph_mem_assigner.h" | ||||
| @@ -16,14 +16,14 @@ | |||||
| #include "graph/build/memory/var_mem_assign_util.h" | #include "graph/build/memory/var_mem_assign_util.h" | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/types.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/common/transop_util.h" | #include "graph/common/transop_util.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/manager/graph_mem_allocator.h" | #include "graph/manager/graph_mem_allocator.h" | ||||
| #include "graph/manager/graph_var_manager.h" | #include "graph/manager/graph_var_manager.h" | ||||
| #include "graph/tensor.h" | |||||
| #include "graph/types.h" | |||||
| #include "external/graph/tensor.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "graph/utils/attr_utils.h" | #include "graph/utils/attr_utils.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| @@ -17,8 +17,8 @@ | |||||
| #ifndef GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_ | #ifndef GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_ | ||||
| #define GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_ | #define GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_ | ||||
| #include <string> | #include <string> | ||||
| #include "common/debug/log.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include "common/dump/dump_manager.h" | #include "common/dump/dump_manager.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/anchor.h" | #include "graph/anchor.h" | ||||
| #include "graph/attr_value.h" | |||||
| #include "external/graph/attr_value.h" | |||||
| #include "graph/buffer.h" | #include "graph/buffer.h" | ||||
| #include "graph/build/stream_allocator.h" | #include "graph/build/stream_allocator.h" | ||||
| #include "graph/common/omg_util.h" | #include "graph/common/omg_util.h" | ||||
| @@ -31,11 +31,11 @@ | |||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/ge_attr_value.h" | #include "graph/ge_attr_value.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/ge_error_codes.h" | |||||
| #include "external/graph/ge_error_codes.h" | |||||
| #include "graph/manager/graph_mem_allocator.h" | #include "graph/manager/graph_mem_allocator.h" | ||||
| #include "graph/manager/graph_var_manager.h" | #include "graph/manager/graph_var_manager.h" | ||||
| #include "graph/optimize/common/params.h" | #include "graph/optimize/common/params.h" | ||||
| #include "graph/types.h" | |||||
| #include "external/graph/types.h" | |||||
| #include "graph/utils/attr_utils.h" | #include "graph/utils/attr_utils.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| @@ -43,8 +43,8 @@ | |||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| #include "graph/utils/type_utils.h" | #include "graph/utils/type_utils.h" | ||||
| #include "init/gelib.h" | #include "init/gelib.h" | ||||
| #include "memory/memory_assigner.h" | |||||
| #include "omg/version.h" | |||||
| #include "framework/memory/memory_assigner.h" | |||||
| #include "framework/omg/version.h" | |||||
| #include "register/op_registry.h" | #include "register/op_registry.h" | ||||
| #include "graph/passes/set_input_output_offset_pass.h" | #include "graph/passes/set_input_output_offset_pass.h" | ||||
| #include "graph/build/memory/block_mem_assigner.h" | #include "graph/build/memory/block_mem_assigner.h" | ||||
| @@ -23,17 +23,17 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/op/ge_op_utils.h" | |||||
| #include "framework/common/op/ge_op_utils.h" | |||||
| #include "common/tbe_kernel_store.h" | #include "common/tbe_kernel_store.h" | ||||
| #include "common/cust_aicpu_kernel_store.h" | #include "common/cust_aicpu_kernel_store.h" | ||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/manager/graph_manager_utils.h" | #include "graph/manager/graph_manager_utils.h" | ||||
| #include "graph/model.h" | #include "graph/model.h" | ||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| #include "model/ge_model.h" | #include "model/ge_model.h" | ||||
| #include "omg/omg_inner_types.h" | |||||
| #include "framework/omg/omg_inner_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| class ModelBuilder { | class ModelBuilder { | ||||
| @@ -15,7 +15,7 @@ | |||||
| */ | */ | ||||
| #include "graph/build/run_context.h" | #include "graph/build/run_context.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/common/omg_util.h" | #include "graph/common/omg_util.h" | ||||
| @@ -18,7 +18,7 @@ | |||||
| #define GE_GRAPH_BUILD_RUN_CONTEXT_H_ | #define GE_GRAPH_BUILD_RUN_CONTEXT_H_ | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/opskernel/ops_kernel_info_types.h" | #include "common/opskernel/ops_kernel_info_types.h" | ||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| @@ -27,7 +27,7 @@ | |||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| #include "init/gelib.h" | #include "init/gelib.h" | ||||
| #include "common/string_util.h" | |||||
| #include "framework/common/string_util.h" | |||||
| #include "common/util/error_manager/error_manager.h" | #include "common/util/error_manager/error_manager.h" | ||||
| using std::map; | using std::map; | ||||
| @@ -13,11 +13,11 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "stream_graph_optimizer.h" | |||||
| #include "graph/build/stream_graph_optimizer.h" | |||||
| #include <securec.h> | #include <securec.h> | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/utils/node_utils.h" | #include "graph/utils/node_utils.h" | ||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| @@ -18,7 +18,7 @@ | |||||
| #define GE_GRAPH_BUILD_OPTIMIZE_STREAM_GRAPH_H_ | #define GE_GRAPH_BUILD_OPTIMIZE_STREAM_GRAPH_H_ | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/opskernel/ops_kernel_info_types.h" | #include "common/opskernel/ops_kernel_info_types.h" | ||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| @@ -18,8 +18,8 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <utility> | #include <utility> | ||||
| #include "common/profiling/profiling_manager.h" | #include "common/profiling/profiling_manager.h" | ||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| @@ -32,7 +32,7 @@ | |||||
| #include "graph/common/ge_call_wrapper.h" | #include "graph/common/ge_call_wrapper.h" | ||||
| #include "init/gelib.h" | #include "init/gelib.h" | ||||
| #include "graph/ge_local_context.h" | #include "graph/ge_local_context.h" | ||||
| #include "ge/ge_api_types.h" | |||||
| #include "external/ge/ge_api_types.h" | |||||
| #include "opskernel_manager/ops_kernel_builder_manager.h" | #include "opskernel_manager/ops_kernel_builder_manager.h" | ||||
| using domi::LogTimeStampDef; | using domi::LogTimeStampDef; | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "common/opskernel/ops_kernel_info_types.h" | #include "common/opskernel/ops_kernel_info_types.h" | ||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "common/math_util.h" | #include "common/math_util.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| using domi::Status; | using domi::Status; | ||||
| @@ -21,11 +21,11 @@ | |||||
| #include <functional> | #include <functional> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/debug/log.h" | |||||
| #include "common/types.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/ge_inner_error_codes.h" | #include "framework/common/ge_inner_error_codes.h" | ||||
| #include "graph/attr_value.h" | |||||
| #include "external/graph/attr_value.h" | |||||
| #include "graph/ge_tensor.h" | #include "graph/ge_tensor.h" | ||||
| #include "graph/utils/tensor_adapter.h" | #include "graph/utils/tensor_adapter.h" | ||||
| @@ -16,9 +16,9 @@ | |||||
| #include "graph/common/local_context.h" | #include "graph/common/local_context.h" | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/debug/ge_log.h" | |||||
| #include "omg/omg_inner_types.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/debug/ge_log.h" | |||||
| #include "framework/omg/omg_inner_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| namespace { | namespace { | ||||
| @@ -17,7 +17,7 @@ | |||||
| #ifndef GE_GRAPH_COMMON_LOCAL_CONTEXT_H_ | #ifndef GE_GRAPH_COMMON_LOCAL_CONTEXT_H_ | ||||
| #define GE_GRAPH_COMMON_LOCAL_CONTEXT_H_ | #define GE_GRAPH_COMMON_LOCAL_CONTEXT_H_ | ||||
| #include "omg/omg_inner_types.h" | |||||
| #include "framework/omg/omg_inner_types.h" | |||||
| namespace ge { | namespace ge { | ||||
| void SetLocalOmgContext(OmgContext &context); | void SetLocalOmgContext(OmgContext &context); | ||||
| @@ -22,8 +22,8 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| namespace ge { | namespace ge { | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "graph/common/transop_util.h" | #include "graph/common/transop_util.h" | ||||
| #include "common/types.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "graph/utils/type_utils.h" | #include "graph/utils/type_utils.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| @@ -24,14 +24,14 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/debug/memory_dumper.h" | #include "common/debug/memory_dumper.h" | ||||
| #include "common/ge_types.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "common/string_util.h" | |||||
| #include "common/types.h" | |||||
| #include "common/util.h" | |||||
| #include "ge/ge_api_types.h" | |||||
| #include "framework/common/string_util.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "external/ge/ge_api_types.h" | |||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/manager/graph_context.h" | #include "graph/manager/graph_context.h" | ||||
| #include "graph/manager/graph_manager_utils.h" | #include "graph/manager/graph_manager_utils.h" | ||||
| @@ -13,10 +13,10 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "case_label_maker.h" | |||||
| #include "graph/label/case_label_maker.h" | |||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "framework/common/op/ge_op_utils.h" | #include "framework/common/op/ge_op_utils.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| @@ -13,10 +13,10 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "if_label_maker.h" | |||||
| #include "graph/label/if_label_maker.h" | |||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "framework/common/op/ge_op_utils.h" | #include "framework/common/op/ge_op_utils.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| @@ -16,8 +16,8 @@ | |||||
| #include "graph/label/label_maker.h" | #include "graph/label/label_maker.h" | ||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "framework/common/op/ge_op_utils.h" | #include "framework/common/op/ge_op_utils.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| @@ -13,10 +13,10 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "partitioned_call_label_maker.h" | |||||
| #include "graph/label/partitioned_call_label_maker.h" | |||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/utils/graph_utils.h" | #include "graph/utils/graph_utils.h" | ||||
| @@ -13,10 +13,10 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "while_label_maker.h" | |||||
| #include "graph/label/while_label_maker.h" | |||||
| #include "common/util.h" | |||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/types.h" | #include "framework/common/types.h" | ||||
| #include "framework/common/op/ge_op_utils.h" | #include "framework/common/op/ge_op_utils.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/helper/model_helper.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| #include "common/model_parser/model_parser.h" | #include "common/model_parser/model_parser.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/load/model_manager/model_manager.h" | #include "graph/load/model_manager/model_manager.h" | ||||
| @@ -21,9 +21,9 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/debug/log.h" | |||||
| #include "common/fmk_types.h" | |||||
| #include "common/ge_types.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/fmk_types.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/manager/graph_manager_utils.h" | #include "graph/manager/graph_manager_utils.h" | ||||
| #include "graph/model.h" | #include "graph/model.h" | ||||
| @@ -18,8 +18,8 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "common/debug/log.h" | |||||
| #include "common/op/ge_op_utils.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/op/ge_op_utils.h" | |||||
| #include "framework/common/util.h" | #include "framework/common/util.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/utils/attr_utils.h" | #include "graph/utils/attr_utils.h" | ||||
| @@ -19,8 +19,8 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "common/ge_types.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| #include "proto/insert_op.pb.h" | #include "proto/insert_op.pb.h" | ||||
| @@ -15,8 +15,8 @@ | |||||
| */ | */ | ||||
| #include "graph/load/model_manager/cpu_queue_schedule.h" | #include "graph/load/model_manager/cpu_queue_schedule.h" | ||||
| #include "common/debug/ge_log.h" | |||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/ge_log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| namespace { | namespace { | ||||
| const uint32_t kCoreDim = 1; // for rtCpuKernelLaunch | const uint32_t kCoreDim = 1; // for rtCpuKernelLaunch | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <cstdint> | #include <cstdint> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_inner_error_codes.h" | |||||
| #include "framework/common/ge_inner_error_codes.h" | |||||
| #include "graph/load/model_manager/task_info/task_info.h" | #include "graph/load/model_manager/task_info/task_info.h" | ||||
| #include "graph/load/model_manager/zero_copy_offset.h" | #include "graph/load/model_manager/zero_copy_offset.h" | ||||
| #include "runtime/kernel.h" | #include "runtime/kernel.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include "common/debug/memory_dumper.h" | #include "common/debug/memory_dumper.h" | ||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "common/util.h" | |||||
| #include "framework/common/util.h" | |||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/util.h" | #include "framework/common/util.h" | ||||
| #include "graph/anchor.h" | #include "graph/anchor.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "proto/ge_ir.pb.h" | #include "proto/ge_ir.pb.h" | ||||
| #include "proto/op_mapping.pb.h" | #include "proto/op_mapping.pb.h" | ||||
| #include "runtime/mem.h" | #include "runtime/mem.h" | ||||
| #include "task_info/task_info.h" | |||||
| #include "graph/load/model_manager/task_info/task_info.h" | |||||
| #include "framework/common/ge_types.h" | #include "framework/common/ge_types.h" | ||||
| #include "runtime/base.h" | #include "runtime/base.h" | ||||
| @@ -18,9 +18,9 @@ | |||||
| #include <securec.h> | #include <securec.h> | ||||
| #include "common/debug/log.h" | |||||
| #include "common/scope_guard.h" | |||||
| #include "common/types.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "framework/common/scope_guard.h" | |||||
| #include "framework/common/types.h" | |||||
| namespace ge { | namespace ge { | ||||
| domi::Status InputDataWrapper::Init(const InputData &input, const OutputData &output) { | domi::Status InputDataWrapper::Init(const InputData &input, const OutputData &output) { | ||||
| @@ -22,8 +22,8 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "common/blocking_queue.h" | #include "common/blocking_queue.h" | ||||
| #include "common/ge_types.h" | |||||
| #include "common/types.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "framework/common/types.h" | |||||
| namespace ge { | namespace ge { | ||||
| /// | /// | ||||
| @@ -21,14 +21,14 @@ | |||||
| #include <map> | #include <map> | ||||
| #include <utility> | #include <utility> | ||||
| #include "common/debug/log.h" | |||||
| #include "framework/common/debug/log.h" | |||||
| #include "common/formats/formats.h" | #include "common/formats/formats.h" | ||||
| #include "common/formats/utils/formats_trans_utils.h" | #include "common/formats/utils/formats_trans_utils.h" | ||||
| #include "common/math/math_util.h" | #include "common/math/math_util.h" | ||||
| #include "common/op/ge_op_utils.h" | |||||
| #include "framework/common/op/ge_op_utils.h" | |||||
| #include "common/profiling/profiling_manager.h" | #include "common/profiling/profiling_manager.h" | ||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "common/scope_guard.h" | |||||
| #include "framework/common/scope_guard.h" | |||||
| #include "common/thread_pool.h" | #include "common/thread_pool.h" | ||||
| #include "framework/common/debug/ge_log.h" | #include "framework/common/debug/ge_log.h" | ||||
| #include "framework/common/util.h" | #include "framework/common/util.h" | ||||
| @@ -36,7 +36,7 @@ | |||||
| #include "graph/compute_graph.h" | #include "graph/compute_graph.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/ge_context.h" | #include "graph/ge_context.h" | ||||
| #include "graph/graph.h" | |||||
| #include "external/graph/graph.h" | |||||
| #include "graph/load/model_manager/cpu_queue_schedule.h" | #include "graph/load/model_manager/cpu_queue_schedule.h" | ||||
| #include "graph/load/model_manager/model_manager.h" | #include "graph/load/model_manager/model_manager.h" | ||||
| #include "graph/load/model_manager/tbe_handle_store.h" | #include "graph/load/model_manager/tbe_handle_store.h" | ||||
| @@ -1156,7 +1156,6 @@ Status DavinciModel::InitNetOutput(const ComputeGraphPtr &graph, const NodePtr & | |||||
| } | } | ||||
| size_t num = output_data_info_.size(); | size_t num = output_data_info_.size(); | ||||
| bool fusion_flag = false; | |||||
| size_t input_count = input_size_list.size(); | size_t input_count = input_size_list.size(); | ||||
| is_getnext_sink_dynamic_ = false; | is_getnext_sink_dynamic_ = false; | ||||
| @@ -1166,6 +1165,7 @@ Status DavinciModel::InitNetOutput(const ComputeGraphPtr &graph, const NodePtr & | |||||
| } | } | ||||
| for (size_t idx = 0; idx < input_count; ++idx) { | for (size_t idx = 0; idx < input_count; ++idx) { | ||||
| ZeroCopyOffset zero_copy_offset; | ZeroCopyOffset zero_copy_offset; | ||||
| bool fusion_flag = false; | |||||
| Status ret = zero_copy_offset.InitOutputDataInfo(input_size_list, virtual_addr_list, op_desc, idx, fusion_flag); | Status ret = zero_copy_offset.InitOutputDataInfo(input_size_list, virtual_addr_list, op_desc, idx, fusion_flag); | ||||
| GE_IF_BOOL_EXEC(ret != SUCCESS, | GE_IF_BOOL_EXEC(ret != SUCCESS, | ||||
| GELOGE(PARAM_INVALID, "[Init][DataInfo] of input_info %s failed.", op_desc->GetName().c_str()); | GELOGE(PARAM_INVALID, "[Init][DataInfo] of input_info %s failed.", op_desc->GetName().c_str()); | ||||
| @@ -3466,11 +3466,11 @@ bool DavinciModel::CheckUserAndModelSize(const int64_t &size, const int64_t &op_ | |||||
| } | } | ||||
| // The input and model input size can not be exactly equal because user input is not definite. | // The input and model input size can not be exactly equal because user input is not definite. | ||||
| if ((size + kDataMemAlignSizeCompare) < op_size) { | if ((size + kDataMemAlignSizeCompare) < op_size) { | ||||
| REPORT_INNER_ERROR("E19999", "%s size:%ld from user add align:%u < input_op_size:%ld in model, model_id:%u, " | |||||
| REPORT_INNER_ERROR("E19999", "%s size:%ld from user add align:%u < op_size:%ld in model, model_id:%u, " | |||||
| "check invalid", | "check invalid", | ||||
| input_or_output.c_str(), size, kDataMemAlignSizeCompare, op_size, model_id_); | input_or_output.c_str(), size, kDataMemAlignSizeCompare, op_size, model_id_); | ||||
| GELOGE(ACL_ERROR_GE_PARAM_INVALID, | GELOGE(ACL_ERROR_GE_PARAM_INVALID, | ||||
| "[Check][Param] %s size:%ld from user add align:%u < input_op_size:%ld in model, model_id:%u", | |||||
| "[Check][Param] %s size:%ld from user add align:%u < op_size:%ld in model, model_id:%u", | |||||
| input_or_output.c_str(), size, kDataMemAlignSizeCompare, op_size, model_id_); | input_or_output.c_str(), size, kDataMemAlignSizeCompare, op_size, model_id_); | ||||
| return false; | return false; | ||||
| } | } | ||||
| @@ -24,14 +24,14 @@ | |||||
| #include <thread> | #include <thread> | ||||
| #include <vector> | #include <vector> | ||||
| #include "common/ge_types.h" | |||||
| #include "common/helper/model_helper.h" | |||||
| #include "common/helper/om_file_helper.h" | |||||
| #include "framework/common/ge_types.h" | |||||
| #include "framework/common/helper/model_helper.h" | |||||
| #include "framework/common/helper/om_file_helper.h" | |||||
| #include "common/opskernel/ge_task_info.h" | #include "common/opskernel/ge_task_info.h" | ||||
| #include "common/properties_manager.h" | #include "common/properties_manager.h" | ||||
| #include "common/dump/exception_dumper.h" | #include "common/dump/exception_dumper.h" | ||||
| #include "common/dump/opdebug_register.h" | #include "common/dump/opdebug_register.h" | ||||
| #include "common/types.h" | |||||
| #include "framework/common/types.h" | |||||
| #include "framework/common/util.h" | #include "framework/common/util.h" | ||||
| #include "graph/debug/ge_attr_define.h" | #include "graph/debug/ge_attr_define.h" | ||||
| #include "graph/load/model_manager/aipp_utils.h" | #include "graph/load/model_manager/aipp_utils.h" | ||||
| @@ -43,12 +43,12 @@ | |||||
| #include "graph/model.h" | #include "graph/model.h" | ||||
| #include "graph/node.h" | #include "graph/node.h" | ||||
| #include "graph/op_desc.h" | #include "graph/op_desc.h" | ||||
| #include "graph/operator.h" | |||||
| #include "external/graph/operator.h" | |||||
| #include "graph/utils/attr_utils.h" | #include "graph/utils/attr_utils.h" | ||||
| #include "graph/utils/tensor_utils.h" | #include "graph/utils/tensor_utils.h" | ||||
| #include "mmpa/mmpa_api.h" | #include "mmpa/mmpa_api.h" | ||||
| #include "proto/task.pb.h" | #include "proto/task.pb.h" | ||||
| #include "task_info/task_info.h" | |||||
| #include "graph/load/model_manager/task_info/task_info.h" | |||||
| #include "graph/common/local_context.h" | #include "graph/common/local_context.h" | ||||
| using std::mutex; | using std::mutex; | ||||