OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[Snippets][Docs] Fix broken links (#28368)
Arseniy Obolenskiy8e838ecaf4de
diff --git a/src/common/snippets/docs/debug_capabilities/README.md b/src/common/snippets/docs/debug_capabilities/README.mdindex 317175c7524..d4c23db8e4f 100644--- a/src/common/snippets/docs/debug_capabilities/README.md+++ b/src/common/snippets/docs/debug_capabilities/README.md@@ -9,4 +9,4 @@ Use the following cmake option to enable snippets debug capabilities:* [Performance counters](perf_count.md)* [Snippets segfault detector](snippets_segfault_detector.md)-* [LIR passes serialization](LIR_passes_serialization.md)\ No newline at end of file+* [Linear IR passes serialization](linear_ir_passes_serialization.md)\ No newline at end of filediff --git a/src/common/snippets/docs/debug_capabilities/perf_count.md b/src/common/snippets/docs/debug_capabilities/perf_count.mdindex 9fa7e4ea751..46169216f9d 100644--- a/src/common/snippets/docs/debug_capabilities/perf_count.md+++ b/src/common/snippets/docs/debug_capabilities/perf_count.md@@ -5,4 +5,4 @@ Subgraph in snippets could be very large. Sometimes developers are interested thThere are two perf count modes.- `Chrono` : Perf count via chrono call. This is a universal method, and support multi-threads scenario to print perf count data for each thread.- `BackendSpecific` : Perf count provided by backend. This is for device specific requirement. For example, for sake of more light overhead and more accurate result, x86 or x86-64 CPU specific mode via reading RDTSC register is implemented. At current this x86 or x86-64 CPU BackendSpecific mode only support single thread.- One can select prefered mode by setting `perf_count_mode` default value in [snippets Config](../../include/snippets/utils/debug_caps.hpp)+ One can select prefered mode by setting `perf_count_mode` default value in [snippets Config](../../include/snippets/utils/debug_caps_config.hpp)diff --git a/src/common/snippets/docs/mha_optimization_guide.md b/src/common/snippets/docs/mha_optimization_guide.mdindex 1ea3a4c24c3..51bccbd23cd 100644--- a/src/common/snippets/docs/mha_optimization_guide.md+++ b/src/common/snippets/docs/mha_optimization_guide.md@@ -129,7 +129,7 @@ The heuristics for determining the optimal block sizes can be found in [BrgemmCP### Blocking Order-The lowered pass [BrgemmBlocking](../../../plugins/intel_cpu/src/transformations/snippets/x64/pass/lowered/brgemm_blocking.cpp) performs blocking loops creation on LinearIR.+The lowered pass [BrgemmBlocking](../../../common/snippets/src/lowered/pass/brgemm_blocking.cpp) performs blocking loops creation on LinearIR.Currently, the order of blocking loops is following (from outer to inner): `M->N->K`.## MHA Performance Tuning Recommendationsdiff --git a/src/common/snippets/docs/snippets_design_guide.md b/src/common/snippets/docs/snippets_design_guide.mdindex ce331c7c9fd..2cb50744d0b 100644--- a/src/common/snippets/docs/snippets_design_guide.md+++ b/src/common/snippets/docs/snippets_design_guide.md@@ -638,23 +638,23 @@ Consequently, all the ports connected to the same `PortConnector` will have theIn other words, when all the `Expressions` that required input data in a certain register are evaluated, the register may be reused to hold another `Expression's` output.`AssignRegisters` also supports two types of registers: general-purpose and vector ones.Different types of registers are managed and assigned independently, and a particular register type required by an `Expression` is provided by the `ov::snippets::Generator` (or a derived generator for target-specific `Ops`).-2. `InsertTailLoop` injects tail-processing section after a loop body if needed.+2. `InsertSpecificIterations` injects initialization section before a loop body and tail-processing section after a loop body if needed.Note that every loop has two parameters that specify how its body is evaluated: `work_amount` and `increment` The `work_amount` indicates how much of the data needs to be processed, it often equals to the dimension's size the loop is working on.The `increment` defines how many data entries are processed on every loop iteration (it usually equals to vector size for the innermost loops of elementwise subgraph).So if a loop's `work_amount` is not evenly divisible by its `increment`, it means that a tail processing is required.-`InsertTailLoop` duplicates the body of such a loop, rescales pointer increments and load/store masks appropriately, and injects these `Ops` immediately after the processed loop.+`InsertSpecificIterations` duplicates the body of such a loop, rescales pointer increments and load/store masks appropriately, and injects these `Ops` immediately after the processed loop.3. `CleanupLoopOffsets` "fuses" the finalization offsets of loop with an outer loop's pointer increments and zeroes the offsets before `Result` operations.4. `OptimizeLoopSingleEvaluation` moves all pointer arithmetic to finalization offsets in `LoopEnd`, and marks the loops that will be executed only once.This information will be used during code emission to eliminate redundant instructions.-Please see [assign_registers.cpp](../src/lowered/pass/assign_registers.cpp) and [insert_tail_loop.cpp](../src/lowered/pass/insert_tail_loop.cpp) for more info regarding the main passes in the `Preparation` stage.+Please see [assign_registers.cpp](../src/lowered/pass/assign_registers.cpp) and [insert_specific_iterations.cpp](../src/lowered/pass/insert_specific_iterations.cpp) for more info regarding the main passes in the `Preparation` stage.When the `Preparation` is finished, the `Generator` constructs target-specific emitters by calling `init_emitter(target)` method for every `Expression` in the `LinearIR`, where the `target` is a `TargetMachine` instance.The `TargetMachine` is a class that provides generator with target-specific information, such as supported instruction sets, vector register size etc.`TargetMachine` also maps the OpenVINO's `DiscreteTypeInfo` (stored in the `Expression`) to the emitter that actually implements the operation.The mapping is done using the `jitters` map defined in [target_machine.hpp](../include/snippets/target_machine.hpp).In order for this mechanism to work, every `Snippets'` code generation backend should create emitter implementations derived from the `Emitter` base class defined in [emitter.hpp](../include/snippets/emitter.hpp).-The backend then should create its own target machine class (derived from the common `TargetMachine`) and populate the `jitters` map, see the [cpu_generator.cpp](../../../plugins/intel_cpu/src/emitters/x64/cpu_generator.cpp) for an implementation example.+The backend then should create its own target machine class (derived from the common `TargetMachine`) and populate the `jitters` map, see the [cpu_generator.cpp](../../../plugins/intel_cpu/src/emitters/snippets/x64/cpu_generator.cpp) for an implementation example.Note that `init_emitters(...)` only initializes the appropriate emitters, but do not actually emit any code.To perform code emission, a `snippets::op::Kernel` operation is constructed (see [generator.cpp](../src/generator.cpp)), its constructor takes the `IR` with all the initialized emitters as an only input argument.@@ -663,7 +663,7 @@ Finally, the `kernel->emit_code({}, {})` command initiates the code emission.Note that the `emit_code(...)` is called only for the `KernelEmitter`, and the emitter is responsible for calling the same method for the rest of the expressions in the `IR` This encapsulation is needed because the `KernelEmitter` performs mapping of the assigned abstract registers to physical registers available on a particular platform.Another important function of the `KernelEmitter` is to calculate input/output data offsets based on dimension indices provided in runtime, and to shift corresponding data-handling registers accordingly.Keep in mind however, that the required functionality of the `KernelEmitter` depends on how the rest of the emitters are implemented (particularly for `Load`/`Store` `Ops`).-We've discussed above how the emitters for the `intel_cpu` plugin are implemented (see [jit_snippets_emitters.cpp](../../../plugins/intel_cpu/src/emitters/x64/jit_snippets_emitters.cpp) for more details), but a different backend might require a different approach depending on hardware specifics.+We've discussed above how the emitters for the `intel_cpu` plugin are implemented (see [jit_snippets_emitters.cpp](../../../plugins/intel_cpu/src/emitters/snippets/x64/jit_snippets_emitters.cpp) for more details), but a different backend might require a different approach depending on hardware specifics.## See also