C Specification
To query information about a mutable command object, call the function
// Provided by cl_khr_command_buffer_mutable_dispatch
cl_int clGetMutableCommandInfoKHR(
cl_mutable_command_khr command,
cl_mutable_command_info_khr param_name,
size_t param_value_size,
void* param_value,
size_t* param_value_size_ret);
clGetMutableCommandInfoKHR is provided by the cl_khr_command_buffer_mutable_dispatch extension.
|
Parameters
-
command specifies the mutable-command object being queried.
-
param_name specifies the information to query. The list of supported param_name types and the information returned in param_value by clGetMutableCommandInfoKHR is described in the Mutable Command Object Queries table.
-
param_value is a pointer to memory where the appropriate result being queried is returned. If param_value is
NULL, it is ignored. -
param_value_size is used to specify the size in bytes of memory pointed to by param_value. This size must be greater than or equal to the size of the return type specified in the Mutable Command Object Queries table. If param_value is
NULL, it is ignored. -
param_value_size_ret returns the actual size in bytes of data being queried by param_name. If param_value_size_ret is
NULL, it is ignored.
Description
| Mutable Command Info | Return Type | Description |
|---|---|---|
provided by the |
|
Return the command-queue associated with command.
If |
provided by the |
|
Return the command-buffer associated with command. |
provided by the |
|
Return the command-type associated with command. The list of supported event command types defined by clGetEventInfo is used with the matching command. |
provided by the |
|
Return the properties argument specified on command recording. If the properties argument specified on creation of command was not
If the properties argument specified on creation of command was
|
provided by the |
|
Return the kernel associated with command when recorded with clCommandNDRangeKernelKHR. If command was not recorded from a clCommandNDRangeKernelKHR command, the implementation must return param_value_size_ret equal to 0, indicating that the value returned in param_value is not valid. |
provided by the |
|
Return the number of work-item dimensions specified when command was created. If command was not recorded from a clCommandNDRangeKernelKHR command, the implementation must return param_value_size_ret equal to 0, indicating that the value returned in param_value is not valid. |
provided by the |
|
Return the global work-item offset set on command creation, or from
the most recent update via clUpdateMutableCommandsKHR where this
value was modified.
The output array contains work_dim values, where work_dim is
returned by the query If command was not recorded from a clCommandNDRangeKernelKHR command, the implementation must return param_value_size_ret equal to 0, indicating that the value returned in param_value is not valid. |
provided by the |
|
Return the global work-item size set on command creation, or from
the most recent update via clUpdateMutableCommandsKHR where this
value was modified.
The output array contains work_dim values, where work_dim is
returned by the query If command was not recorded from a clCommandNDRangeKernelKHR command, the implementation must return param_value_size_ret equal to 0, indicating that the value returned in param_value is not valid. |
provided by the |
|
Return the local work-item size set on command creation, or from the
most recent update via clUpdateMutableCommandsKHR where this value
was modified.
The output array contains work_dim values, where work_dim is
returned by the query If command was not recorded from a clCommandNDRangeKernelKHR command, the implementation must return param_value_size_ret equal to 0, indicating that the value returned in param_value is not valid. |
clGetMutableCommandInfoKHR returns CL_SUCCESS if the function is
executed successfully.
Otherwise, it returns one of the following errors:
-
CL_INVALID_if command is not a valid mutable command object.MUTABLE_ COMMAND_ KHR -
CL_INVALID_if param_name is not one of the supported values, or if the size in bytes specified by param_value_size is less than size of the return type specified in the Mutable Command Object Queries table and param_value is notVALUE NULL. -
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the device.OF_ RESOURCES -
CL_OUT_if there is a failure to allocate resources required by the OpenCL implementation on the host.OF_ HOST_ MEMORY
Document Notes
For more information, see the OpenCL Specification
This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.