Skip to content

[SYCL][FPGA][NFC] Update [[intel::use_stall_enable_clusters]] attribute #5053

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 1 commit into from
Dec 3, 2021

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Nov 30, 2021

This patch refactors [[intel::use_stall_enable_clusters]] attribute:

       1. Uses automatic diagnostic checking when passing the wrong
          number of arguments and this behavior is more consistent with other attributes

       2. The attribute has no arguments, So this only returns
          the attribute itself instead of
          handleSimpleAttribute<SYCLIntelUseStallEnableClustersAttr>

       3. Existing test (SemaSYCL/stall_enable_device.cpp) shows
          the behavior of automatic diagnostic checking when passing
          the wrong number of arguments

          Example:
          [[intel::use_stall_enable_clusters(1)]] void test1() {} 
          // expected-error{{'use_stall_enable_clusters' attribute takes no arguments}}

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

This patch refactors [[intel::use_stall_enable_clusters]] attribute:
           1. Uses automatic diagnostic checking when passing the wrong
              number of arguments (which is an error instead of a warning
              and this behavior is more consistent with other attributes).
           2. The attribute has no arguments, So this only returns
              the attribute itself instead of
              handleSimpleAttribute<SYCLIntelUseStallEnableClustersAttr>
           3. Existing test (SemaSYCL/stall_enable_device.cpp) shows
              the behavior of automatic diagnostic checking when passing
              the wrong number of arguments
              Example:
              [[intel::use_stall_enable_clusters(1)]] void test1() {} // expected-error{{'use_stall_enable_clusters' attribute takes no arguments}}

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, please add NFC to the change title though.

@smanna12 smanna12 changed the title [SYCL][FPGA] Update [[intel::use_stall_enable_clusters]] attribute [SYCL][FPGA][NFC] Update [[intel::use_stall_enable_clusters]] attribute Dec 1, 2021
@smanna12
Copy link
Contributor Author

smanna12 commented Dec 2, 2021

@premanandrao / @elizabethandrews, could you please review? Thank you

@smanna12
Copy link
Contributor Author

smanna12 commented Dec 2, 2021

Thank you everyone for the reviews.

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