forked from mindspore-Ecosystem/mindspore
!49942 move head files to include
Merge pull request !49942 from zhoufeng/move-head-files-to-include
This commit is contained in:
commit
960f5efffe
|
@ -20,7 +20,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_GRAPH_KERNEL_ADAPTER_GRAPH_KERNEL_OPTIMIZATION_H_
|
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_GRAPH_KERNEL_ADAPTER_GRAPH_KERNEL_OPTIMIZATION_H_
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/optimizer/pass_manager.h"
|
#include "backend/common/optimizer/pass_manager.h"
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/debug/anf_ir_dump.h"
|
#include "include/common/debug/anf_ir_dump.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/graph_kernel/inplace_assign_builder.h"
|
#include "backend/common/graph_kernel/inplace_assign_builder.h"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
void StitchAtomicCleanInserter::CorrectKernelBuildInfo(
|
void StitchAtomicCleanInserter::CorrectKernelBuildInfo(
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
class StitchAtomicCleanInserter : public AtomicCleanInserter {
|
class StitchAtomicCleanInserter : public AtomicCleanInserter {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "ir/scalar.h"
|
#include "ir/scalar.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
class ReduceSumCsrChecker : public AtomicAddChecker {
|
class ReduceSumCsrChecker : public AtomicAddChecker {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
// Insert atomic clean node for reduce sum if any csr op is found in the graph.
|
// Insert atomic clean node for reduce sum if any csr op is found in the graph.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
class DecreaseComputePrecision : public opt::Pass {
|
class DecreaseComputePrecision : public opt::Pass {
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "ir/manager.h"
|
#include "ir/manager.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "backend/common/graph_kernel/decrease_transfer_precision.h"
|
#include "backend/common/graph_kernel/decrease_transfer_precision.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "kernel/akg/akg_kernel_json_generator.h"
|
#include "kernel/akg/akg_kernel_json_generator.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "utils/ms_utils.h"
|
#include "utils/ms_utils.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/graph_kernel/reshape_reduce_for_cse.h"
|
#include "backend/common/graph_kernel/reshape_reduce_for_cse.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "kernel/akg/akg_kernel_json_generator.h"
|
#include "kernel/akg/akg_kernel_json_generator.h"
|
||||||
#include "kernel/akg/akg_kernel_json_decoder.h"
|
#include "kernel/akg/akg_kernel_json_decoder.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_builder.h"
|
#include "backend/common/graph_kernel/core/graph_builder.h"
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#include "ir/anf.h"
|
#include "ir/anf.h"
|
||||||
#include "ir/func_graph.h"
|
#include "ir/func_graph.h"
|
||||||
#include "ir/primitive.h"
|
#include "ir/primitive.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "kernel/akg/akg_kernel_json_generator.h"
|
#include "kernel/akg/akg_kernel_json_generator.h"
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include "backend/common/graph_kernel/model/lite_graph.h"
|
#include "backend/common/graph_kernel/model/lite_graph.h"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
class OptimizeAssign : public opt::Pass {
|
class OptimizeAssign : public opt::Pass {
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "base/base.h"
|
#include "base/base.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/parallel_cost_model.h"
|
#include "backend/common/graph_kernel/parallel_cost_model.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/utils/python_adapter.h"
|
#include "include/common/utils/python_adapter.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
|
|
||||||
|
|
|
@ -26,11 +26,11 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "base/base.h"
|
#include "base/base.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/parallel_cost_model.h"
|
#include "backend/common/graph_kernel/parallel_cost_model.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
|
|
|
@ -21,12 +21,12 @@
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
bool RaiseReductionPrecision::IsFp16ReduceSum(const AnfNodePtr &node) const {
|
bool RaiseReductionPrecision::IsFp16ReduceSum(const AnfNodePtr &node) const {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "utils/log_adapter.h"
|
#include "utils/log_adapter.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/debug/anf_ir_dump.h"
|
#include "include/common/debug/anf_ir_dump.h"
|
||||||
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "ir/scalar.h"
|
#include "ir/scalar.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace graphkernel {
|
namespace graphkernel {
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "utils/log_adapter.h"
|
#include "utils/log_adapter.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
#include "backend/common/graph_kernel/graph_kernel_helper.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
bool UssAtomicAdd::Run(const FuncGraphPtr &func_graph) {
|
bool UssAtomicAdd::Run(const FuncGraphPtr &func_graph) {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include "backend/common/optimizer/optimizer.h"
|
#include "backend/common/optimizer/optimizer.h"
|
||||||
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
#include "backend/common/graph_kernel/add_atomic_clean.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#include "backend/common/graph_kernel/value_graph_binder.h"
|
#include "backend/common/graph_kernel/value_graph_binder.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
namespace mindspore::graphkernel {
|
namespace mindspore::graphkernel {
|
||||||
bool BindValueToGraph::Run(const FuncGraphPtr &func_graph) {
|
bool BindValueToGraph::Run(const FuncGraphPtr &func_graph) {
|
||||||
MS_EXCEPTION_IF_NULL(func_graph);
|
MS_EXCEPTION_IF_NULL(func_graph);
|
||||||
|
|
|
@ -23,8 +23,9 @@
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
|
#include "include/backend/device_address.h"
|
||||||
|
|
||||||
using HostAddress = mindspore::kernel::Address;
|
using HostAddress = mindspore::kernel::Address;
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "backend/common/mem_reuse/kernel_refcount.h"
|
#include "backend/common/mem_reuse/kernel_refcount.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace memreuse {
|
namespace memreuse {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "mindspore/core/ir/anf.h"
|
#include "mindspore/core/ir/anf.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/mem_reuse/mem_reuse.h"
|
#include "backend/common/mem_reuse/mem_reuse.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#ifndef MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
|
#ifndef MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
|
||||||
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
|
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "backend/common/optimizer/pass_manager.h"
|
#include "backend/common/optimizer/pass_manager.h"
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"
|
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "runtime/device/ms_device_shape_transfer.h"
|
#include "runtime/device/ms_device_shape_transfer.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "utils/anf_utils.h"
|
#include "utils/anf_utils.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"
|
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
#include "utils/hash_set.h"
|
#include "utils/hash_set.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "base/base_ref.h"
|
#include "base/base_ref.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "utils/ms_utils.h"
|
#include "utils/ms_utils.h"
|
||||||
#include "include/common/utils/convert_utils.h"
|
#include "include/common/utils/convert_utils.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "utils/trace_base.h"
|
#include "utils/trace_base.h"
|
||||||
#include "backend/common/optimizer/const_input_to_attr.h"
|
#include "backend/common/optimizer/const_input_to_attr.h"
|
||||||
|
|
|
@ -23,9 +23,10 @@
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "utils/hash_set.h"
|
#include "utils/hash_set.h"
|
||||||
#include "ir/func_graph.h"
|
#include "ir/func_graph.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "utils/ms_utils.h"
|
#include "utils/ms_utils.h"
|
||||||
#include "backend/common/optimizer/pattern_engine.h"
|
#include "backend/common/optimizer/pattern_engine.h"
|
||||||
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "ir/manager.h"
|
#include "ir/manager.h"
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "utils/hash_set.h"
|
#include "utils/hash_set.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "backend/common/optimizer/pass_manager.h"
|
#include "backend/common/optimizer/pass_manager.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "ir/manager.h"
|
#include "ir/manager.h"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "include/common/debug/anf_ir_dump.h"
|
#include "include/common/debug/anf_ir_dump.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "ir/graph_utils.h"
|
#include "ir/graph_utils.h"
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
#include "mindspore/core/ops/core_ops.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "utils/check_convert_utils.h"
|
#include "utils/check_convert_utils.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@
|
||||||
|
|
||||||
#include "ir/graph_utils.h"
|
#include "ir/graph_utils.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "include/common/utils/convert_utils.h"
|
#include "include/common/utils/convert_utils.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include "backend/common/pass/convert_unused_tuple_para_to_make_tuple.h"
|
#include "backend/common/pass/convert_unused_tuple_para_to_make_tuple.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include "backend/common/pass/dynamic_sequence_ops_adaptation.h"
|
#include "backend/common/pass/dynamic_sequence_ops_adaptation.h"
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "ir/anf.h"
|
#include "ir/anf.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include "backend/common/pass/erase_visit_attr.h"
|
#include "backend/common/pass/erase_visit_attr.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "backend/common/pass/insert_tensor_move_for_communication.h"
|
#include "backend/common/pass/insert_tensor_move_for_communication.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/convert_utils.h"
|
#include "include/common/utils/convert_utils.h"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "utils/trace_base.h"
|
#include "utils/trace_base.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace opt {
|
namespace opt {
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
#include "backend/common/pass/replace_node_by_proxy.h"
|
#include "backend/common/pass/replace_node_by_proxy.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* 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 "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -27,8 +27,8 @@
|
||||||
#include "include/common/utils/parallel_context.h"
|
#include "include/common/utils/parallel_context.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/debug/anf_dump_utils.h"
|
#include "include/common/debug/anf_dump_utils.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
#include "backend/common/optimizer/helper.h"
|
#include "backend/common/optimizer/helper.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* 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 "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
@ -23,9 +23,9 @@
|
||||||
#include "ir/param_info.h"
|
#include "ir/param_info.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "utils/check_convert_utils.h"
|
#include "utils/check_convert_utils.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "runtime/device/kernel_runtime_manager.h"
|
#include "runtime/device/kernel_runtime_manager.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
|
|
|
@ -22,11 +22,11 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "ir/anf.h"
|
#include "ir/anf.h"
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "runtime/hardware/device_context.h"
|
#include "runtime/hardware/device_context.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "base/base_ref_utils.h"
|
#include "base/base_ref_utils.h"
|
||||||
#include "runtime/device/ms_device_shape_transfer.h"
|
#include "runtime/device/ms_device_shape_transfer.h"
|
||||||
#include "include/common/utils/config_manager.h"
|
#include "include/common/utils/config_manager.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/executor_manager.h"
|
#include "backend/common/session/executor_manager.h"
|
||||||
#include "backend/common/optimizer/common_backend_optimization.h"
|
#include "backend/common/optimizer/common_backend_optimization.h"
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "backend/common/session/kernel_graph_mgr.h"
|
#include "backend/common/session/kernel_graph_mgr.h"
|
||||||
#include "backend/common/session/session_context.h"
|
#include "backend/common/session/session_context.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "ir/anf.h"
|
#include "ir/anf.h"
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "utils/any.h"
|
#include "utils/any.h"
|
||||||
#include "include/common/utils/contract.h"
|
#include "include/common/utils/contract.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "pipeline/pynative/base.h"
|
#include "pipeline/pynative/base.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace session {
|
namespace session {
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
#include "backend/common/somas/somas_solver_pre.h"
|
#include "backend/common/somas/somas_solver_pre.h"
|
||||||
#include "backend/common/somas/somas_stream.h"
|
#include "backend/common/somas/somas_stream.h"
|
||||||
#include "backend/common/somas/somas_parameter.h"
|
#include "backend/common/somas/somas_parameter.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "runtime/hardware/device_type.h"
|
#include "include/backend/device_type.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include "utils/hash_map.h"
|
#include "utils/hash_map.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
using mindspore::HashMap;
|
using mindspore::HashMap;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "debug/data_dump/cpu_e2e_dump.h"
|
#include "debug/data_dump/cpu_e2e_dump.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/debug/anf_dump_utils.h"
|
#include "include/common/debug/anf_dump_utils.h"
|
||||||
#include "include/common/debug/common.h"
|
#include "include/common/debug/common.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "debug/utils.h"
|
#include "debug/utils.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "utils/convert_utils_base.h"
|
#include "utils/convert_utils_base.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "debug/data_dump/npy_header.h"
|
#include "debug/data_dump/npy_header.h"
|
||||||
#include "include/common/debug/anf_dump_utils.h"
|
#include "include/common/debug/anf_dump_utils.h"
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "nlohmann/json.hpp"
|
#include "nlohmann/json.hpp"
|
||||||
#include "utils/ms_utils.h"
|
#include "utils/ms_utils.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "pipeline/jit/debug/anf_ir_utils.h"
|
#include "pipeline/jit/debug/anf_ir_utils.h"
|
||||||
#include "debug/data_dump/dump_json_parser.h"
|
#include "debug/data_dump/dump_json_parser.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "runtime/device/kernel_runtime_manager.h"
|
#include "runtime/device/kernel_runtime_manager.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
|
|
||||||
using DeviceTensor = mindspore::device::DeviceAddress;
|
using DeviceTensor = mindspore::device::DeviceAddress;
|
||||||
using DeviceTensorPtr = std::shared_ptr<DeviceTensor>;
|
using DeviceTensorPtr = std::shared_ptr<DeviceTensor>;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "runtime/device/ms_device_shape_transfer.h"
|
#include "runtime/device/ms_device_shape_transfer.h"
|
||||||
#include "include/common/debug/anf_dump_utils.h"
|
#include "include/common/debug/anf_dump_utils.h"
|
||||||
#include "include/common/debug/common.h"
|
#include "include/common/debug/common.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "utils/ms_context.h"
|
#include "utils/ms_context.h"
|
||||||
#include "runtime/device/kernel_runtime_manager.h"
|
#include "runtime/device/kernel_runtime_manager.h"
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
#include "debug/data_dump/dump_json_parser.h"
|
#include "debug/data_dump/dump_json_parser.h"
|
||||||
#include "debug/data_dump/dump_utils.h"
|
#include "debug/data_dump/dump_utils.h"
|
||||||
#ifdef ENABLE_DEBUGGER
|
#ifdef ENABLE_DEBUGGER
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "debug/data_dump/overflow_dumper.h"
|
#include "debug/data_dump/overflow_dumper.h"
|
||||||
|
|
||||||
#ifndef ENABLE_SECURITY
|
#ifndef ENABLE_SECURITY
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include "debug/data_dump/dump_json_parser.h"
|
#include "debug/data_dump/dump_json_parser.h"
|
||||||
#include "backend/common/session/session_basic.h"
|
#include "backend/common/session/session_basic.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "runtime/device/kernel_runtime_manager.h"
|
#include "runtime/device/kernel_runtime_manager.h"
|
||||||
#include "runtime/device/kernel_runtime.h"
|
#include "runtime/device/kernel_runtime.h"
|
||||||
|
|
|
@ -23,11 +23,11 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
#include "debug/debugger/grpc_client.h"
|
#include "debug/debugger/grpc_client.h"
|
||||||
#include "debug/debug_services.h"
|
#include "debug/debug_services.h"
|
||||||
#include "runtime/device/ms_device_shape_transfer.h"
|
#include "runtime/device/ms_device_shape_transfer.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
using debugger::Chunk;
|
using debugger::Chunk;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "include/common/debug/anf_dump_utils.h"
|
#include "include/common/debug/anf_dump_utils.h"
|
||||||
#include "debug/debugger/debugger.h"
|
#include "debug/debugger/debugger.h"
|
||||||
#include "debug/data_dump/dump_json_parser.h"
|
#include "debug/data_dump/dump_json_parser.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "debug/data_dump/e2e_dump.h"
|
#include "debug/data_dump/e2e_dump.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "utils/symbolic.h"
|
#include "utils/symbolic.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/backend/kernel_graph.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
enum LocDebugDumpMode { kDebugOff = 0, kDebugTopStack = 1, kDebugWholeStack = 2 };
|
enum LocDebugDumpMode { kDebugOff = 0, kDebugTopStack = 1, kDebugWholeStack = 2 };
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "mindspore/core/ir/anf.h"
|
#include "mindspore/core/ir/anf.h"
|
||||||
#include "mindspore/core/utils/log_adapter.h"
|
#include "mindspore/core/utils/log_adapter.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "include/common/debug/rdr/recorder_manager.h"
|
#include "include/common/debug/rdr/recorder_manager.h"
|
||||||
#include "mindspore/core/utils/file_utils.h"
|
#include "mindspore/core/utils/file_utils.h"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "mindspore/core/ir/anf.h"
|
#include "mindspore/core/ir/anf.h"
|
||||||
#include "mindspore/core/utils/log_adapter.h"
|
#include "mindspore/core/utils/log_adapter.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
#include "include/common/debug/rdr/recorder_manager.h"
|
#include "include/common/debug/rdr/recorder_manager.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "nlohmann/json.hpp"
|
#include "nlohmann/json.hpp"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/debug/rdr/base_recorder.h"
|
#include "include/common/debug/rdr/base_recorder.h"
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#define aMINDSPORE_CCSRC_DISTRIBUTED_EMBEDDING_CACHE_EMBEDDING_STORAGE_ABSTRACT_EMBEDDING_STORAGE_H_
|
#define aMINDSPORE_CCSRC_DISTRIBUTED_EMBEDDING_CACHE_EMBEDDING_STORAGE_ABSTRACT_EMBEDDING_STORAGE_H_
|
||||||
|
|
||||||
#include "distributed/persistent/storage/storage.h"
|
#include "distributed/persistent/storage/storage.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -30,13 +30,13 @@
|
||||||
#include "base/base.h"
|
#include "base/base.h"
|
||||||
#include "ir/primitive.h"
|
#include "ir/primitive.h"
|
||||||
#include "ir/kernel_info_dev.h"
|
#include "ir/kernel_info_dev.h"
|
||||||
#include "runtime/device/device_address.h"
|
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "mindspore/core/ops/core_ops.h"
|
|
||||||
#include "include/common/utils/contract.h"
|
|
||||||
#include "utils/anf_utils.h"
|
#include "utils/anf_utils.h"
|
||||||
#include "backend/common/session/kernel_graph.h"
|
#include "include/common/utils/contract.h"
|
||||||
|
#include "include/backend/device_address.h"
|
||||||
|
#include "include/backend/kernel_graph.h"
|
||||||
|
#include "include/backend/kernel_info.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
|
@ -28,10 +28,9 @@
|
||||||
#include "ir/dtype.h"
|
#include "ir/dtype.h"
|
||||||
#include "ir/device_sync.h"
|
#include "ir/device_sync.h"
|
||||||
#include "utils/shape_utils.h"
|
#include "utils/shape_utils.h"
|
||||||
#include "include/common/utils/utils.h"
|
|
||||||
#include "runtime/hardware/device_type.h"
|
|
||||||
#include "runtime/device/hash_table.h"
|
|
||||||
#include "utils/check_convert_utils.h"
|
#include "utils/check_convert_utils.h"
|
||||||
|
#include "include/common/utils/utils.h"
|
||||||
|
#include "include/backend/device_type.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace device {
|
namespace device {
|
|
@ -25,15 +25,15 @@ namespace mindspore {
|
||||||
namespace device {
|
namespace device {
|
||||||
enum class RunMode { kUnknown, kKernelMode, kGraphMode };
|
enum class RunMode { kUnknown, kKernelMode, kGraphMode };
|
||||||
enum class DeviceType { kUnknown, kCPU, kAscend, kGPU };
|
enum class DeviceType { kUnknown, kCPU, kAscend, kGPU };
|
||||||
static const std::map<DeviceType, std::string> device_type_to_name_map = {{DeviceType::kUnknown, "Unknown"},
|
const std::map<DeviceType, std::string> device_type_to_name_map = {{DeviceType::kUnknown, "Unknown"},
|
||||||
{DeviceType::kAscend, "Ascend"},
|
{DeviceType::kAscend, "Ascend"},
|
||||||
{DeviceType::kCPU, "CPU"},
|
{DeviceType::kCPU, "CPU"},
|
||||||
{DeviceType::kGPU, "GPU"}};
|
{DeviceType::kGPU, "GPU"}};
|
||||||
|
|
||||||
static const std::map<std::string, DeviceType> device_name_to_type_map = {{"Unknown", DeviceType::kUnknown},
|
const std::map<std::string, DeviceType> device_name_to_type_map = {{"Unknown", DeviceType::kUnknown},
|
||||||
{"Ascend", DeviceType::kAscend},
|
{"Ascend", DeviceType::kAscend},
|
||||||
{"CPU", DeviceType::kCPU},
|
{"CPU", DeviceType::kCPU},
|
||||||
{"GPU", DeviceType::kGPU}};
|
{"GPU", DeviceType::kGPU}};
|
||||||
|
|
||||||
BACKEND_EXPORT std::string GetDeviceNameByType(const DeviceType &type);
|
BACKEND_EXPORT std::string GetDeviceNameByType(const DeviceType &type);
|
||||||
BACKEND_EXPORT DeviceType GetDeviceTypeByName(const std::string &name);
|
BACKEND_EXPORT DeviceType GetDeviceTypeByName(const std::string &name);
|
|
@ -31,7 +31,8 @@
|
||||||
#include "ir/anf.h"
|
#include "ir/anf.h"
|
||||||
#include "ir/graph_utils.h"
|
#include "ir/graph_utils.h"
|
||||||
#include "include/common/utils/contract.h"
|
#include "include/common/utils/contract.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/device_type.h"
|
||||||
|
#include "include/backend/kernel_info.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
|
@ -23,7 +23,7 @@
|
||||||
#include "ir/kernel_info_dev.h"
|
#include "ir/kernel_info_dev.h"
|
||||||
#include "kernel/kernel_build_info.h"
|
#include "kernel/kernel_build_info.h"
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
#include "include/backend/visible.h"
|
#include "include/backend/visible.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
|
@ -33,7 +33,7 @@
|
||||||
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
#include "backend/common/graph_kernel/graph_kernel_flags.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "kernel/akg/akg_kernel_json_generator.h"
|
#include "kernel/akg/akg_kernel_json_generator.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "kernel/akg/akg_kernel_json_generator.h"
|
#include "kernel/akg/akg_kernel_json_generator.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/debug/anf_ir_dump.h"
|
#include "include/common/debug/anf_ir_dump.h"
|
||||||
#include "frontend/operator/ops.h"
|
#include "frontend/operator/ops.h"
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
#include "ir/meta_tensor.h"
|
#include "ir/meta_tensor.h"
|
||||||
#include "pipeline/jit/parse/data_converter.h"
|
#include "pipeline/jit/parse/data_converter.h"
|
||||||
#include "include/common/utils/python_adapter.h"
|
#include "include/common/utils/python_adapter.h"
|
||||||
#include "runtime/device/kernel_info.h"
|
#include "include/backend/kernel_info.h"
|
||||||
#include "include/common/utils/convert_utils.h"
|
#include "include/common/utils/convert_utils.h"
|
||||||
#include "include/common/utils/convert_utils_py.h"
|
#include "include/common/utils/convert_utils_py.h"
|
||||||
#include "include/common/utils/utils.h"
|
#include "include/common/utils/utils.h"
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "nlohmann/json.hpp"
|
#include "nlohmann/json.hpp"
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "include/common/utils/convert_utils.h"
|
#include "include/common/utils/convert_utils.h"
|
||||||
#include "utils/file_utils.h"
|
#include "utils/file_utils.h"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include "backend/common/session/anf_runtime_algorithm.h"
|
#include "include/backend/anf_runtime_algorithm.h"
|
||||||
#include "include/common/utils/anfalgo.h"
|
#include "include/common/utils/anfalgo.h"
|
||||||
#include "kernel/common_utils.h"
|
#include "kernel/common_utils.h"
|
||||||
using AnfAlgo = mindspore::session::AnfRuntimeAlgorithm;
|
using AnfAlgo = mindspore::session::AnfRuntimeAlgorithm;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "pipeline/pynative/pynative_utils.h"
|
#include "pipeline/pynative/pynative_utils.h"
|
||||||
#include "ir/tensor.h"
|
#include "ir/tensor.h"
|
||||||
#include "runtime/device/device_address.h"
|
#include "include/backend/device_address.h"
|
||||||
|
|
||||||
namespace mindspore {
|
namespace mindspore {
|
||||||
namespace pynative {
|
namespace pynative {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue