Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on the definition of max_num_sub_groups #663

Open
AD2605 opened this issue Nov 25, 2024 · 1 comment
Open

Clarification on the definition of max_num_sub_groups #663

AD2605 opened this issue Nov 25, 2024 · 1 comment

Comments

@AD2605
Copy link
Contributor

AD2605 commented Nov 25, 2024

The SYCL specification defines the info::kernel_device_specific::max_num_sub_groups as -

Returns the maximum number of sub-groups for this kernel

Is this the maximum possible number of subgroups in a workgroup ?

Would it be possible to clarify this is a bit further, as from my understanding, it's not immediately clear what max_num_sub_groups would be returning

@gmlueck
Copy link
Contributor

gmlueck commented Nov 25, 2024

I believe this corresponds to the OpenCL query CL_KERNEL_MAX_NUM_SUB_GROUPS. The description there is longer, but I'm not sure it is more clear.

I think this query returns the number of sub-groups you would get if you launched the kernel with the largest possible work-group size, as determined by info::kernel_device_specific::work_group_size / CL_KERNEL_WORK_GROUP_SIZE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants