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

Clarify CL_DEVICE_LOCAL_MEM_SIZE #1291

Open
Pennycook opened this issue Dec 13, 2024 · 0 comments
Open

Clarify CL_DEVICE_LOCAL_MEM_SIZE #1291

Pennycook opened this issue Dec 13, 2024 · 0 comments

Comments

@Pennycook
Copy link

The definition of CL_DEVICE_LOCAL_MEM_SIZE is given as:

Size of local memory region in bytes. The minimum value is 32 KB for devices that are not of type CL_DEVICE_TYPE_CUSTOM.

I think the meaning of "local memory region" here is ambiguous, because it could refer to either:

  1. The size of the physical local memory present in each compute unit; or
  2. The maximum amount of local memory available to a single work-group.

Based on the behavior of existing implementations, it seems that the intent is 2). Wording like the following would be clearer:

Maximum amount of local memory available to each work-group, in bytes. The minimum value is 32 KB for devices that are not of type CL_DEVICE_TYPE_CUSTOM.

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

No branches or pull requests

1 participant