This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][NVGPU] Introduce Warpgroup Matrix Descriptor Type
ClosedPublic

Authored by guraypp on Aug 21 2023, 3:19 AM.

Details

Summary

The Warpgroup Matrix Descriptor is a 64-bit integer that holds information about a matrix used by the wgmma instruction.

In this work, a new type is introduced for the descriptor. This enhances the readability of the IR and allows for easier verification using MLIR verification tools.

The type contains a 'memref' related to the descriptor, which is crucial for preserving and conveying information.

Depends on D157382

Diff Detail

Event Timeline

guraypp created this revision.Aug 21 2023, 3:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 3:19 AM
guraypp requested review of this revision.Aug 21 2023, 3:19 AM
qcolombet accepted this revision.Aug 22 2023, 3:14 AM
qcolombet added inline comments.
mlir/include/mlir/Dialect/NVGPU/IR/NVGPU.td
659–660

Just reference the new type (NVGPU_WarpgroupMatrixDescriptor) for the layout of the descriptor instead of repeating it.

This revision is now accepted and ready to land.Aug 22 2023, 3:14 AM
guraypp updated this revision to Diff 552358.Aug 22 2023, 7:32 AM

address comment

guraypp updated this revision to Diff 552368.Aug 22 2023, 8:02 AM

add newline

This revision was landed with ongoing or failed builds.Aug 22 2023, 8:02 AM
This revision was automatically updated to reflect the committed changes.