Skip to content

Commit 1053c99

Browse files
authored
clean up inconsistencies for clSetKernelExecInfo error conditions (KhronosGroup#1419)
It is only a CL_INVALID_VALUE error when param_value is NULL if param_value_size is greater than zero. Also tidies up a few of the CL_INVALID_OPERATION error conditions.
1 parent d05e2c3 commit 1053c99

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11269,20 +11269,18 @@ successfully.
1126911269
Otherwise, it returns one of the following errors:
1127011270

1127111271
* {CL_INVALID_KERNEL} if _kernel_ is a not a valid kernel object.
11272-
* {CL_INVALID_OPERATION} for {CL_KERNEL_EXEC_INFO_SVM_PTRS} and
11273-
{CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM} if no devices in
11274-
the context associated with _kernel_ support SVM.
11275-
ifdef::cl_ext_buffer_device_address[]
11276-
* {CL_INVALID_OPERATION} for {CL_KERNEL_EXEC_INFO_DEVICE_PTRS_EXT} if no
11277-
device in the context associated with _kernel_ support the {cl_ext_buffer_device_address_EXT}
11278-
extension.
11279-
endif::cl_ext_buffer_device_address[]
11280-
* {CL_INVALID_VALUE} if _param_name_ is not valid, if _param_value_ is
11281-
`NULL` or if the size specified by _param_value_size_ is not valid.
11272+
* {CL_INVALID_OPERATION} if _param_name is {CL_KERNEL_EXEC_INFO_SVM_PTRS} and
11273+
no devices in the context associated with _kernel_ support SVM.
1128211274
* {CL_INVALID_OPERATION} if _param_name_ is
1128311275
{CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM} and _param_value_ is {CL_TRUE}
1128411276
and no devices in the context associated with _kernel_ support fine-grain
1128511277
system SVM allocations.
11278+
ifdef::cl_ext_buffer_device_address[]
11279+
* {CL_INVALID_OPERATION} if _param_name_ is
11280+
{CL_KERNEL_EXEC_INFO_DEVICE_PTRS_EXT} and no devices in the context
11281+
associated with _kernel_ support the {cl_ext_buffer_device_address_EXT}
11282+
extension.
11283+
endif::cl_ext_buffer_device_address[]
1128611284
* {CL_INVALID_VALUE} if _param_name_ is not valid, if _param_value_ is
1128711285
`NULL` and _param_value_size_ is greater than zero, or if the size specified
1128811286
by _param_value_size_ is not valid.

0 commit comments

Comments
 (0)