-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Fix diagnostic about non-globally-visible kernel name #928
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 diagnostic about non-globally-visible kernel name #928
Conversation
Ping. |
642d069
to
b3a10b3
Compare
b3a10b3
to
2180f4e
Compare
kernel_single_task<KernelName2>([=]() { acc.use(); }); | ||
#endif | ||
|
||
#ifdef LD__ |
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.
I suggest to convert these ("expected compilation error") to negative compilation tests together with removal. Or leave it as is if there are no resource now.
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.
I preserved these negative test cases in the new test, this is mentioned in commit message
}); | ||
|
||
#ifndef __SYCL_UNNAMED_LAMBDA__ | ||
// expected-error@16 {{kernel needs to have a globally-visible name}} |
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.
I suggest to make this diagnostic a bit more informative. It should point to kernel-name class definitions and defective kernel invoke call both.
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.
Done
@AlexeySachkov, please, address comments. |
2180f4e
to
5b8496b
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.
LGTM, thanks
@AlexeySachkov, please, fix LIT tests. |
Moved some dead code from CodeGenSYCL/int_header1.cpp to the new test Signed-off-by: Alexey Sachkov <[email protected]>
Signed-off-by: Alexey Sachkov <[email protected]>
Signed-off-by: Alexey Sachkov <[email protected]>
Signed-off-by: Alexey Sachkov <[email protected]>
edddd29
to
d410017
Compare
Should be done now |
Moved some dead code from CodeGenSYCL/int_header1.cpp to the new test