Browse Source

Merge branch 'master' of gitee.com:mindspore/graphengine into graph-unknown

pull/1865/head
guopeian Gitee 4 years ago
parent
commit
d6750d0f3b
100 changed files with 291 additions and 329 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -1
      cmake/external_libs/protobuf_static.cmake
  3. +4
    -26
      ge/CMakeLists.txt
  4. +1
    -1
      ge/analyzer/analyzer.cc
  5. +2
    -2
      ge/client/ge_api.cc
  6. +12
    -22
      ge/common/CMakeLists.txt
  7. +2
    -2
      ge/common/base64.h
  8. +1
    -1
      ge/common/dump/dump_manager.h
  9. +1
    -1
      ge/common/dump/dump_op.h
  10. +1
    -1
      ge/common/dump/dump_properties.cc
  11. +1
    -1
      ge/common/dump/opdebug_register.cc
  12. +2
    -2
      ge/common/dump/opdebug_register.h
  13. +1
    -1
      ge/common/formats/format_transfers/format_transfer_fractal_z.cc
  14. +1
    -1
      ge/common/formats/format_transfers/format_transfer_nchw_fz_c04.cc
  15. +1
    -1
      ge/common/ge/datatype_util.h
  16. +2
    -2
      ge/common/ge/plugin_manager.h
  17. +10
    -2
      ge/common/ge/tbe_plugin_manager.cc
  18. +2
    -1
      ge/common/ge/tbe_plugin_manager.h
  19. +1
    -1
      ge/common/ge_format_util.cc
  20. +1
    -1
      ge/common/helper/model_cache_helper.h
  21. +1
    -1
      ge/common/math/fp16_math.cc
  22. +1
    -1
      ge/common/model_parser/model_parser.cc
  23. +1
    -1
      ge/common/op/attr_value_util.cc
  24. +38
    -3
      ge/common/profiling/ge_profiling.cc
  25. +1
    -1
      ge/common/profiling/ge_runner_profiling.cc
  26. +1
    -1
      ge/common/profiling/profiling_manager.cc
  27. +1
    -1
      ge/common/properties_manager.cc
  28. +1
    -1
      ge/common/properties_manager.h
  29. +1
    -1
      ge/common/thread_pool.cc
  30. +1
    -1
      ge/common/thread_pool.h
  31. +1
    -1
      ge/common/types.cc
  32. +26
    -56
      ge/common/util.cc
  33. +1
    -1
      ge/engine_manager/dnnengine_manager.cc
  34. +2
    -2
      ge/engine_manager/dnnengine_manager.h
  35. +11
    -11
      ge/executor/CMakeLists.txt
  36. +3
    -3
      ge/executor/ge_executor.cc
  37. +0
    -10
      ge/ge_local_engine/CMakeLists.txt
  38. +3
    -3
      ge/ge_local_engine/engine/ge_local_engine.cc
  39. +4
    -7
      ge/ge_local_engine/engine/host_cpu_engine.cc
  40. +1
    -1
      ge/ge_local_engine/engine/host_cpu_engine.h
  41. +2
    -2
      ge/ge_local_engine/ops_kernel_store/ge_local_ops_kernel_builder.cc
  42. +3
    -3
      ge/ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.cc
  43. +1
    -1
      ge/ge_local_engine/ops_kernel_store/op/ge_deleted_op.cc
  44. +1
    -1
      ge/ge_local_engine/ops_kernel_store/op/no_op.cc
  45. +1
    -1
      ge/ge_local_engine/ops_kernel_store/op/op.cc
  46. +1
    -1
      ge/ge_local_engine/ops_kernel_store/op/op.h
  47. +1
    -1
      ge/ge_local_engine/ops_kernel_store/op/op_factory.cc
  48. +0
    -8
      ge/ge_runtime/CMakeLists.txt
  49. +4
    -4
      ge/ge_runtime/model_runner.cc
  50. +2
    -2
      ge/ge_runtime/output.cc
  51. +2
    -2
      ge/ge_runtime/output.h
  52. +7
    -7
      ge/ge_runtime/runtime_model.cc
  53. +2
    -2
      ge/ge_runtime/runtime_model.h
  54. +1
    -1
      ge/ge_runtime/task/task.h
  55. +2
    -2
      ge/ge_runtime/task/task_factory.h
  56. +6
    -5
      ge/generator/ge_generator.cc
  57. +3
    -3
      ge/generator/generator_api.cc
  58. +1
    -1
      ge/graph/build/graph_builder.cc
  59. +5
    -5
      ge/graph/build/graph_builder.h
  60. +3
    -3
      ge/graph/build/label_allocator.cc
  61. +2
    -2
      ge/graph/build/memory/block_mem_assigner.cc
  62. +3
    -3
      ge/graph/build/memory/block_mem_assigner.h
  63. +2
    -2
      ge/graph/build/memory/hybrid_mem_assigner.h
  64. +2
    -2
      ge/graph/build/memory/mem_assigner.h
  65. +1
    -1
      ge/graph/build/memory/memory_assigner.cc
  66. +3
    -3
      ge/graph/build/memory/var_mem_assign_util.cc
  67. +2
    -2
      ge/graph/build/memory/var_mem_assign_util.h
  68. +5
    -5
      ge/graph/build/model_builder.cc
  69. +4
    -4
      ge/graph/build/model_builder.h
  70. +1
    -1
      ge/graph/build/run_context.cc
  71. +1
    -1
      ge/graph/build/run_context.h
  72. +1
    -1
      ge/graph/build/stream_allocator.cc
  73. +2
    -2
      ge/graph/build/stream_graph_optimizer.cc
  74. +1
    -1
      ge/graph/build/stream_graph_optimizer.h
  75. +3
    -3
      ge/graph/build/task_generator.cc
  76. +1
    -1
      ge/graph/build/task_generator.h
  77. +1
    -1
      ge/graph/common/bcast.cc
  78. +3
    -3
      ge/graph/common/bcast.h
  79. +3
    -3
      ge/graph/common/local_context.cc
  80. +1
    -1
      ge/graph/common/local_context.h
  81. +2
    -2
      ge/graph/common/omg_util.h
  82. +1
    -1
      ge/graph/common/transop_util.cc
  83. +6
    -6
      ge/graph/execute/graph_execute.h
  84. +3
    -3
      ge/graph/label/case_label_maker.cc
  85. +3
    -3
      ge/graph/label/if_label_maker.cc
  86. +2
    -2
      ge/graph/label/label_maker.cc
  87. +3
    -3
      ge/graph/label/partitioned_call_label_maker.cc
  88. +3
    -3
      ge/graph/label/while_label_maker.cc
  89. +1
    -1
      ge/graph/load/graph_loader.cc
  90. +3
    -3
      ge/graph/load/graph_loader.h
  91. +2
    -2
      ge/graph/load/model_manager/aipp_utils.cc
  92. +2
    -2
      ge/graph/load/model_manager/aipp_utils.h
  93. +2
    -2
      ge/graph/load/model_manager/cpu_queue_schedule.cc
  94. +1
    -1
      ge/graph/load/model_manager/cpu_queue_schedule.h
  95. +1
    -1
      ge/graph/load/model_manager/data_dumper.cc
  96. +1
    -1
      ge/graph/load/model_manager/data_dumper.h
  97. +3
    -3
      ge/graph/load/model_manager/data_inputer.cc
  98. +2
    -2
      ge/graph/load/model_manager/data_inputer.h
  99. +7
    -7
      ge/graph/load/model_manager/davinci_model.cc
  100. +6
    -6
      ge/graph/load/model_manager/davinci_model.h

