[mlir][spirv] Change default subgroup size

This should really come from a matching target environment. But
as a default, it can be handy (to avoid always listing the full
resource limits attribute in IR, etc.). It's common to see 32
so use that as the subgroup size.

Reviewed By: scotttodd

Differential Revision: https://reviews.llvm.org/D115534
This commit is contained in:
Lei Zhang 2021-12-10 13:58:02 -05:00
parent 222d7fc7f8
commit 1bfa40a5d6
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ def SPV_ResourceLimitsAttr : StructAttr<"ResourceLimitsAttr", SPIRV_Dialect, [
DefaultValuedAttr<I32ElementsAttr, "{128, 128, 64}">>,
// The default number of invocations in each subgroup.
// 0x7FFFFFFF means unknown.
StructFieldAttr<"subgroup_size", DefaultValuedAttr<I32Attr, "0x7FFFFFFF">>,
StructFieldAttr<"subgroup_size", DefaultValuedAttr<I32Attr, "32">>,
// The configurations of cooperative matrix operations
// supported. Default is an empty list.