Skip to content

Move the early data-tiling layout decision into its own component #25031

Open

Description

@maxbartel

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:

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.

The TODOs in the PRs above point here.

Assisted by AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions