-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Fix method definition of sub_group_mask::group_ballot #8212
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] Fix method definition of sub_group_mask::group_ballot #8212
Conversation
I have checked the issue and found that there will be error to provide default argument to |
@haroon26 If I understand correctly, the reason you get an error is because you're adding a default argument to a friend declaration. Adding a non-friend declaration earlier, outside |
Hello @sergey-semenov! Thanks for your suggestion. But again there is a problem if we define the method before class. The defintion says:
And you can see that in the return type, we are actually using |
That can be resolved by adding a forward declaration of |
@haroon26, could you please also add a test for the change? Just a simple |
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! Thank you, @haroon26 !
Closes #8201
provided default value for
predicate
argument insub_group_mask::group_ballot
definition