-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Add code examples for all SYCL Function Attributes #3107
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
Conversation
We have added code examples for some of the function attributes. This patch adds code examples for remaining SYCL function attributes that we did not have before to improve the documentation about attributes. Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
[[intel::max_global_work_dim(N)]] void operator()() const {} | ||
}; | ||
|
||
A kernel with max_global_work_dim(0) must be invoked with a |
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.
Missing backticks around max_global_work_dim(0)
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
Signed-off-by: Soumi Manna <[email protected]>
LGTM! |
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!
Thanks for the reviews. |
Update after llvm-project commit 146ad71 ("[IR] Deprecate PointerType::get/getUnqual pointee type overload (#134517)", 2025-04-06). Original commit: KhronosGroup/SPIRV-LLVM-Translator@2c6186986a285e2
We have added code examples for some of the function attributes.
This patch adds code examples for remaining SYCL function attributes
that we did not have before to improve the documentation about
attributes.
Signed-off-by: Soumi Manna [email protected]