Browse Source

!4614 Code compile performance optimization

Merge pull request !4614 from zhoufeng/code-compile-performance
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
4f46c4277a
100 changed files with 4 additions and 213 deletions
  1. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_kernel_build.cc
  2. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_kernel_mod.cc
  3. +0
    -4
      mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_util.cc
  4. +0
    -6
      mindspore/ccsrc/backend/kernel_compiler/akg/akg_kernel_build.cc
  5. +0
    -5
      mindspore/ccsrc/backend/kernel_compiler/akg/ascend/akg_ascend_kernel_mod.cc
  6. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/common_utils.cc
  7. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/cpu/cpu_kernel_factory.cc
  8. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/lstm_grad_cpu_kernel.cc
  9. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/matmul_cpu_kernel.cc
  10. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/mkl_cpu_kernel.cc
  11. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/cpu/ps/embedding_look_up_ps_kernel.cc
  12. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/cpu/ps/pserver_kernel.cc
  13. +1
    -1
      mindspore/ccsrc/backend/kernel_compiler/cpu/reduce_cpu_kernel.cc
  14. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel_build.cc
  15. +0
    -4
      mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc
  16. +0
    -4
      mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_gather.cc
  17. +0
    -4
      mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_reduce.cc
  18. +0
    -4
      mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_reduce_scatter.cc
  19. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_util.cc
  20. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/kernel_fusion.cc
  21. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/oplib/oplib.cc
  22. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/rts/assign.cc
  23. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/rts/label_goto.cc
  24. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/rts/label_set.cc
  25. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/rts/label_switch.cc
  26. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/rts/memcpy_async.cc
  27. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/rts/profiling_kernel_mod.cc
  28. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/rts/recv.cc
  29. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/rts/rt_kernel_build.cc
  30. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/rts/send.cc
  31. +0
    -2
      mindspore/ccsrc/backend/kernel_compiler/rts/stream_active.cc
  32. +0
    -3
      mindspore/ccsrc/backend/kernel_compiler/rts/stream_switch.cc
  33. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_parallel_build.cc
  34. +0
    -1
      mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_select/tbe_kernel_select.cc
  35. +0
    -7
      mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_utils.cc
  36. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ascend_backend_optimization.cc
  37. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv2dbackprop_eltwise_eltwise_fusion_pass.cc
  38. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv2dbackprop_eltwise_fusion_pass.cc
  39. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv_double_in_fusion_pass.cc
  40. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv_single_in_fusion_pass.cc
  41. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/eltwise_fusion_pass.cc
  42. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/matmul_eltwise_fusion_pass.cc
  43. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/multi_output_fusion_pass.cc
  44. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/reduce_eltwise_fusion_pass.cc
  45. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/segment_eltwise_fusion_pass.cc
  46. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc
  47. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/enhancer/insert_memcpy_async_for_cascade.cc
  48. +0
    -4
      mindspore/ccsrc/backend/optimizer/ascend/enhancer/insert_pad_for_nms_with_mask.cc
  49. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/format_type/chang_axis_of_reduce_kernel.cc
  50. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/format_type/check_consistency.cc
  51. +1
    -1
      mindspore/ccsrc/backend/optimizer/ascend/format_type/convert_unsupported_transnode_to_aicpu.cc
  52. +0
    -3
      mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_cast.cc
  53. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_trans_op.cc
  54. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_transdata_for_runop.cc
  55. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fission/batch_norm_grad_split.cc
  56. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fission/bn_grad_split.cc
  57. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ir_fission/bn_split.cc
  58. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fission/layer_norm_grad_split.cc
  59. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ir_fission/single_batch_norm_fission.cc
  60. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/add_input_to_output.cc
  61. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/clip_by_norm_no_div_square_sum_fusion.cc
  62. +0
    -3
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_next_mv_rule.cc
  63. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_rule_fusion.cc
  64. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_v2.cc
  65. +0
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/mul_add_fusion.cc
  66. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/mul_addn_fusion.cc
  67. +0
    -2
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/parameter_and_transop_fusion.cc
  68. +0
    -3
      mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/refresh_parameter_format.cc
  69. +0
    -2
      mindspore/ccsrc/backend/optimizer/common/node_pass.cc
  70. +0
    -4
      mindspore/ccsrc/backend/optimizer/common/pass_manager.cc
  71. +0
    -3
      mindspore/ccsrc/backend/optimizer/common/pattern_engine.cc
  72. +0
    -2
      mindspore/ccsrc/backend/optimizer/common/visit.cc
  73. +1
    -1
      mindspore/ccsrc/backend/optimizer/mem_reuse/kernel_refcount.cc
  74. +0
    -2
      mindspore/ccsrc/backend/optimizer/pass/add_atomic_clean.cc
  75. +0
    -1
      mindspore/ccsrc/backend/optimizer/pass/convert_const_input_to_attr.cc
  76. +0
    -1
      mindspore/ccsrc/backend/optimizer/pass/convert_const_input_to_tensor_input.cc
  77. +0
    -6
      mindspore/ccsrc/backend/optimizer/pass/convert_const_scalar_to_tensor.cc
  78. +0
    -1
      mindspore/ccsrc/backend/optimizer/pass/eliminate_redundant_op.cc
  79. +0
    -2
      mindspore/ccsrc/backend/optimizer/pass/fuse_basic.cc
  80. +0
    -2
      mindspore/ccsrc/backend/optimizer/pass/fuse_graph_kernel.cc
  81. +0
    -1
      mindspore/ccsrc/backend/session/anf_runtime_algorithm.cc
  82. +0
    -1
      mindspore/ccsrc/backend/session/ascend_inference_session.cc
  83. +0
    -4
      mindspore/ccsrc/backend/session/ascend_session.cc
  84. +0
    -2
      mindspore/ccsrc/backend/session/cpu_session.cc
  85. +0
    -2
      mindspore/ccsrc/backend/session/kernel_build_client.cc
  86. +0
    -3
      mindspore/ccsrc/backend/session/session_basic.cc
  87. +1
    -1
      mindspore/ccsrc/backend/session/session_factory.cc
  88. +0
    -2
      mindspore/ccsrc/debug/anf_ir_dump.cc
  89. +0
    -2
      mindspore/ccsrc/debug/anf_ir_utils.cc
  90. +0
    -1
      mindspore/ccsrc/debug/common.cc
  91. +0
    -4
      mindspore/ccsrc/debug/draw.cc
  92. +0
    -3
      mindspore/ccsrc/debug/dump_proto.cc
  93. +0
    -2
      mindspore/ccsrc/frontend/operator/cc_implementations.cc
  94. +0
    -1
      mindspore/ccsrc/frontend/operator/composite/composite.cc
  95. +0
    -1
      mindspore/ccsrc/frontend/operator/composite/do_signature.cc
  96. +0
    -1
      mindspore/ccsrc/frontend/operator/composite/map.cc
  97. +0
    -7
      mindspore/ccsrc/frontend/operator/composite/multitype_funcgraph.cc
  98. +0
    -2
      mindspore/ccsrc/frontend/operator/composite/unpack_call.cc
  99. +0
    -2
      mindspore/ccsrc/frontend/operator/ops_extends.cc
  100. +0
    -3
      mindspore/ccsrc/frontend/operator/prim_to_function.cc

+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_kernel_build.cc View File

@@ -15,13 +15,11 @@
*/
#include "backend/kernel_compiler/aicpu/aicpu_kernel_build.h"
#include <google/protobuf/text_format.h>
#include <fstream>
#include <utility>
#include <string>
#include <vector>
#include <memory>
#include <algorithm>
#include <map>
#include "runtime/device/kernel_runtime.h"
#include "backend/kernel_compiler/aicpu/aicpu_kernel_mod.h"
#include "backend/kernel_compiler/akg/akg_kernel_build.h"
@@ -30,7 +28,6 @@
#include "proto/attr.pb.h"
#include "proto/node_def.pb.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_kernel_mod.cc View File

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

#include "runtime/mem.h"
#include "runtime/rt.h"
#include "backend/kernel_compiler/aicpu/aicpu_kernel_build.h"
#include "utils/convert_utils.h"
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include "utils/ms_context.h"


+ 0
- 4
mindspore/ccsrc/backend/kernel_compiler/aicpu/aicpu_util.cc View File

@@ -14,13 +14,9 @@
* limitations under the License.
*/
#include "backend/kernel_compiler/aicpu/aicpu_util.h"
#include <vector>
#include <string>
#include "proto/types.pb.h"
#include "runtime/mem.h"
#include "runtime/rt.h"
#include "utils/convert_utils.h"
#include "backend/session/anf_runtime_algorithm.h"

