This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Decouple GPUDeviceMapping attribute from the GPU transfrom dialect code generator
ClosedPublic

Authored by guraypp on Nov 15 2022, 2:59 AM.

Details

Summary

DeviceMappingAttrInterface is implemented as unifiying mechanism for thread mapping. A code generator could use any attribute that implements this interface to lower scf.foreach_thread to device specific code. It is allowed to choose its own mapping and interpretation.

Currently, GPU transform dialect supports only GPUThreadMapping and GPUBlockMapping; however, other mappings should to be supported as well. This change addresses this issue. It decouples gpu transform dialect from the GPUThreadMapping and GPUBlockMapping. Now, they can work any other mapping.

Diff Detail

Event Timeline

guraypp created this revision.Nov 15 2022, 2:59 AM
guraypp requested review of this revision.Nov 15 2022, 2:59 AM
guraypp updated this revision to Diff 475406.Nov 15 2022, 3:03 AM

remove accidentally edited lines

This revision is now accepted and ready to land.Nov 15 2022, 8:16 AM