Skip to content

[SYCL][FPGA] Apply [[intel::use_stall_enable_clusters]] attribute to any function #3900

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 19 commits into from
Jun 17, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Jun 8, 2021

[[intel::use_stall_enable_clusters]] is a function attribute, not a kernel one.
It can be applied to any function or lambda. This patch removes the
incorrect behavior that was added on PR: #2734 where
the metadata to be attached to the FunctionDecl/IR Function that the attribute is applied to.

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

smanna12 added 2 commits June 8, 2021 14:11
…ANY function

[[intel::use_stall_enable_clusters]] is a function attribute, not a kernel one.
It can be applied to any function or lambda. This patch removes the
restriction that was added on PR: intel#2734 to allow
propagating the attribute to kernel if it is applied to any function the kernel calls.

Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 changed the title [SYCL][FPGA] Apply [[intel::use_stall_enable_clusters]] attribute to … [SYCL][FPGA] Apply [[intel::use_stall_enable_clusters]] attribute to any function Jun 8, 2021
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 marked this pull request as ready for review June 8, 2021 21:26
@smanna12 smanna12 requested review from erichkeane and mendell27 June 8, 2021 21:26
smanna12 added 2 commits June 9, 2021 08:20
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 requested a review from erichkeane June 9, 2021 15:27
smanna12 added 3 commits June 9, 2021 08:52
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
smanna12 added 2 commits June 14, 2021 09:42
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
smanna12 added 3 commits June 14, 2021 09:53
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
@smanna12 smanna12 requested a review from AaronBallman June 15, 2021 12:31
Copy link
Contributor

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

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

LGTM!

@smanna12
Copy link
Contributor Author

LGTM!

Thanks Aaron.

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.

Thank you!

@smanna12
Copy link
Contributor Author

smanna12 commented Jun 15, 2021

Thanks you everyone for the reviews and discussion.

@smanna12
Copy link
Contributor Author

@vladimirlaz, could you please merge this PR? Thanks.

@vladimirlaz vladimirlaz merged commit 15da879 into intel:sycl Jun 17, 2021
AaronBallman pushed a commit that referenced this pull request Jul 6, 2021
This patch collects and applies the FPGA attribute intel::use_stall_enable_clusters to the callers/SYCL kernel if directly applied through functors/lambda function.

The attribute has to be applicable to all functions, which can include the SYCL kernels and ​must not be propagated up to the caller/SYCL kernel when called from a function.

This patch fixes FPGA emulator bug that was introduced on #3900.
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