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] Add default argument support for work_group_size_hint attribute #5565
Conversation
0d22d39
to
82d7b19
Compare
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.
This is missing all of its test coverage.
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.
This still needs test coverage for the changes. In addition to the functional change to making the arguments optional, we should have some tests for declaration merging. e.g.,
[[sycl::work_group_size_hint(1, 2, 3)]] void func();
[[sycl::work_group_size_hint(1)]] void func() {} // Should still have 1, 2, 3, right?
I wasn't sure whether I was "allowed" to add tests for myself (as I was surprised that there were no prior tests), but I will.
Well, according to this comment:
|
Oh, we definitely love new test coverage! :-)
Oh, great catch, I had completely forgotten about that really weird behavior. That should be an error situation. I'd recommend adding it as a test case with the same set of FIXME comments associated with it. |
0374981
to
1977388
Compare
Signed-off-by: Michel Migdal <git@mgdl.fr>
4c596cd
to
9f85493
Compare
I'm adding some more reviewers for visibility. |
@Michoumichmich, could you please update your PR description? Thanks |
Yes, sorry, it's up-to-date now! |
I added the workaround. However the same one should be applied |
I also updated the documentation for |
4d049e6
to
676ddf2
Compare
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 test file work-group-size-hint-host.cpp is misnamed. I would
Co-authored-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>
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.
LGTM
Co-authored-by: smanna12 <soumi.manna@intel.com>
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.
LGTM
Hum, that's surprising, |
It looks like your changes imply that |
3c5c444
6926f54
to
647823d
Compare
@bader @smanna12 thanks for the help, I fixed it, I believe that |
Okay. |
Pre-commit failures are not related to this patch and being investigated. @AaronBallman, please, check if you are okay with the changes. |
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.
LGTM aside from some typos!
Co-authored-by: Aaron Ballman <aaron@aaronballman.com>
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.
LGTM!
This commit adds support for default arguments in
[[sycl::work_group_size_hint]]
according to the specification (5.8.1 Kernel attributes, table 180).Signed-off by: Michel Migdal mm@mgdl.fr