Skip to content

LinAlg Validation: MatrixStoreToMemory #8498

Closed

Description

From the spec:

  • Store a matrix to groupshared memory. If the groupshared memory is any type other than i32 or vector of i32, the matrix's component type must match the scalar type or vector component type of the groupshared array. If the groupshared memory is i32 or vector of N by i32 (< N x i32 >) the matrix may be of any type. Validation will verify this requirement.

Validation rules will enforce that:

  • The matrix scope must be Wave or ThreadGroup
  • group shared target memory is large enough for the write

Activity

  1. V-FEXrt commented on Jul 27, 2026

    @V-FEXrt
    CollaboratorAuthor
  2. V-FEXrt commented on Jul 27, 2026

    @V-FEXrt
    CollaboratorAuthor

    per #8635

    Validation should enforce that the groupshared arrays in dx.op.linAlgMatrixStoreToMemory & dx.op.linAlgMatrixLoadFromMemory are either arrays of scalars or vectors with element types that match the matrix element type or that the groupshared array's element type is i32.

    It is legal to load and store any type of matrix to i32 groupshared memory, but not to mismatch other types.

  3. V-FEXrt commented on Jul 27, 2026

    @V-FEXrt
    CollaboratorAuthor

    per #8636

    Based on microsoft/hlsl-specs#879, new validation should be added for dx.op.linAlgMatrixStoreToMemory, dx.op.linAlgMatrixLoadFromMemory, and dx.op.linAlgMatrixAccumulateToMemory that the stride and offset values (if they are constants) must be properly aligned. The offset must be 128-byte aligned, and the stride must be 16-byte aligned.

  4. moved this from Ready to Active in HLSL Supporton Aug 20, 2026
  5. added a commit that references this issue on Aug 26, 2026
    c86ad69
  6. moved this from Active to Closed in HLSL Supporton Sep 1, 2026
  7. added a commit that references this issue on Sep 1, 2026
    fe09c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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