!4614 Code compile performance optimization

Merge pull request !4614 from zhoufeng/code-compile-performance
pull/4614/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
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>;

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

Loading…
Cancel
Save