You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Add template parameter support for max_global_work_dim attribute (#2816)
This patch
adds support for template parameter on [[intel::max_global_work_dim)]] attribute
splits test/SemaSYCL/intel-max-global-work-dim.cpp to separate files for
host compilation (test/SemaSYCL/intel-max-global-work-dim.cpp-host.cpp) and
device compilation (test/SemaSYCL/intel-max-global-work-dim.cpp-device.cpp)
updates sema/codegen tests with mock headers on device.
uses existing function "sema::addIntelSYCLSingleArgFunctionAttr" from
other single argument function attributes such as num_simd_work_items
and intel_reqd_sub_group_size to avoid source codes duplication and
reuse for the template parameter support.
addresses special diagnostics in case the value of ‘max_global_work_dim’
attribute equals to 0, we shall ensure that if max_work_group_size and
reqd_work_group_size attributes exist, they hold equal values (1, 1, 1).
additionally updates sema/codegen tests for "reqd-sub-group-size" and
"num-simd-work-items" attributes with mock headers.
Signed-off-by: Soumi Manna <[email protected]>
0 commit comments