Skip to content

[SYCL][FPGA] Add implicit memory attribute with [[intel::max_replicates()]] #3409

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
Mar 26, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Mar 25, 2021

If the declaration does not have an [[intel::fpga_memory]] attribute,
we create one as an implicit attribute.

During refactoring work with [[intel::max_replicates()]] attribute, we somehow
dropped the implicit memory attribute.

This patch fixes the problem.

Signed-off-by: soumi.manna [email protected]

…es()]]

If the declaration does not have an [[intel::fpga_memory]] attribute,
we create one as an implicit attribute.

During refactoring work with [[intel::max_replicates()]] attribute, we somehow
dropped the implicit memory attribute.

This patch fixes the problem.

Signed-off-by: soumi.manna <[email protected]>
@smanna12 smanna12 changed the title [SYCL][FPGA] Add implicit memory attribute with [[intel::max_replicat… [SYCL][FPGA] Add implicit memory attribute with [[intel::max_replicates()]] Mar 25, 2021
AaronBallman
AaronBallman previously approved these changes Mar 25, 2021
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!

Copy link
Contributor

@zahiraam zahiraam left a comment

Choose a reason for hiding this comment

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

Looks good.

zahiraam
zahiraam previously approved these changes Mar 25, 2021
// attribute, this creates one as an implicit attribute.
if (!D->hasAttr<IntelFPGAMemoryAttr>())
D->addAttr(IntelFPGAMemoryAttr::CreateImplicit(
Context, IntelFPGAMemoryAttr::Default));
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to do this outside the if condition? i.e. we want to do this regardless of E's value dependency, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch! Same goes for checking for mutual exclusion, I suppose.

Copy link
Contributor Author

@smanna12 smanna12 Mar 25, 2021

Choose a reason for hiding this comment

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

yes, I will fix this and upload new patch. Thanks

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]>
@smanna12 smanna12 dismissed stale reviews from zahiraam and AaronBallman via c5fb4d5 March 25, 2021 14:55
Signed-off-by: Soumi Manna <[email protected]>
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

@bader bader merged commit a7e903a into intel:sycl Mar 26, 2021
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.

5 participants