Skip to content

[SYCL] Do not make auto& range parallel_for a future breaking change #11897

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

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

jzc
Copy link
Contributor

@jzc jzc commented Nov 15, 2023

No description provided.

@jzc jzc requested a review from a team as a code owner November 15, 2023 16:27
@jzc jzc requested a review from cperkinsintel November 15, 2023 16:27
@jzc jzc temporarily deployed to WindowsCILock November 15, 2023 22:52 — with GitHub Actions Inactive
#ifndef PREVIEW_BREAKING_CHANGES
// For backwards compatibility, we still support some invalid variants of
// kernel lambdas. These test cases should be removed once we make conformant
// mode the default.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused. The comment here says that we still support invalid variants and hides the tests behind the #ifndef .

But here you are removing the guards and just running the tests. So these variants are not invalid?

Copy link
Contributor

Choose a reason for hiding this comment

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

Strictly speaking, they are invalid according to the current wording of SYCL 2020 spec. However, we have received feedback from @gmlueck that in this case we would like to lift the spec restrictions instead of breaking existing code

Copy link
Contributor

Choose a reason for hiding this comment

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

We actually think this is a bug in the spec, and the spec should allow "auto &". I have a TODO task to propose a PR that changes the spec.

@AlexeySachkov AlexeySachkov merged commit 98b5505 into intel:sycl Nov 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