This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Allow controlling subgroup size
ClosedPublic

Authored by antiagainst on Nov 29 2022, 4:47 PM.

Details

Summary

This commit extends the ResourceLimitsAttr to support specifying
a minimal and maximal subgroup size, and extends EntryPointABIAttr
to support specifying the requested subgroup size. This is possible
now in Vulkan with the VK_EXT_subgroup_size_control extension.
For OpenCL it's possible to use the SubgroupSize execution mode
directly.

Diff Detail

Event Timeline

antiagainst created this revision.Nov 29 2022, 4:47 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Nov 29 2022, 4:47 PM
ThomasRaoux accepted this revision.Nov 29 2022, 9:49 PM
This revision is now accepted and ready to land.Nov 29 2022, 9:49 PM
This revision was automatically updated to reflect the committed changes.