diff --git a/mindspore/ccsrc/backend/common/session/ascend_session.cc b/mindspore/ccsrc/backend/common/session/ascend_session.cc index 932738bd80..c1ae576ed0 100644 --- a/mindspore/ccsrc/backend/common/session/ascend_session.cc +++ b/mindspore/ccsrc/backend/common/session/ascend_session.cc @@ -41,7 +41,7 @@ #include "include/common/utils/anfalgo.h" #include "utils/ms_utils.h" #include "include/common/utils/utils.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/helper.h" #include "runtime/device/kernel_runtime_manager.h" #include "runtime/pynative/op_runtime_info.h" diff --git a/mindspore/ccsrc/backend/common/session/cpu_session.cc b/mindspore/ccsrc/backend/common/session/cpu_session.cc index 2704a925a9..12a7a7c2c4 100644 --- a/mindspore/ccsrc/backend/common/session/cpu_session.cc +++ b/mindspore/ccsrc/backend/common/session/cpu_session.cc @@ -21,7 +21,7 @@ #include "ir/anf.h" #include "utils/ms_utils.h" #include "utils/trace_base.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/session/anf_runtime_algorithm.h" #include "include/common/utils/anfalgo.h" #include "plugin/factory/ms_factory.h" diff --git a/mindspore/ccsrc/backend/common/session/gpu_session.cc b/mindspore/ccsrc/backend/common/session/gpu_session.cc index b0dc437579..1fb0a97983 100644 --- a/mindspore/ccsrc/backend/common/session/gpu_session.cc +++ b/mindspore/ccsrc/backend/common/session/gpu_session.cc @@ -82,7 +82,7 @@ #include "utils/ms_utils.h" #include "include/common/utils/config_manager.h" #include "utils/ms_context.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "include/common/utils/utils.h" #include "abstract/utils.h" #if ENABLE_CPU && ENABLE_GPU diff --git a/mindspore/ccsrc/common/graph_kernel/CMakeLists.txt b/mindspore/ccsrc/common/graph_kernel/CMakeLists.txt index b8a3bcb27c..2d1a027f76 100644 --- a/mindspore/ccsrc/common/graph_kernel/CMakeLists.txt +++ b/mindspore/ccsrc/common/graph_kernel/CMakeLists.txt @@ -9,4 +9,10 @@ if(ENABLE_AKG AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux") list(APPEND _GRAPH_KERNEL_SRC_FILES ${_GK_SRC_LIST}) add_library(_mindspore_common_graph_kernel_obj OBJECT ${_GRAPH_KERNEL_SRC_FILES}) +else() + # GraphKernel only supports linux system now, but the GraphKernelFlags is a public class + set(_GRAPH_KERNEL_PUBLIC_FILES + ${CMAKE_CURRENT_SOURCE_DIR}/graph_kernel_flags.cc + ) + add_library(_mindspore_common_graph_kernel_obj OBJECT ${_GRAPH_KERNEL_PUBLIC_FILES}) endif() diff --git a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_expander_with_py.cc b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_expander_with_py.cc index a0a6b6b679..192412e114 100644 --- a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_expander_with_py.cc +++ b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_expander_with_py.cc @@ -22,7 +22,7 @@ #include #include "utils/ms_context.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "kernel/akg/akg_kernel_json_generator.h" #include "common/graph_kernel/core/graph_kernel_utils.h" #include "common/graph_kernel/graph_kernel_helper.h" diff --git a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_optimization.cc b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_optimization.cc index f47b72a72a..d27990c41b 100644 --- a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_optimization.cc +++ b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_optimization.cc @@ -22,7 +22,7 @@ #include "ir/func_graph.h" #include "utils/ms_context.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "common/graph_kernel/add_atomic_clean.h" #include "common/graph_kernel/add_stitch_atomic_clean_gpu.h" #include "common/graph_kernel/arithmetic_simplify.h" diff --git a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_pass_manager.h b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_pass_manager.h index a0156e7a68..94f8db41c4 100644 --- a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_pass_manager.h +++ b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_pass_manager.h @@ -21,7 +21,7 @@ #include #include -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/pass_manager.h" namespace mindspore::graphkernel { diff --git a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_splitter_with_py.cc b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_splitter_with_py.cc index 9687986a21..d881ee59a2 100644 --- a/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_splitter_with_py.cc +++ b/mindspore/ccsrc/common/graph_kernel/adapter/graph_kernel_splitter_with_py.cc @@ -28,7 +28,7 @@ #include "kernel/common_utils.h" #include "common/graph_kernel/core/graph_kernel_utils.h" #include "common/graph_kernel/graph_kernel_helper.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" namespace mindspore::graphkernel { class CostModelSplitSchemer : public SplitSchemer { diff --git a/mindspore/ccsrc/common/graph_kernel/arithmetic_simplify.cc b/mindspore/ccsrc/common/graph_kernel/arithmetic_simplify.cc index 81fd62db71..d5825288c0 100644 --- a/mindspore/ccsrc/common/graph_kernel/arithmetic_simplify.cc +++ b/mindspore/ccsrc/common/graph_kernel/arithmetic_simplify.cc @@ -30,7 +30,7 @@ #include "backend/common/session/anf_runtime_algorithm.h" #include "include/common/utils/anfalgo.h" #include "ir/anf.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" namespace mindspore::graphkernel { // operator which follows commutative rules diff --git a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_cluster.cc b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_cluster.cc index fbaf90a26f..c1b7b85c91 100644 --- a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_cluster.cc +++ b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_cluster.cc @@ -27,7 +27,7 @@ #include "utils/anf_utils.h" #include "utils/ms_context.h" #include "utils/file_utils.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "common/graph_kernel/core/graph_kernel_callback.h" #include "common/graph_kernel/core/graph_kernel_utils.h" #include "common/graph_kernel/core/graph_builder.h" diff --git a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_expander.cc b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_expander.cc index 203740b24f..2ea2252794 100644 --- a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_expander.cc +++ b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_expander.cc @@ -24,7 +24,7 @@ #include "ir/graph_utils.h" #include "utils/anf_utils.h" #include "utils/ms_context.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "common/graph_kernel/core/graph_builder.h" #include "common/graph_kernel/core/graph_kernel_callback.h" #include "common/graph_kernel/core/graph_kernel_utils.h" diff --git a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_splitter.cc b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_splitter.cc index e040eecece..a873ee4205 100644 --- a/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_splitter.cc +++ b/mindspore/ccsrc/common/graph_kernel/core/graph_kernel_splitter.cc @@ -25,7 +25,7 @@ #include "utils/anf_utils.h" #include "utils/hash_map.h" #include "utils/hash_set.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "kernel/akg/akg_kernel_json_generator.h" #include "common/graph_kernel/core/graph_kernel_callback.h" #include "common/graph_kernel/core/graph_kernel_utils.h" diff --git a/mindspore/ccsrc/utils/context/graph_kernel_flags.cc b/mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.cc similarity index 99% rename from mindspore/ccsrc/utils/context/graph_kernel_flags.cc rename to mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.cc index 2e44105b6d..71703bd7ad 100644 --- a/mindspore/ccsrc/utils/context/graph_kernel_flags.cc +++ b/mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include #include diff --git a/mindspore/ccsrc/include/common/utils/context/graph_kernel_flags.h b/mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.h similarity index 96% rename from mindspore/ccsrc/include/common/utils/context/graph_kernel_flags.h rename to mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.h index 5786719e48..decda0a037 100644 --- a/mindspore/ccsrc/include/common/utils/context/graph_kernel_flags.h +++ b/mindspore/ccsrc/common/graph_kernel/graph_kernel_flags.h @@ -14,15 +14,14 @@ * limitations under the License. */ -#ifndef MINDSPORE_CCSRC_INCLUDE_COMMON_UTILS_GRAPH_KERNEL_FLAGS_H -#define MINDSPORE_CCSRC_INCLUDE_COMMON_UTILS_GRAPH_KERNEL_FLAGS_H +#ifndef MINDSPORE_CCSRC_COMMON_GRAPH_KERNEL_GRAPH_KERNEL_FLAGS_H +#define MINDSPORE_CCSRC_COMMON_GRAPH_KERNEL_GRAPH_KERNEL_FLAGS_H #include #include #include #include #include -#include "include/common/visible.h" namespace mindspore::graphkernel { constexpr unsigned int OptLevel_0 = 0; // Disabled @@ -35,7 +34,7 @@ constexpr unsigned int OpLevel_0 = 0; constexpr unsigned int OpLevel_1 = 1; constexpr unsigned int OpLevel_MAX = 2; -class COMMON_EXPORT GraphKernelFlags { +class GraphKernelFlags { public: static const GraphKernelFlags &GetInstance(); @@ -226,4 +225,4 @@ class COMMON_EXPORT GraphKernelFlags { bool enable_graph_kernel_; }; } // namespace mindspore::graphkernel -#endif // MINDSPORE_CCSRC_INCLUDE_COMMON_UTILS_GRAPH_KERNEL_FLAGS_H +#endif // MINDSPORE_CCSRC_COMMON_GRAPH_KERNEL_GRAPH_KERNEL_FLAGS_H diff --git a/mindspore/ccsrc/common/graph_kernel/graph_kernel_helper.cc b/mindspore/ccsrc/common/graph_kernel/graph_kernel_helper.cc index b1c754ad5a..cf5bf3176b 100644 --- a/mindspore/ccsrc/common/graph_kernel/graph_kernel_helper.cc +++ b/mindspore/ccsrc/common/graph_kernel/graph_kernel_helper.cc @@ -34,7 +34,7 @@ #include "ir/func_graph.h" #include "include/common/utils/python_adapter.h" #include "pipeline/jit/action.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" namespace mindspore::graphkernel { namespace { diff --git a/mindspore/ccsrc/common/graph_kernel/graph_kernel_recompute.h b/mindspore/ccsrc/common/graph_kernel/graph_kernel_recompute.h index 4b44405f00..6dea6967b2 100644 --- a/mindspore/ccsrc/common/graph_kernel/graph_kernel_recompute.h +++ b/mindspore/ccsrc/common/graph_kernel/graph_kernel_recompute.h @@ -22,7 +22,7 @@ #include #include #include -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/pass.h" #include "ir/func_graph.h" diff --git a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_expander_lite.cc b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_expander_lite.cc index 156e0a3d57..ded071f067 100644 --- a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_expander_lite.cc +++ b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_expander_lite.cc @@ -21,7 +21,7 @@ #include "backend/common/optimizer/const_input_to_attr.h" #include "common/graph_kernel/core/graph_kernel_utils.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "utils/anf_utils.h" #include "utils/ms_context.h" diff --git a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_optimization.cc b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_optimization.cc index 20157dc00a..81a830837f 100644 --- a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_optimization.cc +++ b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_optimization.cc @@ -20,7 +20,7 @@ #include #include "ir/func_graph.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/pass/getitem_tuple.h" #include "common/graph_kernel/core/graph_kernel_cluster.h" #include "common/graph_kernel/core/graph_kernel_splitter.h" diff --git a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_pass_manager.h b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_pass_manager.h index a86c5a7bfb..0271e8f263 100644 --- a/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_pass_manager.h +++ b/mindspore/ccsrc/common/graph_kernel/lite_adapter/graph_kernel_pass_manager.h @@ -22,7 +22,7 @@ #include #include "backend/common/optimizer/pass_manager.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" namespace mindspore::graphkernel { using opt::PassManager; diff --git a/mindspore/ccsrc/common/graph_kernel/parallel_fusion.cc b/mindspore/ccsrc/common/graph_kernel/parallel_fusion.cc index df93bb8c0e..9ce7524408 100644 --- a/mindspore/ccsrc/common/graph_kernel/parallel_fusion.cc +++ b/mindspore/ccsrc/common/graph_kernel/parallel_fusion.cc @@ -21,7 +21,7 @@ #include #include #include -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "kernel/kernel.h" #include "common/graph_kernel/graph_kernel_helper.h" #include "kernel/common_utils.h" diff --git a/mindspore/ccsrc/common/graph_kernel/reduce_fake_out_mem.h b/mindspore/ccsrc/common/graph_kernel/reduce_fake_out_mem.h index 5c45fdff3e..6f940d2401 100644 --- a/mindspore/ccsrc/common/graph_kernel/reduce_fake_out_mem.h +++ b/mindspore/ccsrc/common/graph_kernel/reduce_fake_out_mem.h @@ -18,7 +18,7 @@ #include #include -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/pass.h" #include "common/graph_kernel/add_atomic_clean.h" #include "ir/func_graph.h" diff --git a/mindspore/ccsrc/common/mem_reuse/mem_reuse.cc b/mindspore/ccsrc/common/mem_reuse/mem_reuse.cc index 5612d50584..6709b9a8b5 100644 --- a/mindspore/ccsrc/common/mem_reuse/mem_reuse.cc +++ b/mindspore/ccsrc/common/mem_reuse/mem_reuse.cc @@ -18,7 +18,7 @@ #include #include #include -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "common/mem_reuse/mem_reuse_checker.h" #include "backend/common/optimizer/helper.h" diff --git a/mindspore/ccsrc/kernel/akg/akg_kernel_build.cc b/mindspore/ccsrc/kernel/akg/akg_kernel_build.cc index 29f9eefb49..707228020e 100644 --- a/mindspore/ccsrc/kernel/akg/akg_kernel_build.cc +++ b/mindspore/ccsrc/kernel/akg/akg_kernel_build.cc @@ -34,7 +34,7 @@ #include "nlohmann/json.hpp" #include "ir/dtype.h" #include "ir/func_graph.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "kernel/common_utils.h" #include "kernel/akg/akg_kernel_json_generator.h" #include "backend/common/session/anf_runtime_algorithm.h" diff --git a/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_device_context.cc b/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_device_context.cc index 9e86606911..dc125dec6b 100644 --- a/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_device_context.cc +++ b/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_device_context.cc @@ -22,7 +22,7 @@ #include "runtime/dev.h" #include "plugin/device/ascend/optimizer/ascend_backend_optimization.h" #include "common/graph_kernel/adapter/graph_kernel_optimization.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "include/common/utils/utils.h" #include "include/common/utils/parallel_context.h" #include "plugin/device/ascend/hal/device/kernel_select_ascend.h" diff --git a/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_graph_optimization.cc b/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_graph_optimization.cc index 35706a2115..7a3987ab62 100644 --- a/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_graph_optimization.cc +++ b/mindspore/ccsrc/plugin/device/ascend/hal/hardware/ascend_graph_optimization.cc @@ -21,7 +21,7 @@ #include "plugin/device/ascend/optimizer/ascend_backend_optimization.h" #include "common/graph_kernel/adapter/graph_kernel_optimization.h" #include "backend/common/session/ascend_auto_monad.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "plugin/device/ascend/hal/device/kernel_select_ascend.h" #include "runtime/device/kernel_adjust.h" diff --git a/mindspore/ccsrc/plugin/device/ascend/optimizer/ascend_backend_optimization.cc b/mindspore/ccsrc/plugin/device/ascend/optimizer/ascend_backend_optimization.cc index f36b0e22d3..e5adea52b2 100644 --- a/mindspore/ccsrc/plugin/device/ascend/optimizer/ascend_backend_optimization.cc +++ b/mindspore/ccsrc/plugin/device/ascend/optimizer/ascend_backend_optimization.cc @@ -157,7 +157,7 @@ #include "plugin/device/ascend/kernel/tbe/tbe_kernel_compile.h" #include "utils/ms_context.h" #include "include/common/utils/config_manager.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "include/common/debug/anf_ir_dump.h" #include "include/common/debug/dump_proto.h" #include "include/common/debug/draw.h" diff --git a/mindspore/ccsrc/plugin/device/ascend/optimizer/buffer_fusion/matmul_eltwise_fusion_pass.cc b/mindspore/ccsrc/plugin/device/ascend/optimizer/buffer_fusion/matmul_eltwise_fusion_pass.cc index 713b446964..49afbb7a90 100644 --- a/mindspore/ccsrc/plugin/device/ascend/optimizer/buffer_fusion/matmul_eltwise_fusion_pass.cc +++ b/mindspore/ccsrc/plugin/device/ascend/optimizer/buffer_fusion/matmul_eltwise_fusion_pass.cc @@ -18,7 +18,7 @@ #include "backend/common/session/anf_runtime_algorithm.h" #include "include/common/utils/anfalgo.h" #include "base/core_ops.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/fusion_id_allocator.h" namespace mindspore { diff --git a/mindspore/ccsrc/plugin/device/cpu/hal/hardware/cpu_device_context.cc b/mindspore/ccsrc/plugin/device/cpu/hal/hardware/cpu_device_context.cc index 9027a22fcc..897ea2607f 100644 --- a/mindspore/ccsrc/plugin/device/cpu/hal/hardware/cpu_device_context.cc +++ b/mindspore/ccsrc/plugin/device/cpu/hal/hardware/cpu_device_context.cc @@ -24,7 +24,7 @@ #include "kernel/kernel_build_info.h" #include "plugin/device/cpu/hal/device/kernel_select_cpu.h" #include "utils/trace_base.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "backend/common/optimizer/optimizer.h" #include "backend/common/optimizer/pass_manager.h" #include "backend/common/optimizer/common_backend_optimization.h" diff --git a/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc b/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc index 12965b2fb6..f057b2abde 100644 --- a/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc +++ b/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc @@ -26,7 +26,7 @@ #include "plugin/device/gpu/hal/device/distribution/collective_init.h" #include "include/common/utils/convert_utils.h" #include "utils/ms_context.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "runtime/device/kernel_runtime_manager.h" #include "plugin/device/gpu/hal/device/gpu_common.h" #include "utils/ms_utils.h" diff --git a/mindspore/ccsrc/plugin/device/gpu/hal/hardware/gpu_device_context.cc b/mindspore/ccsrc/plugin/device/gpu/hal/hardware/gpu_device_context.cc index e3da3a23c6..9fdfca081c 100644 --- a/mindspore/ccsrc/plugin/device/gpu/hal/hardware/gpu_device_context.cc +++ b/mindspore/ccsrc/plugin/device/gpu/hal/hardware/gpu_device_context.cc @@ -31,7 +31,7 @@ #include "plugin/device/gpu/kernel/cuda_impl/cuda_ops/cuda_common.h" #include "plugin/device/gpu/hal/hardware/optimizer.h" #include "runtime/device/ms_device_shape_transfer.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "plugin/device/gpu/hal/device/gpu_bucket.h" #include "profiler/device/gpu/gpu_profiling.h" #include "profiler/device/gpu/gpu_profiling_utils.h" diff --git a/mindspore/ccsrc/runtime/graph_scheduler/graph_compiler.cc b/mindspore/ccsrc/runtime/graph_scheduler/graph_compiler.cc index bad1061cf7..e7ba9e8e06 100644 --- a/mindspore/ccsrc/runtime/graph_scheduler/graph_compiler.cc +++ b/mindspore/ccsrc/runtime/graph_scheduler/graph_compiler.cc @@ -25,7 +25,7 @@ #include "runtime/device/ms_device_shape_transfer.h" #include "runtime/pynative/op_runtime_info.h" #include "include/common/utils/convert_utils.h" -#include "include/common/utils/context/graph_kernel_flags.h" +#include "common/graph_kernel/graph_kernel_flags.h" #include "utils/ms_context.h" #include "ir/tensor.h" #include "backend/common/optimizer/helper.h" diff --git a/mindspore/ccsrc/utils/context/OWNERS b/mindspore/ccsrc/utils/context/OWNERS deleted file mode 100644 index ee5d9b4e30..0000000000 --- a/mindspore/ccsrc/utils/context/OWNERS +++ /dev/null @@ -1,7 +0,0 @@ -files: - ".*graph_kernel.*": - approvers: - - gaoxiong1 - - ckey_dou - - anyrenwei - - dayschan