1.3.1 Command Queues
(clCreateCommandQueue | | ctxt | | | | | | | device | | | | | | | properties) | | → | | _cl_command_queue/c |
|
ctxt : _cl_context/c |
device : _cl_device_id/c |
properties : _cl_command_queue_properties/c |
(clRetainCommandQueue cq) → void |
cq : _cl_command_queue/c |
(clReleaseCommandQueue cq) → void |
cq : _cl_command_queue/c |
A dummy Racket function that refers callers to the other clGetCommandQueueInfo-based functions which access the true C function.
(clGetCommandQueueInfo:length | | command_queue | | | | | | | param_name) | | → | | _size_t/c |
|
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the size of param_name field of the argument(s). Calls clGetCommandQueueInfo with values for param_value_size and param_value such that param_value_size_ret is queried.
(clGetCommandQueueInfo:_cl_context | | command_queue | | | | param_name) | |
|
→ _cl_context/c |
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the value associated with
param_name for the argument(s). Implemented by
clGetCommandQueueInfo with
param_value_size set to
(ctype-sizeof _cl_context) so that the value is queried. Valid
param_names are
'(CL_QUEUE_CONTEXT).
(clGetCommandQueueInfo:_cl_device_id | | command_queue | | | | param_name) | |
|
→ _cl_device_id/c |
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the value associated with
param_name for the argument(s). Implemented by
clGetCommandQueueInfo with
param_value_size set to
(ctype-sizeof _cl_device_id) so that the value is queried. Valid
param_names are
'(CL_QUEUE_DEVICE).
(clGetCommandQueueInfo:_cl_uint | | command_queue | | | | | | | param_name) | | → | | _cl_uint/c |
|
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the value associated with
param_name for the argument(s). Implemented by
clGetCommandQueueInfo with
param_value_size set to
(ctype-sizeof _cl_uint) so that the value is queried. Valid
param_names are
'(CL_QUEUE_REFERENCE_COUNT).
(clGetCommandQueueInfo:_cl_command_queue_properties | | | | command_queue | | | | param_name) | |
|
→ _cl_command_queue_properties/c |
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the value associated with
param_name for the argument(s). Implemented by
clGetCommandQueueInfo with
param_value_size set to
(ctype-sizeof _cl_command_queue_properties) so that the value is queried. Valid
param_names are
'(CL_QUEUE_PROPERTIES).
A contract for the return values of
clGetCommandQueueInfo:generic. Its definition is:
(or/c _cl_context/c _cl_device_id/c _cl_uint/c _cl_command_queue_properties/c).
(clGetCommandQueueInfo:generic | | command_queue | | | | param_name) | |
|
→ clGetCommandQueueInfo/c |
command_queue : _cl_command_queue/c |
param_name : _cl_command_queue_info/c |
Returns the value associated with param_name for the argument(s). Selects the appropriate clGetCommandQueueInfo-based function to extract the appropriate value, automatically providing the right length for variable length functions.
(clSetCommandQueueProperty | | cq | | | | properties | | | | enable) | |
|
→ _cl_command_queue_properties/c |
cq : _cl_command_queue/c |
properties : _cl_command_queue_properties/c |
enable : _cl_bool/c |