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

Expose Dimensions template paramter for {nd_}range, {nd_,h_}item and id #1016

Merged
merged 7 commits into from
May 8, 2023

Conversation

nilsfriess
Copy link
Collaborator

In the newest revision of the SYCL 2020 spec, a static constexpr int dimensions member was added to a few classes to expose their Dimensions template parameter. In our case, the template parameter was typically lowercase, so I had to change it to Dimensions (with an uppercase D). I also changed it to uppercase in place where it wasn't strictly necessary (for instance in forward declarations) just to make the names of the template parameters consistent.

@nilsfriess nilsfriess changed the title Add static dims member Expose Dimensions template paramter for {nd_}range, {nd_,h_}item and id Apr 21, 2023
Copy link
Collaborator

@illuhad illuhad left a comment

Choose a reason for hiding this comment

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

Good catch!
What is the state of the scoped parallelism classes (e.g. sp_group), should we add it there as well?

@nilsfriess
Copy link
Collaborator Author

I added it to sp_item, sp_group already has it :)

Copy link
Collaborator

@illuhad illuhad left a comment

Choose a reason for hiding this comment

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

Thanks!

@illuhad illuhad merged commit e071080 into AdaptiveCpp:develop May 8, 2023
17 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.

None yet

2 participants