You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request for additional attribute sub_group_sizes #975
max_sub_group_size is not currently supported because of a problem in DPC++ compiler which is already fixed in the sources of open-source intel/llvm. Once new version of DPC++ compiler ships, this property will become available.
In the meantime I wonder if max_work_group_size // max_num_sub_groups is supposed to be always equal to "min(sub_group_sizes)" ?
Here is the response I've gotten from SYCL experts:
In many implementations, the maximum number of sub-groups is a hardware limit that is independent of the sub-group size. For example, the maximum number of sub-groups might be the maximum number of hardware threads. The maximum work-group size for such an implementation would be the maximum number of sub-groups multiplied by the maximum sub-group size. The typically relationship would be max_work_group_size == max_num_sub_groups * max(sub_group_size), but this can't be guaranteed by all implementations, either.
Activity
oleksandr-pavlyk commentedon Nov 9, 2022
max_sub_group_sizeis not currently supported because of a problem in DPC++ compiler which is already fixed in the sources of open-source intel/llvm. Once new version of DPC++ compiler ships, this property will become available.oleksandr-pavlyk commentedon Nov 9, 2022
Here is the response I've gotten from SYCL experts:
In many implementations, the maximum number of sub-groups is a hardware limit that is independent of the sub-group size. For example, the maximum number of sub-groups might be the maximum number of hardware threads. The maximum work-group size for such an implementation would be the maximum number of sub-groups multiplied by the maximum sub-group size. The typically relationship would be
max_work_group_size == max_num_sub_groups * max(sub_group_size), but this can't be guaranteed by all implementations, either.oleksandr-pavlyk commentedon Nov 9, 2022
@fcharras The support for
sub_group_sizeshas been merged to the main branch. Please give it a try.fcharras commentedon Nov 17, 2022
Can confirm that it works: