Skip to content

[SYCL] Improve diagnostics for invalid kernel names #4769

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 11 commits into from
Oct 27, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Oct 15, 2021

The use of lambda (which is not forward-declarable) in a SYCL kernel name currently generates the error message:
error: unnamed lambda ‘(lambda at {{.*}}filename.cpp{{.}’ used

The diagnostic message is very confusing and doesn't help to understand what exactly is wrong.

To update the message to make it better and more helpful, this patch modifies the error diagnostic when the lambdas (anonymous function object types) are used in SYCL kernel names.

Signed-off-by: Soumi Manna [email protected]

@smanna12 smanna12 changed the title [SYCL] Improve diagnostics about invalid SYCL kernel names [SYCL] Improve diagnostics about invalid kernel names Oct 15, 2021
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 changed the title [SYCL] Improve diagnostics about invalid kernel names [SYCL] Improve diagnostics for invalid kernel names Oct 17, 2021
@smanna12 smanna12 requested a review from erichkeane October 17, 2021 17:04
@smanna12 smanna12 marked this pull request as ready for review October 17, 2021 17:04
@smanna12 smanna12 requested a review from Fznamznon October 17, 2021 17:05
@smanna12 smanna12 requested a review from Fznamznon October 27, 2021 13:31
Fznamznon
Fznamznon previously approved these changes Oct 27, 2021
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
@smanna12
Copy link
Contributor Author

Thanks for the reviews everyone.

Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

Changes look good to me.

@bader bader requested a review from erichkeane October 27, 2021 19:51
Copy link
Contributor

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

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

This is distinctly an improvement, LGTM.

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.

6 participants