Developer Guide


FPGA Kernel Attributes

The following table summarizes kernel attributes:
FPGA Kernel Attributes
[[intel::max_work_group_size(Z, Y, X)]]
Specifies a maximum or the required work-group size for optimizing hardware use of the DPC++ kernel without involving excess logic.
[[intel::max_work_group_size(1,1,MAX_WG_SIZE)]] { accessorRes[wiID] = accessorIdx[wiID] * 2; });
Omits logic that generates and dispatches global, local, and group IDs into the compiled kernel.
[[intel::max_global_work_dim(0)]] { for (unsigned i = 0; i < SIZE; i++) { accessorRes[i] = accessorIdx[i] * 2; } }
Specifies the number of work items within a work group that the compiler executes in a SIMD or vectorized manner.
[[intel::num_simd_work_items(NUM_SIMD_WORK_ITEMS), cl::reqd_work_group_size(1,1,REQD_WORK_GROUP_SIZE)]] { accessorRes[wiID] = sqrt(accessorIdx[wiID]); });

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at