Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

The compiler currently warns when properties are used in conjunction with SYCL 2020 properties, warning about potentially ignored conflicting properties. This commit makes the warning messages a little clearer to help users understand what particular properties may be of concern.

The compiler currently warns when properties are used in conjunction
with SYCL 2020 properties, warning about potentially ignored conflicting
properties. This commit makes the warning messages a little clearer to
help users understand what particular properties may be of concern.

Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Do we need to extend the test with a scenario when multiple conflicting properties are possible?

@steffenlarsen
Copy link
Contributor Author

Do we need to extend the test with a scenario when multiple conflicting properties are possible?

We could! I would expect it to just issue multiple warnings for the same line. That said, it is not directly related to these changes, so would you mind if we did it in a follow-up?

@aelovikov-intel
Copy link
Contributor

it is not directly related to these changes

I somewhat disagree with that statement. "conflicting properties are ignored" could be read as anything conflicting will be ignored (even if a stretch, we can still justify if more is ignored). Now that you're specific in what is being ignored, it would be harder to justify if more properties are being ignored yet no warnings are emitted for them.

@steffenlarsen
Copy link
Contributor Author

it is not directly related to these changes

I somewhat disagree with that statement. "conflicting properties are ignored" could be read as anything conflicting will be ignored (even if a stretch, we can still justify if more is ignored). Now that you're specific in what is being ignored, it would be harder to justify if more properties are being ignored yet no warnings are emitted for them.

Right, but functionality nothing has changed, so we would not be testing any logic introduced by this PR, just making sure that the messages fit the current behavior. If you really feel strongly about it, I can do it as part of this patch, but it does feel a little misleading to bundle them together as it might make it look like there's a functional change to this. @elizabethandrews - What are your thoughts on this?

@aelovikov-intel
Copy link
Contributor

How urgent is this PR? We could just make it the second one in the series, after extra tests.

@steffenlarsen
Copy link
Contributor Author

steffenlarsen commented Nov 14, 2025

How urgent is this PR? We could just make it the second one in the series, after extra tests.

Faster to implement than to argue. #20652 adds the cases.

@elizabethandrews
Copy link
Contributor

it is not directly related to these changes

I somewhat disagree with that statement. "conflicting properties are ignored" could be read as anything conflicting will be ignored (even if a stretch, we can still justify if more is ignored). Now that you're specific in what is being ignored, it would be harder to justify if more properties are being ignored yet no warnings are emitted for them.

Right, but functionality nothing has changed, so we would not be testing any logic introduced by this PR, just making sure that the messages fit the current behavior. If you really feel strongly about it, I can do it as part of this patch, but it does feel a little misleading to bundle them together as it might make it look like there's a functional change to this. @elizabethandrews - What are your thoughts on this?

Follow-up PR works for me.

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.

4 participants