-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Add template parameter support for num_simd_work_items attribute #2510
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] Add template parameter support for num_simd_work_items attribute #2510
Conversation
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 <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks!
There was a problem hiding this 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 <[email protected]>
533d9a1
Signed-off-by: Soumi Manna <[email protected]>
Signed-off-by: Soumi Manna <[email protected]>
Thank you, everyone for the reviews. |
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 <[email protected]>
…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 <[email protected]>
Fix bench template
This patch
adds support for template parameter on [[intelfpga::num_simd_work_items()]] attribute
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)
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 [email protected]