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

Fix definition of marray::size() #716

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

Pennycook
Copy link
Contributor

This should return the number of elements in the marray, not its size in bytes.

Closes #525.

This should return the number of elements in the marray, not its size in bytes.
@TApplencourt
Copy link
Contributor

\o/

Copy link
Contributor

@gmlueck gmlueck left a comment

Choose a reason for hiding this comment

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

Yikes! Good catch.

I verified that DPC++ already implements this as "number of elements" and not "size in bytes". Also, it looks like the CTS is testing it that way also. Therefore, I think this is what we meant all along.

@tomdeakin
Copy link
Contributor

WG approved to merge

@gmlueck gmlueck merged commit 7499fc7 into KhronosGroup:main Feb 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the definition of marray::size() to return NumElements
4 participants