Skip to content

Temporary C microtile is too small sometimes #850

Open

Description

@devinamatthews

A temporary C microtile is used in various places, such as on the diagonal of a symmetric matrix (GEMMT) where care must be taken not to write to the unstored portion. The size of this microtile is assumed to not be larger than twice the size of all vector registers together (on the assumption that "real" microtiles fit in registers plus some slack). However, several conditions cause a larger microtile to be written:

  • The CRR complex case, where a complex matrix is updated by a real product. The computation is performed in the real domain, which then updates a complex microtile twice as large.
  • Mixed-precision computation, for example computation is performed in single precision and then double precision output is written (which is again twice as large).

Currently, this means that a microtile may be "inflated" by as much as 4x. In the future, with a wider range of data types, this factor could be even larger.

This problems occurs concretely for the SKX configuration when doing zsssgemmt.

Activity

  1. devinamatthews commented on Feb 5, 2025

    @devinamatthews
    MemberAuthor

    Note to self: Altra has a hard-coded max stack buf size which is bad.

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