forked from mindspore-Ecosystem/mindspore
!4614 Code compile performance optimization
Merge pull request !4614 from zhoufeng/code-compile-performance
This commit is contained in:
commit
4f46c4277a
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include "backend/kernel_compiler/oplib/oplib.h"
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
#include <map>
|
||||
#include <fstream>
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include "backend/kernel_compiler/tbe/tbe_kernel_parallel_build.h"
|
||||
|
||||
#include <memory>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "backend/optimizer/ascend/ir_fission/bn_split.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "utils/utils.h"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
|
||||
#include <unordered_set>
|
||||
#include <deque>
|
||||
#include <algorithm>
|
||||
|
||||
#include "ir/anf.h"
|
||||
#include "ir/func_graph.h"
|
||||
#include "ir/manager.h"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
#include "backend/optimizer/mem_reuse/kernel_refcount.h"
|
||||
#include <algorithm>
|
||||
#include "utils/log_adapter.h"
|
||||
|
||||
namespace mindspore {
|
||||
namespace memreuse {
|
||||
/**
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
|
||||
#include "backend/optimizer/pass/const_input_to_attr_registry.h"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "backend/session/kernel_build_client.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
namespace mindspore {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
*/
|
||||
#include "backend/session/session_factory.h"
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
namespace mindspore {
|
||||
namespace session {
|
||||
SessionFactory &SessionFactory::Get() {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -14,11 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <algorithm>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 have changed in this diff Show More
Loading…
Reference in New Issue