-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] [FPGA] Add template parameter support for work_group_size attributes #2906
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
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a42d18c
[SYCL] Add template parameter support for work_group_size attributes
smanna12 7f09ae5
Fix Clang format errors
smanna12 8c1e868
Fix Clang format errors
smanna12 d8790ff
Address review comments
smanna12 0a37b9e
Fix errors
smanna12 a72cc84
Fix errors
smanna12 05f2d08
remove extra space issues
smanna12 d06e05d
Address review comments
smanna12 e741d57
Address review comments
smanna12 74530d6
Merge remote-tracking branch 'my_remote/sycl' into TempSupportTripleA…
smanna12 730d481
update patch
smanna12 8359e95
Fix errors
smanna12 6b01ac3
Fix errors
smanna12 ef03d04
Fix errors
smanna12 8dccbfd
Address review comments
smanna12 e749b0e
Address review comments
smanna12 767ded2
add warning diagnostic for nrgative attribute values and updated tests
smanna12 245fa08
Accept attribute with negative value
smanna12 4ead54f
Fix error
smanna12 0ac937c
address review comments
smanna12 71edf5f
Remove extra space from test
smanna12 860b753
Reword of diagnostic message
smanna12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in review. I was on vacation without email access.
I think this diagnostic is too long. Can't we just say -
"xyz parameter is non-negative after implicit conversion"
.I don't think we need to mention
"the resulting value of the %0 attribute"
since the diagnostic is generated at attribute location anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible alternative: we could also reuse the existing diagnostic text about implicit conversion, but put it under the new attribute grouping:
One oddity from this would be that users who pass
-Wno-sign-compare
will still get what looks like a sign comparison warning, but that's the same behavior as with the current patch anyway.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @AaronBallman and @elizabethandrews for the comments on improving the diagnostic message.
Does the new diagnostic print like this?
implicit conversion changes signedness: 'unsigned int' to ' int'
Example: [[intel::max_work_group_size(8, 8, -8)]]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The types look backwards in the diagnostic. It's changing from
int
tounsigned int
.Also, you should check that the diagnostic points to the attribute argument that changes sign (the
-8
). Does the caret appear in a place where it's obvious what the diagnostic is talking about?Btw, a second test would be
[[intel::max_work_group_size(-8, 8, -8)]]
to ensure that the diagnostic triggers twice (once for each-8
) and is sufficiently clear.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it points to the place (-8)
Yes, it triggers twice and correct place (once for each -8)
I have created #2988 for this change.