Skip to content

Commit f070500

Browse files
authored
limit the number of kernel arguments to 255 (#835)
1 parent a3f93c5 commit f070500

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

api/embedded_profile.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ Device Queries>> table.
220220
| Max size in bytes of all arguments that can be passed to a kernel.
221221
The minimum value is 256 bytes for devices that are not of type
222222
{CL_DEVICE_TYPE_CUSTOM}.
223+
224+
A maximum of 255 arguments can be passed to a kernel.
223225
| {CL_DEVICE_SINGLE_FP_CONFIG}
224226
| {cl_device_fp_config_TYPE}
225227
| Describes single precision floating-point capability of the device.

api/opencl_platform_layer.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,9 @@ include::{generated}/api/version-notes/CL_DEVICE_MAX_PARAMETER_SIZE.asciidoc[]
659659
The minimum value is 1024 for devices that are not of type
660660
{CL_DEVICE_TYPE_CUSTOM}.
661661
For this minimum value, only a maximum of 128 arguments can be
662-
passed to a kernel
662+
passed to a kernel.
663+
For all other values, a maximum of 255 arguments can be passed
664+
to a kernel.
663665
| {CL_DEVICE_MEM_BASE_ADDR_ALIGN_anchor}
664666

665667
include::{generated}/api/version-notes/CL_DEVICE_MEM_BASE_ADDR_ALIGN.asciidoc[]

0 commit comments

Comments
 (0)