C Specification
To enable or disable the properties of a command-queue, call the function
// Provided by CL_VERSION_1_0
cl_int clSetCommandQueueProperty(
cl_command_queue command_queue,
cl_command_queue_properties properties,
cl_bool enable,
cl_command_queue_properties* old_properties);
| clSetCommandQueueProperty is deprecated by version 1.1. |
Parameters
-
command_queue specifies the command-queue being modified.
-
properties specifies the new list of properties for the command-queue. This is a bit-field and the supported properties are described in the Command-Queue Properties table for clCreateCommandQueue. Only command-queue properties specified in this table can be used, otherwise the value specified in properties is considered to be not valid.
-
enable determines whether the values specified by properties are enabled (if enable is
CL_TRUE) or disabled (if enable isCL_FALSE) for the command-queue. -
old_properties returns the command-queue properties before they were changed by clSetCommandQueueProperty. If old_properties is
NULL, it is ignored.
Description
clSetCommandQueueProperty may unconditionally return an error if no devices in the context associated with command_queue support modifying the properties of a command-queue. Support for modifying the properties of a command-queue is required only for OpenCL 1.0 devices.
clSetCommandQueueProperty returns CL_SUCCESS if the function is executed
successfully.
Otherwise, it returns one of the following errors:
-
CL_INVALID_if command_queue is not a valid command-queue.COMMAND_ QUEUE -
CL_INVALID_if no devices in the context associated with command_queue support modifying the properties of a command-queue.OPERATION -
CL_INVALID_if values specified in properties are not valid.VALUE -
CL_INVALID_if values specified in properties are valid but are not supported by the device.QUEUE_ PROPERTIES -
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.