Skip to content
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][ESIMD][Doc] Add invoke_simd example #10052

Merged
merged 3 commits into from
Jun 23, 2023
Merged

[SYCL][ESIMD][Doc] Add invoke_simd example #10052

merged 3 commits into from
Jun 23, 2023

Conversation

sarnex
Copy link
Contributor

@sarnex sarnex commented Jun 23, 2023

This change adds an invoke_simd example that scales the input data and updates related doc to point to it.

This change adds an invoke_simd example that scales the input data, and
updates corresponding doc to point to it.
@sarnex sarnex marked this pull request as ready for review June 23, 2023 15:30
@sarnex sarnex requested a review from a team as a code owner June 23, 2023 15:30

int in = sg.load(accin.get_pointer() + offset);

int out = invoke_simd(sg, scale, in, uniform{n});
Copy link
Contributor

Choose a reason for hiding this comment

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

It may be useful to show how to pass/use local-accessor to ESIMD context as it is the only way how SLM may be allocated/used in ESIMD functions called via invoke_simd().
E.g. init SLM using scalar operations in SYCL context an, pass local-accessor to ESIMD, use SLM in ESIMD. maybe example 2.b?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a good idea, but do you mind if i do it in a completely separate example in another PR?

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
@v-klochkov v-klochkov merged commit e860b14 into intel:sycl Jun 23, 2023
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.

3 participants