Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[Snippets][DEBUG_CAPS][CPU] Enable InsertPerfCountVerbose pass on ARM64 (#32031)

Arseniy Obolenskiyd4d574b37e8e
diff --git a/src/plugins/intel_cpu/src/nodes/subgraph.cpp b/src/plugins/intel_cpu/src/nodes/subgraph.cpp
index d4fd2c6b5f7..16fe6ebcc56 100644
--- a/src/plugins/intel_cpu/src/nodes/subgraph.cpp
+++ b/src/plugins/intel_cpu/src/nodes/subgraph.cpp
@@ -46,7 +46,6 @@
# include "emitters/snippets/x64/cpu_generator.hpp"
# include "executors/x64/subgraph.hpp"
-# include "snippets/lowered/pass/insert_perf_count_verbose.hpp"
# include "snippets/pass/matmul_to_brgemm.hpp"
#elif defined(OPENVINO_ARCH_ARM64)
# include <cpu/aarch64/cpu_isa_traits.hpp>
@@ -65,6 +64,7 @@
#if !defined(OPENVINO_ARCH_RISCV64)
# include "emitters/snippets/cpu_runtime_configurator.hpp"
+# include "snippets/lowered/pass/insert_perf_count_verbose.hpp"
# include "snippets/lowered/pass/mark_loops.hpp"
# include "snippets/pass/propagate_precision.hpp"
#endif
@@ -638,6 +638,9 @@ Subgraph::ControlFlowPasses Subgraph::getControlFlowPasses() {
SNIPPETS_REGISTER_PASS_RELATIVE_X86_64(Place::After,
ov::snippets::lowered::pass::MarkLoops,
ov::intel_cpu::pass::BrgemmCPUBlocking);
+ SNIPPETS_REGISTER_PASS_RELATIVE_ARM64(Place::After,
+ ov::snippets::lowered::pass::MarkLoops,
+ ov::intel_cpu::pass::GemmCPUBlocking);
SNIPPETS_REGISTER_PASS_RELATIVE_X86_64(Place::After,
ov::intel_cpu::pass::BrgemmCPUBlocking,
ov::intel_cpu::pass::ParallelizeGatedMlpNLoops);
@@ -648,6 +651,10 @@ Subgraph::ControlFlowPasses Subgraph::getControlFlowPasses() {
ov::intel_cpu::pass::BrgemmCPUBlocking,
ov::snippets::lowered::pass::InsertPerfCountVerbose,
getName());
+ SNIPPETS_REGISTER_PASS_RELATIVE_ARM64(Place::After,
+ ov::intel_cpu::pass::GemmCPUBlocking,
+ ov::snippets::lowered::pass::InsertPerfCountVerbose,
+ getName());
}
#endif // SNIPPETS_DEBUG_CAPS
@@ -661,9 +668,6 @@ Subgraph::ControlFlowPasses Subgraph::getControlFlowPasses() {
SNIPPETS_REGISTER_PASS_RELATIVE_X86_64(Place::Before,
ov::snippets::lowered::pass::InsertBuffers,
ov::intel_cpu::pass::InsertBrgemmCopyBuffers);
- SNIPPETS_REGISTER_PASS_RELATIVE_ARM64(Place::After,
- ov::snippets::lowered::pass::MarkLoops,
- ov::intel_cpu::pass::GemmCPUBlocking);
SNIPPETS_REGISTER_PASS_RELATIVE_ARM64(Place::After,
ov::snippets::lowered::pass::InitLoops,
ov::intel_cpu::pass::aarch64::AdjustGemmCopyBLoopPorts);