Skip to content

Commit 1bbc9d1

Browse files
Clarify clGetKernelSubGroupInfo error codes (#743)
Return `CL_INVALID_VALUE` for any query to `clGetKernelSubGroupInfo` that takes an input value that is `NULL` or has an invalid size.
1 parent 018cb7b commit 1bbc9d1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7819,8 +7819,10 @@ Otherwise, it returns one of the following errors:
78197819
the <<kernel-subgroup-info-table,Kernel Object Subgroup Queries>> table
78207820
and _param_value_ is not `NULL`.
78217821
* {CL_INVALID_VALUE} if _param_name_ is
7822-
{CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE} and the size in bytes specified by
7823-
_input_value_size_ is not valid or if _input_value_ is `NULL`.
7822+
{CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE},
7823+
{CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE} or
7824+
{CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT} and the size in bytes specified
7825+
by _input_value_size_ is not valid or if _input_value_ is `NULL`.
78247826
* {CL_INVALID_KERNEL} if _kernel_ is a not a valid kernel object.
78257827
* {CL_OUT_OF_RESOURCES} if there is a failure to allocate resources required
78267828
by the OpenCL implementation on the device.

0 commit comments

Comments
 (0)