namespace mindspore {
namespace kernel {


+ 0
- 6
mindspore/ccsrc/backend/kernel_compiler/akg/akg_kernel_build.cc View File

@@ -15,22 +15,16 @@
*/

#include "backend/kernel_compiler/akg/akg_kernel_build.h"
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <dirent.h>
#include <cctype>
#include <cstdint>
#include <memory>
#include <map>
#include <utility>
#include <algorithm>
#include <functional>
#include <sstream>
#include <iterator>
#include <numeric>
#include <unordered_set>
#include "utils/ms_utils.h"
#include "utils/convert_utils.h"
#include "utils/any.h"
#include "utils/utils.h"


+ 0
- 5
mindspore/ccsrc/backend/kernel_compiler/akg/ascend/akg_ascend_kernel_mod.cc View File

@@ -16,17 +16,12 @@

#include "backend/kernel_compiler/akg/ascend/akg_ascend_kernel_mod.h"
#include <algorithm>
#include <fstream>
#include <map>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "nlohmann/json.hpp"
#include "runtime/rt.h"
#include "utils/log_adapter.h"
#include "utils/convert_utils.h"
#include "utils/ms_context.h"

namespace mindspore {
namespace kernel {


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/common_utils.cc View File

@@ -27,7 +27,6 @@
#include "utils/ms_utils.h"
#include "ir/manager.h"
#include "ir/meta_tensor.h"
#include "ir/func_graph.h"
#include "frontend/operator/ops.h"
#include "ir/graph_utils.h"



+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/cpu/cpu_kernel_factory.cc View File

@@ -17,7 +17,6 @@
#include "backend/kernel_compiler/cpu/cpu_kernel_factory.h"

#include <memory>
#include <iostream>
#include <string>

#include "runtime/device/kernel_info.h"


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/lstm_grad_cpu_kernel.cc View File

@@ -15,8 +15,6 @@
*/
#include "backend/kernel_compiler/cpu/mkldnn/lstm_grad_cpu_kernel.h"
#include <cstring>
#include <cmath>
#include <numeric>
#include <string>
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/matmul_cpu_kernel.cc View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
#include "backend/kernel_compiler/cpu/mkldnn/matmul_cpu_kernel.h"
#include <algorithm>
#include <utility>
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"
#include "utils/ms_utils.h"


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/mkl_cpu_kernel.cc View File

@@ -16,7 +16,6 @@
#include "backend/kernel_compiler/cpu/mkldnn/mkl_cpu_kernel.h"
#include <vector>
#include <string>
#include <algorithm>
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/cpu/mkldnn/mkl_kernel_engine.h"



+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/cpu/ps/embedding_look_up_ps_kernel.cc View File

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

#include "backend/kernel_compiler/cpu/ps/embedding_look_up_ps_kernel.h"
#include <functional>
#include <vector>
#include <memory>
#include "backend/kernel_compiler/common_utils.h"


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/cpu/ps/pserver_kernel.cc View File

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

#include "backend/kernel_compiler/cpu/ps/pserver_kernel.h"
#include "frontend/parallel/ps/util.h"

namespace mindspore {
namespace kernel {
namespace ps {} // namespace ps


+ 1
- 1
mindspore/ccsrc/backend/kernel_compiler/cpu/reduce_cpu_kernel.cc View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <map>
#include <string>
#include <vector>
#include "backend/kernel_compiler/cpu/reduce_cpu_kernel.h"


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/hccl/hccl_kernel_build.cc View File

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

#include <string>
#include <memory>
#include <algorithm>

#include "backend/kernel_compiler/hccl/hccl_kernel.h"
#include "backend/session/anf_runtime_algorithm.h"



+ 0
- 4
mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc View File

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

#include "backend/kernel_compiler/hccl/hcom_all_broadcast.h"

#include <algorithm>
#include <string>
#include <memory>

#include "utils/ms_context.h"

namespace mindspore {


+ 0
- 4
mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_gather.cc View File

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

#include "backend/kernel_compiler/hccl/hcom_all_gather.h"

#include <algorithm>
#include <string>
#include <memory>

#include "utils/ms_context.h"

namespace mindspore {


+ 0
- 4
mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_reduce.cc View File

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

#include "backend/kernel_compiler/hccl/hcom_all_reduce.h"

#include <algorithm>
#include <memory>
#include <string>

#include "utils/ms_context.h"

namespace mindspore {


+ 0
- 4
mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_reduce_scatter.cc View File

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

#include "backend/kernel_compiler/hccl/hcom_all_reduce_scatter.h"

#include <algorithm>
#include <string>
#include <memory>

#include "utils/ms_context.h"

namespace mindspore {


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_util.cc View File

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

#include "backend/kernel_compiler/hccl/hcom_util.h"

#include <memory>

#include "backend/kernel_compiler/common_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/kernel_fusion.cc View File

@@ -20,8 +20,6 @@
#include <string>
#include <memory>
#include <utility>

#include "utils/ms_utils.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_build.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_parallel_build.h"
#include "backend/kernel_compiler/tbe/tbe_utils.h"


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/oplib/oplib.cc View File

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

#include "backend/kernel_compiler/oplib/oplib.h"
#include <pybind11/pybind11.h>
#include <unordered_map>
#include <memory>
#include <map>
#include <fstream>


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/rts/assign.cc View File

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

#include "backend/kernel_compiler/rts/assign.h"

#include <memory>

#include "runtime/mem.h"
#include "utils/ms_utils.h"

using ge::model_runner::MemcpyAsyncTaskInfo;
using MemcpyAsyncTaskInfoPtr = std::shared_ptr<MemcpyAsyncTaskInfo>;


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/rts/label_goto.cc View File

@@ -15,12 +15,10 @@
*/

#include "backend/kernel_compiler/rts/label_goto.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::LabelGotoTaskInfo;
using LabelGotoTaskInfoPtr = std::shared_ptr<LabelGotoTaskInfo>;


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/rts/label_set.cc View File

@@ -15,12 +15,10 @@
*/

#include "backend/kernel_compiler/rts/label_set.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::LabelSetTaskInfo;
using LabelSetTaskInfoPtr = std::shared_ptr<LabelSetTaskInfo>;


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/rts/label_switch.cc View File

@@ -15,13 +15,11 @@
*/

#include "backend/kernel_compiler/rts/label_switch.h"
#include <asm-generic/param.h>
#include <memory>
#include <string>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::LabelSwitchTaskInfo;
using LabelSwitchTaskInfoPtr = std::shared_ptr<LabelSwitchTaskInfo>;


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/rts/memcpy_async.cc View File

@@ -15,12 +15,9 @@
*/

#include "backend/kernel_compiler/rts/memcpy_async.h"

#include <memory>
#include <string>

#include "runtime/mem.h"
#include "utils/ms_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "common/trans.h"
#include "utils/ms_context.h"


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/rts/profiling_kernel_mod.cc View File

@@ -15,11 +15,9 @@
*/

#include "backend/kernel_compiler/rts/profiling_kernel_mod.h"

#include <vector>
#include <string>
#include <memory>

#include "framework/ge_runtime/task_info.h"
#include "runtime/device/ascend/profiling/profiling_utils.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/rts/recv.cc View File

@@ -18,15 +18,12 @@
#include <memory>
#include "runtime/stream.h"
#include "utils/ms_context.h"
#include "runtime/device/ascend/ascend_stream_assign.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

namespace mindspore {
namespace kernel {
using ge::model_runner::EventWaitTaskInfo;
using mindspore::device::ascend::AscendStreamAssign;
using EventWaitTaskInfoPtr = std::shared_ptr<EventWaitTaskInfo>;

RecvKernel::RecvKernel() { event_id_ = 0; }


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/rts/rt_kernel_build.cc View File

@@ -15,12 +15,9 @@
*/

#include "backend/kernel_compiler/rts/rt_kernel_build.h"

#include <string>
#include <memory>
#include <utility>
#include <algorithm>

#include "backend/kernel_compiler/rts/rt_kernel.h"
#include "backend/session/anf_runtime_algorithm.h"



+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/rts/send.cc View File

@@ -19,7 +19,6 @@
#include "runtime/event.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::EventRecordTaskInfo;
using EventRecordTaskInfoPtr = std::shared_ptr<EventRecordTaskInfo>;


+ 0
- 2
mindspore/ccsrc/backend/kernel_compiler/rts/stream_active.cc View File

@@ -15,12 +15,10 @@
*/

#include "backend/kernel_compiler/rts/stream_active.h"
#include <asm-generic/param.h>
#include <memory>
#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::StreamActiveTaskInfo;
using StreamActiveTaskInfoPtr = std::shared_ptr<StreamActiveTaskInfo>;


+ 0
- 3
mindspore/ccsrc/backend/kernel_compiler/rts/stream_switch.cc View File

@@ -15,14 +15,11 @@
*/

#include "backend/kernel_compiler/rts/stream_switch.h"

#include <memory>
#include <vector>

#include "runtime/stream.h"
#include "framework/ge_runtime/task_info.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"

using ge::model_runner::StreamSwitchTaskInfo;
using StreamSwitchTaskInfoPtr = std::shared_ptr<StreamSwitchTaskInfo>;


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_parallel_build.cc View File

@@ -17,7 +17,6 @@
#include "backend/kernel_compiler/tbe/tbe_kernel_parallel_build.h"

#include <memory>
#include <map>
#include <set>
#include <algorithm>
#include <vector>


+ 0
- 1
mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_select/tbe_kernel_select.cc View File

@@ -23,7 +23,6 @@
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/kernel_compiler/tbe/tbe_kernel_build.h"
#include "nlohmann/json.hpp"
#include "utils/ms_context.h"
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/tbe/tbe_convert_utils.h"
#include "frontend/parallel/ops_info/ops_utils.h"


+ 0
- 7
mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_utils.cc View File

@@ -16,26 +16,19 @@

#include "backend/kernel_compiler/tbe/tbe_utils.h"

#include <sys/types.h>
#include <dirent.h>
#include <vector>
#include <string>
#include <utility>
#include <map>
#include <functional>
#include <iostream>
#include <fstream>

#include "runtime/kernel.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "runtime/device/kernel_info.h"
#include "ir/dtype/type.h"
#include "backend/kernel_compiler/tbe/tbe_convert_utils.h"
#include "securec/include/securec.h"
#include "frontend/operator/ops.h"

namespace mindspore {
namespace kernel {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ascend_backend_optimization.cc View File

@@ -81,7 +81,6 @@
#include "backend/optimizer/ascend/buffer_fusion/conv_single_in_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/conv_double_in_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/matmul_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/matmul_confusiontranspose_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/depthwiseconv_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/bnupdate_eltwise_fusion_pass.h"
#include "backend/optimizer/ascend/buffer_fusion/bnupdate_eltwise_eltwise_fusion_pass.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv2dbackprop_eltwise_eltwise_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv2dbackprop_eltwise_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv_double_in_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/conv_single_in_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/eltwise_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/matmul_eltwise_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/multi_output_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/reduce_eltwise_fusion_pass.cc View File

@@ -18,7 +18,6 @@
#include <algorithm>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/segment_eltwise_fusion_pass.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <unordered_set>
#include <memory>
#include <string>
#include "backend/kernel_compiler/kernel_fusion.h"
#include "debug/anf_ir_dump.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc View File

@@ -15,9 +15,7 @@
*/
#include "backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.h"
#include <vector>
#include <tuple>
#include <utility>
#include <unordered_set>
#include <unordered_map>
#include <deque>
#include <memory>


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/enhancer/insert_memcpy_async_for_cascade.cc View File

@@ -15,8 +15,6 @@
*/
#include "backend/optimizer/ascend/enhancer/insert_memcpy_async_for_cascade.h"
#include <vector>
#include <set>
#include <string>
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"


+ 0
- 4
mindspore/ccsrc/backend/optimizer/ascend/enhancer/insert_pad_for_nms_with_mask.cc View File

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

#include "backend/optimizer/ascend/enhancer/insert_pad_for_nms_with_mask.h"
#include <vector>
#include <string>
#include <memory>
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler//oplib/oplib.h"
#include "frontend/operator/ops.h"

namespace mindspore {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/format_type/chang_axis_of_reduce_kernel.cc View File

@@ -22,7 +22,6 @@
#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/common_utils.h"
namespace mindspore {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/format_type/check_consistency.cc View File

@@ -21,7 +21,6 @@

#include "utils/utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/ms_utils.h"
#include "backend/kernel_compiler/common_utils.h"

namespace mindspore {


+ 1
- 1
mindspore/ccsrc/backend/optimizer/ascend/format_type/convert_unsupported_transnode_to_aicpu.cc View File

@@ -18,7 +18,7 @@
#include <memory>
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "backend/kernel_compiler/kernel_query.h"
namespace mindspore {
namespace opt {
const BaseRef ConvertUnSupportNodeToAICPU::DefinePattern() const {


+ 0
- 3
mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_cast.cc View File

@@ -19,12 +19,9 @@
#include <string>
#include <vector>
#include <utility>

#include "runtime/device/kernel_info.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "utils/utils.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_trans_op.cc View File

@@ -20,8 +20,6 @@
#include "utils/utils.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "utils/ms_context.h"

namespace mindspore {


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/format_type/insert_transdata_for_runop.cc View File

@@ -19,8 +19,6 @@
#include "utils/utils.h"
#include "backend/optimizer/ascend/ascend_helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "backend/kernel_compiler/oplib/oplib.h"

namespace mindspore {
namespace opt {


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fission/batch_norm_grad_split.cc View File

@@ -16,12 +16,10 @@
#include "backend/optimizer/ascend/ir_fission/batch_norm_grad_split.h"

#include <vector>
#include <string>
#include <memory>

#include "utils/utils.h"
#include "utils/ms_context.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_info.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fission/bn_grad_split.cc View File

@@ -16,12 +16,10 @@
#include "backend/optimizer/ascend/ir_fission/bn_grad_split.h"

#include <vector>
#include <string>
#include <memory>

#include "utils/utils.h"
#include "utils/ms_context.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_info.h"
#include "backend/session/anf_runtime_algorithm.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ir_fission/bn_split.cc View File

@@ -16,7 +16,6 @@
#include "backend/optimizer/ascend/ir_fission/bn_split.h"

#include <vector>
#include <string>
#include <memory>

#include "utils/utils.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fission/layer_norm_grad_split.cc View File

@@ -17,12 +17,10 @@

#include <memory>
#include <vector>
#include <string>

#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_info.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"

namespace mindspore {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ir_fission/single_batch_norm_fission.cc View File

@@ -16,7 +16,6 @@
#include "backend/optimizer/ascend/ir_fission/single_batch_norm_fission.h"
#include <vector>
#include <memory>
#include <algorithm>
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/optimizer/common/helper.h"



+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/add_input_to_output.cc View File

@@ -15,7 +15,6 @@
*/
#include "backend/optimizer/ascend/ir_fusion/add_input_to_output.h"
#include <vector>
#include <algorithm>
#include "backend/optimizer/ascend/ir_fusion/input_to_output_registry.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/oplib/oplib.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/clip_by_norm_no_div_square_sum_fusion.cc View File

@@ -17,11 +17,9 @@

#include <memory>
#include <vector>
#include <string>

#include "backend/session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"

namespace mindspore {


+ 0
- 3
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_next_mv_rule.cc View File

@@ -17,10 +17,7 @@
#include "backend/optimizer/ascend/ir_fusion/lamb_next_mv_rule.h"
#include <memory>
#include <utility>
#include <tuple>
#include <algorithm>
#include <unordered_map>
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "backend/optimizer/common/helper.h"
#include "frontend/operator/ops.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_rule_fusion.cc View File

@@ -17,11 +17,9 @@

#include <memory>
#include <vector>
#include <string>

#include "backend/session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/ms_utils.h"
#include "utils/utils.h"

namespace mindspore {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_v2.cc View File

@@ -17,7 +17,6 @@
#include "backend/optimizer/ascend/ir_fusion/lamb_update_with_lr_v2.h"
#include <memory>
#include <algorithm>
#include <unordered_map>
#include "utils/utils.h"
#include "frontend/operator/ops.h"



+ 0
- 1
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/mul_add_fusion.cc View File

@@ -17,7 +17,6 @@
#include <vector>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/mul_addn_fusion.cc View File

@@ -16,8 +16,6 @@
#include "backend/optimizer/ascend/ir_fusion/mul_addn_fusion.h"
#include <vector>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "backend/session/anf_runtime_algorithm.h"
#include "frontend/optimizer/opt.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/parameter_and_transop_fusion.cc View File

@@ -21,8 +21,6 @@
#include "frontend/operator/ops.h"
#include "runtime/device/kernel_info.h"
#include "backend/optimizer/common/helper.h"
#include "backend/optimizer/common/optimizer.h"
#include "backend/optimizer/ascend/ascend_helper.h"

namespace mindspore {
namespace opt {


+ 0
- 3
mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/refresh_parameter_format.cc View File

@@ -17,11 +17,8 @@
#include "backend/optimizer/ascend/ir_fusion/refresh_parameter_format.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "frontend/operator/ops.h"
#include "runtime/device/kernel_info.h"
#include "backend/optimizer/common/helper.h"
#include "backend/optimizer/common/optimizer.h"
#include "backend/optimizer/ascend/ascend_helper.h"

namespace mindspore {
namespace opt {


+ 0
- 2
mindspore/ccsrc/backend/optimizer/common/node_pass.cc View File

@@ -17,8 +17,6 @@

#include <unordered_set>
#include <deque>
#include <algorithm>

#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/manager.h"


+ 0
- 4
mindspore/ccsrc/backend/optimizer/common/pass_manager.cc View File

@@ -16,15 +16,11 @@
#include "backend/optimizer/common/pass_manager.h"
#include <sys/time.h>
#include <unordered_set>
#include <deque>
#include <string>
#include <algorithm>
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/manager.h"
#include "utils/utils.h"
#include "utils/ms_context.h"
#include "debug/anf_ir_dump.h"


+ 0
- 3
mindspore/ccsrc/backend/optimizer/common/pattern_engine.cc View File

@@ -21,10 +21,7 @@
#include <exception>
#include <iostream>
#include <functional>
#include <iterator>

#include "frontend/optimizer/opt.h"

#include "ir/anf.h"
#include "utils/convert_utils_base.h"
#include "utils/overload.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/common/visit.cc View File

@@ -21,8 +21,6 @@
#include <vector>
#include <memory>
#include <algorithm>
#include <utility>

#include "backend/optimizer/common/pattern_engine.h"
#include "utils/any.h"
#include "ir/anf.h"


+ 1
- 1
mindspore/ccsrc/backend/optimizer/mem_reuse/kernel_refcount.cc View File

@@ -15,7 +15,7 @@
*/
#include "backend/optimizer/mem_reuse/kernel_refcount.h"
#include <algorithm>
#include "utils/log_adapter.h"
namespace mindspore {
namespace memreuse {
/**


+ 0
- 2
mindspore/ccsrc/backend/optimizer/pass/add_atomic_clean.cc View File

@@ -17,10 +17,8 @@
#include "backend/optimizer/pass/add_atomic_clean.h"
#include <memory>
#include <vector>
#include <functional>
#include "frontend/operator/ops.h"
#include "utils/utils.h"
#include "ir/graph_utils.h"
#include "utils/log_adapter.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/pass/convert_const_input_to_attr.cc View File

@@ -17,7 +17,6 @@

#include <vector>
#include <string>
#include <unordered_map>
#include <memory>

#include "backend/optimizer/pass/const_input_to_attr_registry.h"


+ 0
- 1
mindspore/ccsrc/backend/optimizer/pass/convert_const_input_to_tensor_input.cc View File

@@ -24,7 +24,6 @@
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"
#include "runtime/device/kernel_info.h"

namespace mindspore {
namespace opt {


+ 0
- 6
mindspore/ccsrc/backend/optimizer/pass/convert_const_scalar_to_tensor.cc View File

@@ -14,18 +14,12 @@
* limitations under the License.
*/
#include "backend/optimizer/pass/convert_const_scalar_to_tensor.h"

#include <vector>
#include <memory>
#include <utility>

#include "ir/graph_utils.h"
#include "utils/convert_utils.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/session/kernel_graph.h"
#include "backend/kernel_compiler/common_utils.h"
#include "runtime/device/kernel_info.h"

namespace mindspore {
namespace opt {


+ 0
- 1
mindspore/ccsrc/backend/optimizer/pass/eliminate_redundant_op.cc View File

@@ -18,7 +18,6 @@
#include <memory>
#include <utility>
#include <unordered_map>
#include <unordered_set>
#include "backend/session/anf_runtime_algorithm.h"
#include "utils/utils.h"
#include "backend/optimizer/common/helper.h"


+ 0
- 2
mindspore/ccsrc/backend/optimizer/pass/fuse_basic.cc View File

@@ -25,12 +25,10 @@
#include <string>

#include "frontend/operator/ops.h"
#include "utils/utils.h"
#include "ir/graph_utils.h"
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "ir/func_graph_cloner.h"



+ 0
- 2
mindspore/ccsrc/backend/optimizer/pass/fuse_graph_kernel.cc View File

@@ -19,7 +19,6 @@
#include <memory>
#include <string>
#include <algorithm>
#include <unordered_set>
#include <map>
#include <set>
#include <queue>
@@ -31,7 +30,6 @@
#include "backend/optimizer/common/helper.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "ir/func_graph_cloner.h"



+ 0
- 1
mindspore/ccsrc/backend/session/anf_runtime_algorithm.cc View File

@@ -27,7 +27,6 @@
#include "backend/optimizer/common/helper.h"
#include "backend/kernel_compiler/kernel.h"
#include "backend/kernel_compiler/kernel_build_info.h"
#include "utils/ms_utils.h"
#include "common/trans.h"

namespace mindspore {


+ 0
- 1
mindspore/ccsrc/backend/session/ascend_inference_session.cc View File

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

#include <algorithm>
#include "backend/session/ascend_inference_session.h"
#include "frontend/operator/ops.h"
#include "ir/tensor.h"
#include "ir/anf.h"
#include "ir/param_info.h"


+ 0
- 4
mindspore/ccsrc/backend/session/ascend_session.cc View File

@@ -28,17 +28,13 @@
#include "runtime/device/ascend/kernel_select_ascend.h"
#include "runtime/device/ascend/kernel_build_ascend.h"
#include "runtime/device/ascend/ascend_kernel_runtime.h"
#include "runtime/device/ascend/ascend_device_address.h"
#include "backend/optimizer/ascend/ascend_backend_optimization.h"
#include "backend/optimizer/common/common_backend_optimization.h"
#include "runtime/device/kernel_adjust.h"
#include "runtime/device/ascend/ascend_stream_assign.h"
#include "runtime/device/ascend/ascend_label_assign.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "ir/scalar.h"
#include "debug/anf_ir_dump.h"
#include "debug/anf_ir_utils.h"
#include "debug/draw.h"
#include "utils/ms_utils.h"
#include "backend/optimizer/common/helper.h"
#include "runtime/device/kernel_runtime_manager.h"


+ 0
- 2
mindspore/ccsrc/backend/session/cpu_session.cc View File

@@ -17,9 +17,7 @@
#include "backend/session/cpu_session.h"
#include <algorithm>
#include <sstream>
#include "ir/tensor.h"
#include "ir/anf.h"
#include "backend/kernel_compiler/kernel.h"
#include "utils/ms_utils.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "runtime/device/kernel_runtime.h"


+ 0
- 2
mindspore/ccsrc/backend/session/kernel_build_client.cc View File

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

#include "backend/session/kernel_build_client.h"

#include <iostream>
#include <memory>

namespace mindspore {


+ 0
- 3
mindspore/ccsrc/backend/session/session_basic.cc View File

@@ -17,7 +17,6 @@
#include <utility>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include "pipeline/jit/parse/data_converter.h"
#include "ir/manager.h"
#include "ir/param_info.h"
@@ -26,9 +25,7 @@
#include "common/trans.h"
#include "utils/config_manager.h"
#include "backend/session/anf_runtime_algorithm.h"
#include "backend/kernel_compiler/oplib/oplib.h"
#include "backend/optimizer/common/common_backend_optimization.h"
#include "backend/optimizer/pass/const_input_to_attr_registry.h"
#include "backend/optimizer/common/helper.h"
#include "utils/ms_utils.h"
#include "ir/dtype.h"


+ 1
- 1
mindspore/ccsrc/backend/session/session_factory.cc View File

@@ -15,8 +15,8 @@
*/
#include "backend/session/session_factory.h"
#include <memory>
#include <iostream>
#include <string>

namespace mindspore {
namespace session {
SessionFactory &SessionFactory::Get() {


+ 0
- 2
mindspore/ccsrc/debug/anf_ir_dump.cc View File

@@ -20,8 +20,6 @@
#include <fstream>
#include <map>
#include <memory>
#include <unordered_map>

#include "ir/primitive.h"
#include "ir/func_graph.h"
#include "runtime/device/kernel_info.h"


+ 0
- 2
mindspore/ccsrc/debug/anf_ir_utils.cc View File

@@ -20,9 +20,7 @@
#include <map>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>

#include "ir/graph_utils.h"
#include "utils/symbolic.h"
#include "ir/meta_func_graph.h"


+ 0
- 1
mindspore/ccsrc/debug/common.cc View File

@@ -21,7 +21,6 @@
#include "utils/system/env.h"
#include "utils/system/file_system.h"
#include "utils/log_adapter.h"
#include "utils/ms_context.h"

namespace mindspore {
std::optional<std::string> Common::GetRealPath(const std::string &input_path) {


+ 0
- 4
mindspore/ccsrc/debug/draw.cc View File

@@ -15,14 +15,10 @@
*/

#include "debug/draw.h"

#include <algorithm>
#include <iostream>
#include <iterator>
#include <map>
#include <vector>
#include <string>

#include "ir/meta_func_graph.h"
#include "ir/param_info.h"
#include "ir/primitive.h"


+ 0
- 3
mindspore/ccsrc/debug/dump_proto.cc View File

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

#include <fstream>
#include <map>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <algorithm>



+ 0
- 2
mindspore/ccsrc/frontend/operator/cc_implementations.cc View File

@@ -15,12 +15,10 @@
*/

#include "frontend/operator/cc_implementations.h"
#include <cassert>
#include <limits>
#include <algorithm>
#include <cmath>
#include <cfloat>
#include "utils/misc.h"
#include "utils/log_adapter.h"
#include "utils/convert_utils.h"
#include "utils/ms_utils.h"


+ 0
- 1
mindspore/ccsrc/frontend/operator/composite/composite.cc View File

@@ -32,7 +32,6 @@
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"
#include "./common.h"
#include "ir/signature.h"
#include "debug/trace.h"



+ 0
- 1
mindspore/ccsrc/frontend/operator/composite/do_signature.cc View File

@@ -24,7 +24,6 @@
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "./common.h"
#include "pybind_api/api_register.h"



+ 0
- 1
mindspore/ccsrc/frontend/operator/composite/map.cc View File

@@ -28,7 +28,6 @@
#include "pybind_api/api_register.h"
#include "debug/trace.h"
#include "frontend/operator/ops.h"
#include "./common.h"

namespace mindspore {
// namespace to support composite operators definition


+ 0
- 7
mindspore/ccsrc/frontend/operator/composite/multitype_funcgraph.cc View File

@@ -18,20 +18,13 @@
*/

#include "frontend/operator/composite/multitype_funcgraph.h"
#include <algorithm>
#include <utility>
#include <sstream>

#include "ir/anf.h"
#include "ir/func_graph.h"
#include "abstract/abstract_value.h"
#include "abstract/abstract_function.h"
#include "abstract/dshape.h"
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "frontend/optimizer/opt.h"
#include "utils/ms_context.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"
#include "./common.h"
#include "ir/signature.h"


+ 0
- 2
mindspore/ccsrc/frontend/operator/composite/unpack_call.cc View File

@@ -21,11 +21,9 @@
#include "./common.h"
#include "abstract/abstract_value.h"
#include "abstract/dshape.h"
#include "abstract/param_validator.h"
#include "frontend/operator/cc_implementations.h"
#include "ir/anf.h"
#include "frontend/optimizer/opt.h"
#include "utils/symbolic.h"
#include "pybind_api/api_register.h"

namespace mindspore {


+ 0
- 2
mindspore/ccsrc/frontend/operator/ops_extends.cc View File

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

#include "frontend/operator/ops.h"
#include <memory>
#include <string>
#include "pipeline/jit/parse/python_adapter.h"
#include "pipeline/jit/parse/data_converter.h"

namespace mindspore {
// namespace to support primitive operators


+ 0
- 3
mindspore/ccsrc/frontend/operator/prim_to_function.cc View File

@@ -15,9 +15,6 @@
*/

#include "frontend/operator/prim_to_function.h"
#include <exception>
#include <iostream>
#include <string>

namespace mindspore {
// namespace to support prim related definition


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

Loading…
Cancel
Save