openvino
9d05f9c1 - [Snippets] Fix static kernel cache collision for constant-repacked inputs (#34521)

Commit
37 days ago
[Snippets] Fix static kernel cache collision for constant-repacked inputs (#34521) ### Details: Two BrgemmCPU subgraph nodes with identical body structure and input shapes but different weight packing states (one pre-packed at compile time, another repacked at runtime) could collide on the same `SubgraphKey` entry. In the static shapes case, `io_data_offsets` differ between the two states and are baked into the JIT kernel, so reusing the same kernel produces incorrect results. This PR adds a `constant_repacked_mask` bitmask to `SubgraphKey` and including `io_data_offsets` in `SubgraphStaticCodeGeneratorKey`, ensuring nodes with different packing states get separate cache entries. ### Tickets: - *CVS-180477* ### AI Assistance: - *AI assistance used: yes* - *AI agent has been used to generate test class which covers the problem scenario. Success criteria: if the main fix is reverted, the test must fail*
Author
Parents
Loading