Skip to content

[SYCL] Add buffer dimensions restriction #1128

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

Closed
wants to merge 3 commits into from

Conversation

MochalovaAn
Copy link
Contributor

Adding a static_assert to the buffer dimensions.

Signed-off-by: amochalo [email protected]

Adding a static_assert to the buffer dimensions.

Signed-off-by: amochalo <[email protected]>
Signed-off-by: amochalo <[email protected]>
Signed-off-by: amochalo <[email protected]>
Comment on lines +373 to +376

static_assert (dimensions > 0 && dimensions <= 3,
"Range of the buffer can only be 1/2/3 dimensional.");

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe clang-format should applied for the commit.

@bader bader requested a review from asavonic February 18, 2020 20:30
@bader bader changed the title [SYCL] New buffer restriction [SYCL] Add buffer dimensions restriction Feb 18, 2020
@@ -370,6 +370,10 @@ class buffer {
return newRange[0] == 1 && newRange[2] == parentRange[2];
return newRange[1] == parentRange[1] && newRange[2] == parentRange[2];
}

static_assert (dimensions > 0 && dimensions <= 3,
"Range of the buffer can only be 1/2/3 dimensional.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Range of the buffer can only be 1/2/3 dimensional.");
"A SYCL buffer can only be 1/2/3 dimensional.");

What does "Range of the buffer" mean?

aarongreig added a commit to aarongreig/intel-llvm that referenced this pull request Dec 29, 2023
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.

5 participants