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

[SYCL] Statically verify that set_final_data is called with non-const iterator #12832

Closed
wants to merge 14 commits into from

Conversation

lbushi25
Copy link
Contributor

@lbushi25 lbushi25 commented Feb 27, 2024

The code does not explicitly check whether the Iterator passed to set_final_data method of the buffer class is non-const and this leads to silent incorrect behavior or overly complicated compiler errors. This PR adds a static assertion to perform this check and on failure prints a descriptive error message to the screen.

@lbushi25 lbushi25 requested a review from a team as a code owner February 27, 2024 01:53
@lbushi25 lbushi25 marked this pull request as draft February 27, 2024 01:55
@lbushi25 lbushi25 closed this Feb 27, 2024
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.

1 participant