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

Publish the cl_img_swap_ops extension specification. #1201

Merged
merged 3 commits into from
Aug 8, 2024

Conversation

tomasz-platek
Copy link
Contributor

Publish the cl_img_swap_ops extension specification.

extensions/cl_img_swap_ops.asciidoc Outdated Show resolved Hide resolved
|====
| Function | Description
| gentype *img_swap_x*(gentype value)
a| `img_swap_x` swaps `values` between work-items in the following way: all work-items are divided into blocks of four consecutive elements. For each block:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider documenting the behavior if the number of work-items is not evenly divisible by four, or if some work-items in the block of four are inactive (due to flow control).

Also consider documenting what "consecutive" means, especially for multi-dimensional work-groups.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I defined the behavior as undefined for these cases as I don't see any reasonable way of handling them.

tomasz-platek and others added 2 commits July 10, 2024 09:56
Listing the initial extension version.

Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
Defining behavior as undefined for cases when the number of work-items is not evenly divisible by four and if some work-items in the block of four are inactive, defining 1-dimensional local ID as a base for grouping work-items.
@bashbaug
Copy link
Contributor

bashbaug commented Aug 8, 2024

PR has been open for over a month with no additional comments. Merging!

@bashbaug bashbaug merged commit b6f65dd into KhronosGroup:main Aug 8, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants