You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move the early data-tiling layout decision into its own component #25031
The experimental early data-tiling route (#24967, #24968, #24969) materializes data-tiling layouts during global optimization, before dispatch creation, so that packed contractions fuse with their epilogues and result unpacks. Which layouts to use, and what follows from that choice, is not decided in one place. Several passes re-derive it instead:
FormDispatchRegions ([DispatchCreation] Fuse packed contractions with epilogues and unpack #24967) hardcodes the ops and layouts that CPU materialization produces to decide which result unpacks fuse: mmt4d, data-tiled convolution generics, the narrow-N transposition and the convolution layouts of getEncodingInfoForConv. This also makes it depend on Codegen/Dialect/Codegen/Utils.
Proposal: move the layout decision into its own component that decides once per affinity and records the decision, for example by marking the ops it materializes. Materialization and the dispatch creation passes then query that component instead of matching ops and layouts, and each encoding resolver declares whether its layouts can be materialized before dispatch creation. That would allow heterogeneous modules and other backends to take this route, and remove the HAL and Codegen dependencies from the global phases.
Activity
[GlobalOptimization] Add target-aware layout materialization (#24969)