Skip to content

Conversation

smanna12
Copy link
Contributor

This patch

  1. adds support for template parameter on [[intelfpga::num_simd_work_items()]] attribute

  2. splits test/SemaSYCL/num_simd_work_items.cpp to separate files for
    host compilation (test/SemaSYCL/num_simd_work_items_host.cpp) and
    device compilation (test/SemaSYCL/num_simd_work_items_device.cpp)

  3. makes changes to intel_reqd_sub_group_size attribute source codes
    to avoid duplication and reuse for the template parameter support.

Signed-off-by: Soumi Manna soumi.manna@intel.com

This patch

1. adds support for template parameter on [[intelfpga::num_simd_work_items()]] attribute

2. splits test/SemaSYCL/num_simd_work_items.cpp to separate files for
   host compilation (test/SemaSYCL/num_simd_work_items_host.cpp) and
   device compilation (test/SemaSYCL/num_simd_work_items_device.cpp)

3. makes changes to intel_reqd_sub_group_size attribute source codes
   to avoid duplication and reuse for the template parameter support.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12 smanna12 marked this pull request as ready for review September 22, 2020 12:55
Copy link
Contributor

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

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

1 nit, otherwise i both like the direction and implementation of this patch.

MrSidims
MrSidims previously approved these changes Sep 22, 2020
Copy link
Contributor

@MrSidims MrSidims left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks!

premanandrao
premanandrao previously approved these changes Sep 22, 2020
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

I was good with your changes, until I saw Erich's nit. :-)
Please address that, but approved.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12 smanna12 dismissed stale reviews from premanandrao and MrSidims via 533d9a1 September 22, 2020 16:22
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
@smanna12
Copy link
Contributor Author

Thank you, everyone for the reviews.

@romanovvlad romanovvlad merged commit 678911a into intel:sycl Sep 23, 2020
smanna12 added a commit to smanna12/llvm that referenced this pull request Jan 25, 2021
Template parameter support was added for

 1. [[intel::max_global_work_dim)]] attribute on intel#2816
 2. [[intel::num_simd_work_items()]] attribute on intel#2510
 3. [[intel::reqd_sub_group_size()]] attribute on intel#1807

This patch adds the following new test cases that were not there before to improve the support:

 1. Test that checks wrong function template instantiation and ensures that the type
    is checked properly when instantiating from the template definition.
 2. Test that checks expression is not a constant expression.
 3. Test that checks expression is a constant expression.
 4. Test that checks template parameter support on function.

NOTE: No change in compiler. All new test cases have already been supported.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
romanovvlad pushed a commit that referenced this pull request Jan 26, 2021
…3089)

Template parameter support was added for

 1. [[intel::max_global_work_dim)]] attribute on #2816
 2. [[intel::num_simd_work_items()]] attribute on #2510
 3. [[intel::reqd_sub_group_size()]] attribute on #1807

This patch adds the following new test cases that were not there before to improve the support:

 1. Test that checks wrong function template instantiation and ensures that the type
    is checked properly when instantiating from the template definition.
 2. Test that checks expression is not a constant expression.
 3. Test that checks expression is a constant expression.
 4. Test that checks template parameter support on function.

NOTE: No change in compiler. All new test cases have already been supported.

Signed-off-by: Soumi Manna <soumi.manna@intel.com>
kbenzie pushed a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
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