+ 1
- 1
CMakeLists.txt View File

@@ -179,4 +179,4 @@ else ()

add_subdirectory(ge)

endif ()
endif ()

+ 1
- 1
cmake/external_libs/protobuf_static.cmake View File

@@ -13,7 +13,7 @@ if ((${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local) OR
endif()

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()
if (ENABLE_GITEE)
set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.13.0.tar.gz")


+ 4
- 26
ge/CMakeLists.txt View File

@@ -754,22 +754,15 @@ target_compile_options(ge_runner PRIVATE

target_include_directories(ge_runner SYSTEM PRIVATE
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/analyzer
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc/framework
${GE_CODE_DIR}/inc/framework/common
${METADEF_DIR}
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${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}/../abl/adump/external
#### blue zone
@@ -835,22 +828,15 @@ target_compile_options(ge_compiler PRIVATE

target_include_directories(ge_compiler SYSTEM PRIVATE
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/analyzer
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc/framework
${GE_CODE_DIR}/inc/framework/common
${METADEF_DIR}
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${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}/../abl/adump/external
#### blue zone ####
@@ -1000,18 +986,14 @@ set_target_properties(atc_stub_ge_compiler PROPERTIES
)

target_include_directories(atc_stub_ge_compiler PRIVATE
${GE_CODE_DIR}
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/analyzer
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/framework
${GE_CODE_DIR}/inc/framework/common
${GE_CODE_DIR}/inc/external
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${METADEF_DIR}/inc
#### yellow zone ####
${GE_CODE_DIR}/../inc/cce
${GE_CODE_DIR}/../inc
${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external
${GE_CODE_DIR}/../abl/adump/external
#### blue zone ####
@@ -1041,18 +1023,14 @@ set_target_properties(fwk_stub_ge_runner PROPERTIES
)

target_include_directories(fwk_stub_ge_runner PRIVATE
${GE_CODE_DIR}
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/analyzer
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc/framework
${GE_CODE_DIR}/inc/framework/common
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${METADEF_DIR}/inc
#### yellow zone ####
${GE_CODE_DIR}/../inc/cce
${GE_CODE_DIR}/../inc
${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external
${GE_CODE_DIR}/../abl/adump/external
#### blue zone ####


+ 1
- 1
ge/analyzer/analyzer.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "analyzer.h"
#include "analyzer/analyzer.h"

#include <cstdlib>
#include <cstdio>


+ 2
- 2
ge/client/ge_api.cc View File

@@ -14,10 +14,10 @@
* limitations under the License.
*/

#include "ge/ge_api.h"
#include "external/ge/ge_api.h"
#include <iostream>
#include <malloc.h>
#include "common/debug/log.h"
#include "framework/common/debug/log.h"
#include "framework/common/debug/ge_log.h"
#include "common/ge/datatype_util.h"
#include "proto/ge_api.pb.h"


+ 12
- 22
ge/common/CMakeLists.txt View File

@@ -72,24 +72,18 @@ target_compile_options(ge_common PRIVATE

target_include_directories(ge_common PRIVATE
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/common
${GE_CODE_DIR}/ge/common/op
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${GE_DEPEND_DIR}/inc
${GE_DEPEND_DIR}/inc/cce
$<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc>
#### 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
@@ -98,6 +92,9 @@ target_link_options(ge_common PRIVATE

target_link_libraries(ge_common PRIVATE
$<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
-Wl,--no-as-needed
graph
@@ -139,28 +136,25 @@ target_compile_options(ge_common_static PRIVATE

target_include_directories(ge_common_static PRIVATE
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/common
${GE_CODE_DIR}/ge/common/op
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${GE_DEPEND_DIR}/inc
${GE_DEPEND_DIR}/inc/cce
$<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc>
#### 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
$<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
json
c_sec
@@ -196,15 +190,11 @@ target_compile_options(ge_common PRIVATE

target_include_directories(ge_common PRIVATE
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/ge/common
${GE_CODE_DIR}/ge/common/op
${GE_CODE_DIR}/inc/external
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
${GE_CODE_DIR}/third_party/fwkacllib/inc


+ 2
- 2
ge/common/base64.h View File

@@ -20,8 +20,8 @@
#include <algorithm>
#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 {


+ 1
- 1
ge/common/dump/dump_manager.h View File

@@ -20,7 +20,7 @@
#include <mutex>

#include "common/dump/dump_properties.h"
#include "common/ge_types.h"
#include "framework/common/ge_types.h"

namespace ge {
class DumpManager {


+ 1
- 1
ge/common/dump/dump_op.h View File

@@ -19,7 +19,7 @@

#include <string>

#include "common/ge_inner_error_codes.h"
#include "framework/common/ge_inner_error_codes.h"
#include "common/properties_manager.h"
#include "proto/op_mapping.pb.h"
#include "runtime/stream.h"


+ 1
- 1
ge/common/dump/dump_properties.cc View File

@@ -20,7 +20,7 @@
#include <string>

#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/log.h"
#include "framework/common/ge_types.h"


+ 1
- 1
ge/common/dump/opdebug_register.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "opdebug_register.h"
#include "common/dump/opdebug_register.h"

namespace {
const size_t kOpDebugMemorySize = 2048UL;


+ 2
- 2
ge/common/dump/opdebug_register.h View File

@@ -18,8 +18,8 @@
#define GE_COMMON_DUMP_OPDEBUG_REGISTER_H_

#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"

namespace ge {


+ 1
- 1
ge/common/formats/format_transfers/format_transfer_fractal_z.cc View File

@@ -19,7 +19,7 @@
#include <securec.h>
#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_trans_utils.h"
#include "framework/common/debug/ge_log.h"


+ 1
- 1
ge/common/formats/format_transfers/format_transfer_nchw_fz_c04.cc View File

@@ -23,7 +23,7 @@

#include "common/formats/utils/formats_definitions.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 "graph/utils/type_utils.h"



+ 1
- 1
ge/common/ge/datatype_util.h View File

@@ -20,7 +20,7 @@
#include <map>
#include <vector>

#include "graph/types.h"
#include "external/graph/types.h"

namespace ge {
static const int32_t kGeSizeFloat = sizeof(float);


+ 2
- 2
ge/common/ge/plugin_manager.h View File

@@ -26,8 +26,8 @@
#include <typeinfo>
#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 "mmpa/mmpa_api.h"



+ 10
- 2
ge/common/ge/tbe_plugin_manager.cc View File

@@ -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
string real_path = RealPath(path.c_str());
// 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,
aicpu_host_so_suff);
} else {
FindParserSo(full_name, file_list, caffe_parser_path);
FindParserSo(full_name, file_list, caffe_parser_path, recursive_depth + 1);
}
}
mmScandirFree(entries, ret);


+ 2
- 1
ge/common/ge/tbe_plugin_manager.h View File

@@ -57,7 +57,8 @@ class TBEPluginManager {
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 &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 GetCustomOpPath(std::string &customop_path);
void LoadCustomOpLib();


+ 1
- 1
ge/common/ge_format_util.cc View File

@@ -15,7 +15,7 @@
*/

#include "framework/common/ge_format_util.h"
#include "formats/formats.h"
#include "common/formats/formats.h"

namespace ge {
GE_FUNC_DEV_VISIBILITY GE_FUNC_HOST_VISIBILITY Status GeFormatUtil::TransShape(const TensorDesc &src_desc,


+ 1
- 1
ge/common/helper/model_cache_helper.h View File

@@ -21,7 +21,7 @@
#include <set>
#include <string>

#include "ge/ge_api_error_codes.h"
#include "external/ge/ge_api_error_codes.h"
#include "graph/compute_graph.h"
#include "graph/manager/graph_var_manager.h"
#include "model/ge_model.h"


+ 1
- 1
ge/common/math/fp16_math.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "fp16_math.h"
#include "common/math/fp16_math.h"
#include "external/register/register_types.h"

namespace ge {


+ 1
- 1
ge/common/model_parser/model_parser.cc View File

@@ -20,7 +20,7 @@
#include <string>

#include "securec.h"
#include "common/helper/model_helper.h"
#include "framework/common/helper/model_helper.h"

namespace ge {
FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ModelParserBase::ModelParserBase() {}


+ 1
- 1
ge/common/op/attr_value_util.cc View File

@@ -17,7 +17,7 @@
#include "framework/common/op/attr_value_util.h"
#include "framework/common/debug/log.h"
#include "framework/common/util.h"
#include "register/register_types.h"
#include "external/register/register_types.h"

namespace ge {
#define DEFINE_SET_ATTR_VALUE_ONE(ARG_TYPE, FIELD) \


+ 38
- 3
ge/common/profiling/ge_profiling.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "common/profiling/ge_profiling.h"
#include "framework/common/profiling/ge_profiling.h"
#include "runtime/base.h"
#include "common/profiling/profiling_manager.h"
#include "framework/common/debug/ge_log.h"
@@ -22,6 +22,7 @@
#include "graph/load/graph_loader.h"
#include "init/gelib.h"
#include "framework/common/ge_inner_error_codes.h"
#include "model/ge_model.h"

namespace {
const uint32_t kDeviceListIndex = 3;
@@ -42,6 +43,10 @@ const std::map<ProfCommandHandleType, std::string> kProfCommandTypeMap = {
{kProfCommandhandleFinalize, kProfilingFinalize},
{kProfCommandhandleModelSubscribe, kProfModelSubscribe},
{kProfCommandhandleModelUnsubscribe, kProfModelUnsubscribe}};

const uint64_t kModelId = ge::INVALID_MODEL_ID;
const uint16_t kStepStart = 0;
const uint16_t kStepEnd = 1;
} // namespace

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;
}

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;
}

+ 1
- 1
ge/common/profiling/ge_runner_profiling.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "common/profiling/ge_runner_profiling.h"
#include "framework/common/profiling/ge_runner_profiling.h"
#include "init/gelib.h"

bool IsInitialize() {


+ 1
- 1
ge/common/profiling/profiling_manager.cc View File

@@ -21,7 +21,7 @@
#include "framework/common/string_util.h"
#include "graph/ge_context.h"
#include "graph/utils/type_utils.h"
#include "graph/types.h"
#include "external/graph/types.h"
#include "runtime/base.h"
#include "graph/load/model_manager/davinci_model.h"
#include "mmpa/mmpa_api.h"


+ 1
- 1
ge/common/properties_manager.cc View File

@@ -21,7 +21,7 @@
#include <fstream>

#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/log.h"
#include "framework/common/ge_types.h"


+ 1
- 1
ge/common/properties_manager.h View File

@@ -25,7 +25,7 @@

#include "common/dump/dump_properties.h"
#include "graph/op_desc.h"
#include "common/ge_compiler_options.h"
#include "framework/common/ge_compiler_options.h"

namespace ge {
// Configuration property management


+ 1
- 1
ge/common/thread_pool.cc View File

@@ -23,7 +23,7 @@
#include <utility>
#include <vector>

#include "register/register_types.h"
#include "external/register/register_types.h"

namespace ge {
FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY ThreadPool::ThreadPool(uint32_t size) : is_stoped_(false) {


+ 1
- 1
ge/common/thread_pool.h View File

@@ -31,7 +31,7 @@
#include "framework/common/debug/ge_log.h"
#include "framework/common/ge_inner_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"

namespace ge {


+ 1
- 1
ge/common/types.cc View File

@@ -15,7 +15,7 @@
*/

#include "framework/common/types.h"
#include "graph/types.h"
#include "external/graph/types.h"

namespace ge {
// dump


+ 26
- 56
ge/common/util.cc View File

@@ -340,15 +340,24 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY std::string RealPath(const char
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,
const std::string &atc_param) {
// The specified path is empty
std::map<std::string, std::string> args_map;
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 {
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());
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());
// Unable to get absolute path (does not exist or does not have permission to access)
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));
return false;
}
@@ -378,23 +382,12 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckInputPathValid(const

GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(
!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);

// The absolute path points to a file that is not readable
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));
return false;
}
@@ -406,10 +399,10 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY bool CheckOutputPathValid(const
const std::string &atc_param) {
// The specified path is 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 {
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});
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,
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);

// 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(
!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);

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()) {
// File is not readable or writable
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));
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));
// Determine whether the specified path is valid by creating the path
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());
return false;
}


+ 1
- 1
ge/engine_manager/dnnengine_manager.cc View File

@@ -22,7 +22,7 @@
#include <map>
#include <utility>

#include "common/debug/log.h"
#include "framework/common/debug/log.h"
#include "common/ge/ge_util.h"
#include "common/util/error_manager/error_manager.h"
#include "framework/common/debug/ge_log.h"


+ 2
- 2
ge/engine_manager/dnnengine_manager.h View File

@@ -26,9 +26,9 @@
#include "nlohmann/json.hpp"

#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 "engine/dnnengine.h"
#include "framework/engine/dnnengine.h"
#include "graph/op_desc.h"
#include "graph/node.h"



+ 11
- 11
ge/executor/CMakeLists.txt View File

@@ -182,20 +182,20 @@ target_include_directories(ge_executor SYSTEM PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${GE_CODE_DIR}/../inc
${GE_CODE_DIR}/../inc/cce
$<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc>
#### 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
$<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
ascend_protobuf_static
c_sec
@@ -233,15 +233,12 @@ target_include_directories(ge_executor_shared PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
${GE_CODE_DIR}/../inc
${GE_CODE_DIR}/../inc/cce
$<$<NOT:$<BOOL:${ENABLE_OPEN_SRC}>>:${GE_DEPEND_DIR}/inc>
#### 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
@@ -251,6 +248,9 @@ target_link_options(ge_executor_shared PRIVATE

target_link_libraries(ge_executor_shared PRIVATE
$<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
ge_common
runtime


+ 3
- 3
ge/executor/ge_executor.cc View File

@@ -14,13 +14,13 @@
* limitations under the License.
*/

#include "executor/ge_executor.h"
#include "framework/executor/ge_executor.h"
#include <cce/cce.h>
#include <ctime>
#include <iostream>
#include "common/debug/log.h"
#include "framework/common/debug/log.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/dump/dump_manager.h"
#include "graph/execute/graph_execute.h"


+ 0
- 10
ge/ge_local_engine/CMakeLists.txt View File

@@ -41,8 +41,6 @@ target_include_directories(ge_local_engine PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
@@ -91,8 +89,6 @@ target_include_directories(atc_ge_local_engine PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
@@ -146,8 +142,6 @@ target_include_directories(ge_local_opskernel_builder PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
@@ -197,8 +191,6 @@ target_include_directories(atc_ge_local_opskernel_builder PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####
@@ -254,8 +246,6 @@ target_include_directories(ge_local_opskernel_builder_static PRIVATE
${GE_CODE_DIR}/inc/framework
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/graphengine_protos
#### yellow zone ####


+ 3
- 3
ge/ge_local_engine/engine/ge_local_engine.cc View File

@@ -19,10 +19,10 @@
#include <memory>
#include <string>
#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 "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_local {


+ 4
- 7
ge/ge_local_engine/engine/host_cpu_engine.cc View File

@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* 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/tensor_adapter.h"
#include "graph/utils/node_utils.h"
#include "graph/utils/type_utils.h"
#include "register/op_kernel_registry.h"
#include "register/host_cpu_context.h"
#include "common/ge/ge_util.h"
#include "common/ge/plugin_manager.h"
#include "graph/utils/type_utils.h"
#include "common/fp16_t.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) {
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);
if (kernel == nullptr) {
GELOGD("Op of type %s is not supported by host cpu engine", op_type.c_str());


+ 1
- 1
ge/ge_local_engine/engine/host_cpu_engine.h View File

@@ -33,7 +33,7 @@
#include <mutex>
#include "framework/common/ge_inner_error_codes.h"
#include "graph/node.h"
#include "graph/operator.h"
#include "external/graph/operator.h"
#include "external/../register/register.h"

namespace ge {


+ 2
- 2
ge/ge_local_engine/ops_kernel_store/ge_local_ops_kernel_builder.cc View File

@@ -14,9 +14,9 @@
* 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 "common/ge_inner_error_codes.h"
#include "framework/common/ge_inner_error_codes.h"
#include "common/ge/ge_util.h"
#include "framework/common/debug/ge_log.h"
#include "graph/utils/node_utils.h"


+ 3
- 3
ge/ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.cc View File

@@ -16,14 +16,14 @@

#include "ge_local_engine/ops_kernel_store/ge_local_ops_kernel_info.h"
#include <memory>
#include "common/constant/constant.h"
#include "ge_local_engine/common/constant/constant.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 "graph/utils/node_utils.h"
#include "graph/utils/tensor_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"

namespace ge {


+ 1
- 1
ge/ge_local_engine/ops_kernel_store/op/ge_deleted_op.cc View File

@@ -16,7 +16,7 @@

#include "ge_local_engine/ops_kernel_store/op/ge_deleted_op.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"

namespace ge {


+ 1
- 1
ge/ge_local_engine/ops_kernel_store/op/no_op.cc View File

@@ -16,7 +16,7 @@

#include "ge_local_engine/ops_kernel_store/op/no_op.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"

namespace ge {


+ 1
- 1
ge/ge_local_engine/ops_kernel_store/op/op.cc View File

@@ -16,7 +16,7 @@

#include "ge_local_engine/ops_kernel_store/op/op.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/utils/anchor_utils.h"
#include "graph/utils/tensor_utils.h"


+ 1
- 1
ge/ge_local_engine/ops_kernel_store/op/op.h View File

@@ -20,7 +20,7 @@
#include <climits>
#include <string>
#include <vector>
#include "common/ge_inner_error_codes.h"
#include "framework/common/ge_inner_error_codes.h"
#include "graph/node.h"

namespace ge {


+ 1
- 1
ge/ge_local_engine/ops_kernel_store/op/op_factory.cc View File

@@ -16,7 +16,7 @@

#include "ge_local_engine/ops_kernel_store/op/op_factory.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"

namespace ge {


+ 0
- 8
ge/ge_runtime/CMakeLists.txt View File

@@ -34,21 +34,13 @@ target_compile_definitions(ge_runtime PRIVATE

target_include_directories(ge_runtime PRIVATE
${CMAKE_CURRENT_LIST_DIR}
${GE_CODE_DIR}
${GE_CODE_DIR}/ge
${GE_CODE_DIR}/inc
${GE_CODE_DIR}/inc/graph
${GE_CODE_DIR}/inc/external
${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
${METADEF_DIR}
${METADEF_DIR}/inc
${METADEF_DIR}/inc/external/graph
${METADEF_DIR}/inc/external
${METADEF_DIR}/inc/graph
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/proto/ge
)


+ 4
- 4
ge/ge_runtime/model_runner.cc View File

@@ -14,12 +14,12 @@
* 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 "common/ge_inner_error_codes.h"
#include "framework/common/ge_inner_error_codes.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"

namespace ge {


+ 2
- 2
ge/ge_runtime/output.cc View File

@@ -15,8 +15,8 @@
*/

#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"

namespace ge {


+ 2
- 2
ge/ge_runtime/output.h View File

@@ -19,8 +19,8 @@

#include <memory>
#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 model_runner {


+ 7
- 7
ge/ge_runtime/runtime_model.cc View File

@@ -16,15 +16,15 @@

#include "ge_runtime/runtime_model.h"
#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/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"

namespace ge {


+ 2
- 2
ge/ge_runtime/runtime_model.h View File

@@ -20,8 +20,8 @@
#include <memory>
#include <string>
#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/rt_model.h"



+ 1
- 1
ge/ge_runtime/task/task.h View File

@@ -23,7 +23,7 @@
#include <string>
#include "runtime/rt_model.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"

namespace ge {


+ 2
- 2
ge/ge_runtime/task/task_factory.h View File

@@ -21,9 +21,9 @@
#include <map>
#include <memory>
#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 "ge_runtime/task_info.h"
#include "framework/ge_runtime/task_info.h"

namespace ge {
namespace model_runner {


+ 6
- 5
ge/generator/ge_generator.cc View File

@@ -14,19 +14,19 @@
* limitations under the License.
*/

#include "generator/ge_generator.h"
#include "framework/generator/ge_generator.h"

#include <atomic>

#include "common/ge/ge_util.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 "framework/common/debug/ge_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/ge_context.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, ATTR_NAME_IS_ORIGINAL_INPUT, true);

GE_CHK_BOOL_EXEC(data_op->AddInputDesc(tensor) == GRAPH_SUCCESS,
REPORT_CALL_ERROR("E19999", "AddInputDesc failed for node:%s", data_op->GetName().c_str());


+ 3
- 3
ge/generator/generator_api.cc View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "generator/generator_api.h"
#include "framework/generator/generator_api.h"
#include "common/ge/ge_util.h"
#include "common/util.h"
#include "framework/common/util.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_tensor.h"
#include "graph/op_desc.h"


+ 1
- 1
ge/graph/build/graph_builder.cc View File

@@ -17,7 +17,7 @@
#include "graph/build/graph_builder.h"
#include "graph/build/memory/graph_mem_assigner.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/run_context.h"
#include "graph/build/stream_graph_optimizer.h"


+ 5
- 5
ge/graph/build/graph_builder.h View File

@@ -22,16 +22,16 @@
#include <memory>
#include <string>
#include <vector>
#include "common/debug/log.h"
#include "framework/common/debug/log.h"
#include "common/debug/memory_dumper.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/task_generator.h"
#include "graph/compute_graph.h"
#include "graph/graph.h"
#include "external/graph/graph.h"
#include "graph/manager/graph_manager_utils.h"
#include "graph/model.h"
#include "graph/node.h"


+ 3
- 3
ge/graph/build/label_allocator.cc View File

@@ -14,11 +14,11 @@
* limitations under the License.
*/

#include "label_allocator.h"
#include "graph/build/label_allocator.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/utils/graph_utils.h"
#include "graph/label/label_maker.h"


+ 2
- 2
ge/graph/build/memory/block_mem_assigner.cc View File

@@ -24,7 +24,7 @@
#include "graph/buffer.h"
#include "graph/ge_attr_value.h"
#include "graph/ge_context.h"
#include "graph/types.h"
#include "external/graph/types.h"
#include "graph/node.h"
#include "graph/utils/graph_utils.h"
#include "graph/utils/node_utils.h"
@@ -36,7 +36,7 @@

#include "graph/common/local_context.h"
#include "graph/optimize/common/params.h"
#include "omg/omg_inner_types.h"
#include "framework/omg/omg_inner_types.h"
#include "runtime/mem.h"

using std::map;


+ 3
- 3
ge/graph/build/memory/block_mem_assigner.h View File

@@ -24,9 +24,9 @@
#include <utility>
#include <vector>
#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/compute_graph.h"
#include "graph/utils/graph_utils.h"


+ 2
- 2
ge/graph/build/memory/hybrid_mem_assigner.h View File

@@ -22,8 +22,8 @@
#include "graph/build/memory/block_mem_assigner.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 {
using BlockMemAssignerPtr = std::shared_ptr<BlockMemAssigner>;


+ 2
- 2
ge/graph/build/memory/mem_assigner.h View File

@@ -17,8 +17,8 @@
#ifndef 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 {
static const int64_t kInvalidOffset = -1;



+ 1
- 1
ge/graph/build/memory/memory_assigner.cc View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/

#include "memory/memory_assigner.h"
#include "framework/memory/memory_assigner.h"
#include <memory>
#include "framework/common/debug/ge_log.h"
#include "graph/build/memory/graph_mem_assigner.h"


+ 3
- 3
ge/graph/build/memory/var_mem_assign_util.cc View File

@@ -16,14 +16,14 @@

#include "graph/build/memory/var_mem_assign_util.h"
#include <vector>
#include "common/types.h"
#include "framework/common/types.h"
#include "framework/common/debug/ge_log.h"
#include "graph/common/transop_util.h"
#include "graph/debug/ge_attr_define.h"
#include "graph/manager/graph_mem_allocator.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/graph_utils.h"
#include "graph/utils/tensor_utils.h"


+ 2
- 2
ge/graph/build/memory/var_mem_assign_util.h View File

@@ -17,8 +17,8 @@
#ifndef GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_
#define GE_GRAPH_BUILD_MEMORY_VAR_MEM_ASSIGN_UTIL_H_
#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"

namespace ge {


+ 5
- 5
ge/graph/build/model_builder.cc View File

@@ -22,7 +22,7 @@
#include "common/dump/dump_manager.h"
#include "framework/common/debug/ge_log.h"
#include "graph/anchor.h"
#include "graph/attr_value.h"
#include "external/graph/attr_value.h"
#include "graph/buffer.h"
#include "graph/build/stream_allocator.h"
#include "graph/common/omg_util.h"
@@ -31,11 +31,11 @@
#include "graph/debug/ge_attr_define.h"
#include "graph/ge_attr_value.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_var_manager.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/graph_utils.h"
#include "graph/utils/node_utils.h"
@@ -43,8 +43,8 @@
#include "graph/utils/tensor_utils.h"
#include "graph/utils/type_utils.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 "graph/passes/set_input_output_offset_pass.h"
#include "graph/build/memory/block_mem_assigner.h"


+ 4
- 4
ge/graph/build/model_builder.h View File

@@ -23,17 +23,17 @@
#include <string>
#include <utility>
#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/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/manager/graph_manager_utils.h"
#include "graph/model.h"
#include "graph/node.h"
#include "model/ge_model.h"
#include "omg/omg_inner_types.h"
#include "framework/omg/omg_inner_types.h"

namespace ge {
class ModelBuilder {


+ 1
- 1
ge/graph/build/run_context.cc View File

@@ -15,7 +15,7 @@
*/
#include "graph/build/run_context.h"

#include "common/util.h"
#include "framework/common/util.h"
#include "framework/common/debug/ge_log.h"
#include "graph/debug/ge_attr_define.h"
#include "graph/common/omg_util.h"


+ 1
- 1
ge/graph/build/run_context.h View File

@@ -18,7 +18,7 @@
#define GE_GRAPH_BUILD_RUN_CONTEXT_H_

#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 "framework/common/types.h"
#include "graph/compute_graph.h"


+ 1
- 1
ge/graph/build/stream_allocator.cc View File

@@ -27,7 +27,7 @@
#include "graph/ge_context.h"
#include "graph/utils/graph_utils.h"
#include "init/gelib.h"
#include "common/string_util.h"
#include "framework/common/string_util.h"
#include "common/util/error_manager/error_manager.h"

using std::map;


+ 2
- 2
ge/graph/build/stream_graph_optimizer.cc View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "stream_graph_optimizer.h"
#include "graph/build/stream_graph_optimizer.h"

#include <securec.h>

#include "common/util.h"
#include "framework/common/util.h"
#include "framework/common/debug/ge_log.h"
#include "graph/utils/node_utils.h"
#include "graph/utils/tensor_utils.h"


+ 1
- 1
ge/graph/build/stream_graph_optimizer.h View File

@@ -18,7 +18,7 @@
#define GE_GRAPH_BUILD_OPTIMIZE_STREAM_GRAPH_H_

#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 "framework/common/types.h"
#include "graph/compute_graph.h"


+ 3
- 3
ge/graph/build/task_generator.cc View File

@@ -18,8 +18,8 @@
#include <string>
#include <utility>
#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 "graph/debug/ge_attr_define.h"
@@ -32,7 +32,7 @@
#include "graph/common/ge_call_wrapper.h"
#include "init/gelib.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"

using domi::LogTimeStampDef;


+ 1
- 1
ge/graph/build/task_generator.h View File

@@ -21,7 +21,7 @@
#include <memory>
#include <string>
#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 "framework/common/types.h"
#include "graph/compute_graph.h"


+ 1
- 1
ge/graph/common/bcast.cc View File

@@ -19,7 +19,7 @@
#include <vector>

#include "common/math_util.h"
#include "common/util.h"
#include "framework/common/util.h"

using domi::Status;



+ 3
- 3
ge/graph/common/bcast.h View File

@@ -21,11 +21,11 @@
#include <functional>
#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/ge_inner_error_codes.h"
#include "graph/attr_value.h"
#include "external/graph/attr_value.h"
#include "graph/ge_tensor.h"
#include "graph/utils/tensor_adapter.h"



+ 3
- 3
ge/graph/common/local_context.cc View File

@@ -16,9 +16,9 @@

#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 {


+ 1
- 1
ge/graph/common/local_context.h View File

@@ -17,7 +17,7 @@
#ifndef 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 {
void SetLocalOmgContext(OmgContext &context);


+ 2
- 2
ge/graph/common/omg_util.h View File

@@ -22,8 +22,8 @@
#include <utility>
#include <vector>

#include "common/types.h"
#include "common/util.h"
#include "framework/common/types.h"
#include "framework/common/util.h"
#include "graph/node.h"

namespace ge {


+ 1
- 1
ge/graph/common/transop_util.cc View File

@@ -16,7 +16,7 @@

#include "graph/common/transop_util.h"

#include "common/types.h"
#include "framework/common/types.h"
#include "graph/utils/type_utils.h"
#include "framework/common/debug/ge_log.h"



+ 6
- 6
ge/graph/execute/graph_execute.h View File

@@ -24,14 +24,14 @@
#include <memory>
#include <vector>

#include "common/debug/log.h"
#include "framework/common/debug/log.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/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/manager/graph_context.h"
#include "graph/manager/graph_manager_utils.h"


+ 3
- 3
ge/graph/label/case_label_maker.cc View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* 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/op/ge_op_utils.h"
#include "graph/debug/ge_attr_define.h"


+ 3
- 3
ge/graph/label/if_label_maker.cc View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* 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/op/ge_op_utils.h"
#include "graph/debug/ge_attr_define.h"


+ 2
- 2
ge/graph/label/label_maker.cc View File

@@ -16,8 +16,8 @@

#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/op/ge_op_utils.h"
#include "graph/debug/ge_attr_define.h"


+ 3
- 3
ge/graph/label/partitioned_call_label_maker.cc View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* 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 "graph/debug/ge_attr_define.h"
#include "graph/utils/graph_utils.h"


+ 3
- 3
ge/graph/label/while_label_maker.cc View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* 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/op/ge_op_utils.h"
#include "graph/debug/ge_attr_define.h"


+ 1
- 1
ge/graph/load/graph_loader.cc View File

@@ -19,7 +19,7 @@
#include <string>
#include <vector>

#include "common/helper/model_helper.h"
#include "framework/common/helper/model_helper.h"
#include "common/model_parser/model_parser.h"
#include "graph/ge_context.h"
#include "graph/load/model_manager/model_manager.h"


+ 3
- 3
ge/graph/load/graph_loader.h View File

@@ -21,9 +21,9 @@
#include <string>
#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/manager/graph_manager_utils.h"
#include "graph/model.h"


+ 2
- 2
ge/graph/load/model_manager/aipp_utils.cc View File

@@ -18,8 +18,8 @@

#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 "graph/debug/ge_attr_define.h"
#include "graph/utils/attr_utils.h"


+ 2
- 2
ge/graph/load/model_manager/aipp_utils.h View File

@@ -19,8 +19,8 @@

#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 "proto/insert_op.pb.h"



+ 2
- 2
ge/graph/load/model_manager/cpu_queue_schedule.cc View File

@@ -15,8 +15,8 @@
*/

#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 {
const uint32_t kCoreDim = 1; // for rtCpuKernelLaunch


+ 1
- 1
ge/graph/load/model_manager/cpu_queue_schedule.h View File

@@ -19,7 +19,7 @@
#include <cstdint>
#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/zero_copy_offset.h"
#include "runtime/kernel.h"


+ 1
- 1
ge/graph/load/model_manager/data_dumper.cc View File

@@ -24,7 +24,7 @@

#include "common/debug/memory_dumper.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/util.h"
#include "graph/anchor.h"


+ 1
- 1
ge/graph/load/model_manager/data_dumper.h View File

@@ -29,7 +29,7 @@
#include "proto/ge_ir.pb.h"
#include "proto/op_mapping.pb.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 "runtime/base.h"



+ 3
- 3
ge/graph/load/model_manager/data_inputer.cc View File

@@ -18,9 +18,9 @@

#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 {
domi::Status InputDataWrapper::Init(const InputData &input, const OutputData &output) {


+ 2
- 2
ge/graph/load/model_manager/data_inputer.h View File

@@ -22,8 +22,8 @@
#include <vector>

#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 {
///


+ 7
- 7
ge/graph/load/model_manager/davinci_model.cc View File

@@ -21,14 +21,14 @@
#include <map>
#include <utility>

#include "common/debug/log.h"
#include "framework/common/debug/log.h"
#include "common/formats/formats.h"
#include "common/formats/utils/formats_trans_utils.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/properties_manager.h"
#include "common/scope_guard.h"
#include "framework/common/scope_guard.h"
#include "common/thread_pool.h"
#include "framework/common/debug/ge_log.h"
#include "framework/common/util.h"
@@ -36,7 +36,7 @@
#include "graph/compute_graph.h"
#include "graph/debug/ge_attr_define.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/model_manager.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();
bool fusion_flag = false;

size_t input_count = input_size_list.size();
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) {
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);
GE_IF_BOOL_EXEC(ret != SUCCESS,
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.
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",
input_or_output.c_str(), size, kDataMemAlignSizeCompare, op_size, model_id_);
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_);
return false;
}


+ 6
- 6
ge/graph/load/model_manager/davinci_model.h View File

@@ -24,14 +24,14 @@
#include <thread>
#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/properties_manager.h"
#include "common/dump/exception_dumper.h"
#include "common/dump/opdebug_register.h"
#include "common/types.h"
#include "framework/common/types.h"
#include "framework/common/util.h"
#include "graph/debug/ge_attr_define.h"
#include "graph/load/model_manager/aipp_utils.h"
@@ -43,12 +43,12 @@
#include "graph/model.h"
#include "graph/node.h"
#include "graph/op_desc.h"
#include "graph/operator.h"
#include "external/graph/operator.h"
#include "graph/utils/attr_utils.h"
#include "graph/utils/tensor_utils.h"
#include "mmpa/mmpa_api.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"

using std::mutex;


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save