Skip to content

[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

Merged
merged 3 commits into from
Jan 28, 2021

Conversation

smanna12
Copy link
Contributor

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]

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]>
@smanna12 smanna12 marked this pull request as ready for review January 27, 2021 15:23
@smanna12 smanna12 requested a review from AaronBallman January 27, 2021 15:24
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
Copy link
Contributor

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)

Copy link
Contributor Author

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]>
@AaronBallman
Copy link
Contributor

LGTM!

Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

Thanks!

@smanna12
Copy link
Contributor Author

Thanks for the reviews.

@bader bader merged commit b37ac16 into intel:sycl Jan 28, 2021
iclsrc pushed a commit that referenced this pull request Apr 21, 2025
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
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.

4 participants