diff --git a/ge/client/ge_prof.cc b/ge/client/ge_prof.cc index ede38430..45a315b7 100644 --- a/ge/client/ge_prof.cc +++ b/ge/client/ge_prof.cc @@ -39,12 +39,21 @@ const std::string kDeviceIdList = "devIdList"; const std::string kAicoreMetrics = "aicoreMetrics"; const std::map kProfAicoreMetricsToString = { +<<<<<<< HEAD:ge/client/ge_prof.cc {ge::kAicoreArithmaticThroughput, "AICORE_ARITHMATIC_THROUGHPUT"}, {ge::kAicorePipeline, "AICORE_PIPELINE"}, {ge::kAicoreSynchronization, "AICORE_SYNCHRONIZATION"}, {ge::kAicoreMemory, "AICORE_MEMORY"}, {ge::kAicoreInternalMemory, "AICORE_INTERNAL_MEMORY"}, {ge::kAicoreStall, "AICORE_STALL"}}; +======= + {ge::kAicoreArithmaticThroughput, "AICORE_ARITHMATIC_THROUGHPUT"}, + {ge::kAicorePipeline, "AICORE_PIPELINE"}, + {ge::kAicoreSynchronization, "AICORE_SYNCHRONIZATION"}, + {ge::kAicoreMemory, "AICORE_MEMORY"}, + {ge::kAicoreInternalMemory, "AICORE_INTERNAL_MEMORY"}, + {ge::kAicoreStall, "AICORE_STALL"}}; +>>>>>>> cd365aa247c64e30487d1e71e4f724a889848f80:src/ge/client/ge_prof.cc } // namespace static bool g_graph_prof_init_ = false; @@ -351,7 +360,11 @@ Status aclgrphProfStop(aclgrphProfConfig *profiler_config) { command.module_index = profiler_config->config.dataTypeConfig; GELOGI("Profiling will stop, device nums:%s , deviceID:[%s], data type config: 0x%llx", prof_params[0].c_str(), prof_params[kDeviceListIndex].c_str(), command.module_index); +<<<<<<< HEAD:ge/client/ge_prof.cc Status ret = graph_loader.CommandHandle(command); +======= + ret = graph_loader.CommandHandle(command); +>>>>>>> cd365aa247c64e30487d1e71e4f724a889848f80:src/ge/client/ge_prof.cc if (ret != SUCCESS) { GELOGE(ret, "Handle profiling command failed"); return FAILED; diff --git a/ge/common/dump/dump_server.cc b/ge/common/dump/dump_server.cc index a3dc5804..44e0f872 100644 --- a/ge/common/dump/dump_server.cc +++ b/ge/common/dump/dump_server.cc @@ -1,5 +1,5 @@ /** - * Copyright 2020 Huawei Technologies Co., Ltd +* Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/ge/graph/build/memory/graph_mem_assigner.h b/ge/graph/build/memory/graph_mem_assigner.h index da694e78..ab677417 100755 --- a/ge/graph/build/memory/graph_mem_assigner.h +++ b/ge/graph/build/memory/graph_mem_assigner.h @@ -143,6 +143,9 @@ class GraphMemoryAssigner { ge::Status FilterAtomicNodesForMemoryAssign(std::map> &normal_atomic_nodes_map, std::vector &connecting_output_atomic_nodes); + ge::Status FilterAtomicNodesForMemoryAssign(std::map> &normal_atomic_nodes_map, + std::vector &connecting_output_atomic_nodes); + ge::Status AssignContinuousInputMemory(const ge::NodePtr &node, int64_t &continuous_mem_start, int64_t &continuous_mem_size, int64_t memory_type); diff --git a/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc b/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc index 57929f83..7f4dfbe8 100755 --- a/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc +++ b/ge/graph/preprocess/insert_op/util_insert_aipp_op.cc @@ -652,7 +652,7 @@ Status InsertNewOpUtil::GetAllAipps(const NodePtr &data_node, const NodePtr &nod Status InsertNewOpUtil::RecordAIPPInfoToData(const ComputeGraphPtr &graph) { GELOGI("Start to record aipp info to Data."); - std::map> data_next_node_map; + std::map data_next_node_map; for (auto &node : graph->GetDirectNode()) { if (node->GetType() == DATA) { GE_RETURN_IF_ERROR(GetDataRelatedNode(node, data_next_node_map)); diff --git a/inc/framework/common/ge_types.h b/inc/framework/common/ge_types.h index 52fdc9ed..58ae9e3e 100644 --- a/inc/framework/common/ge_types.h +++ b/inc/framework/common/ge_types.h @@ -62,6 +62,8 @@ enum InputAippType{ DYNAMIC_AIPP_NODE }; +enum InputAippType { DATA_WITHOUT_AIPP = 0, DATA_WITH_STATIC_AIPP, DATA_WITH_DYNAMIC_AIPP, DYNAMIC_AIPP_NODE }; + const char *const GE_ENGINE_ATTR_MEM_TYPE_HBM = "HBM"; const char *const GE_OPTION_EXEC_PLACEMENT = "ge.exec.placement";