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
And these functions will map to spv::Op's accordingly:
sub_group_all - OpGroupNonUniformAll
sub_group_any - OpGroupNonUniformAny
sub_group_broadcast - OpGroupNonUniformBroadcast
sub_group_barrier - OpControlBarrier
And the reduction functions as follows:
sub_group_<group_operation>_add
INT: OpGroupNonUniformIAdd
FLOAT: OpGroupNonUniformFAdd
sub_group_<group_operation>_min
INT: OpGroupNonUniformSMin
UINT: OpGroupNonUniformUMin
FLOAT: OpGroupNonUniformFMin
sub_group_<group_operation>_max
INT: OpGroupNonUniformSMax
UINT: OpGroupNonUniformUMax
FLOAT: OpGroupNonUniformFMax
With <group_operation> correspondingly:
reduce - GroupOperationReduce
scan_exclusive - GroupOperationExclusiveScan
scan_inclusive - GroupOperationInclusiveScan
Adding the cl_khr_subgroups extension support requires OpenCL 2.0 or greater (clang front-end already supports with -cl-std=CL2.0) and also requires SPIR-V 1.3 or greater support. A command line switch will be required to specify the -spirv-std for the output version.
Setting -spirv-std=1.4 or greater requires updating the EntryPointInterface with all GlobalVariable IDs.
All tests should be run with -spirv-std=1.5 to test conformance.
Are there any plans to introduce support for the intel extension 'cl_intel_subgroups' which includes subgroup functions sub_group_shuffle function etc...?
Activity
sjw36 commentedon Jul 1, 2020
The remainder of cl_khr_subgroups functions that should be implemented for full support:
cl_khr_subgroups support
cl_khr_subgroups support
cl_khr_subgroups support (#603)
alan-baker commentedon Jul 20, 2020
#610 added
sub_group_barriersupport.dokipen3d commentedon Feb 24, 2021
Are there any plans to introduce support for the intel extension 'cl_intel_subgroups' which includes subgroup functions sub_group_shuffle function etc...?