1.2.3 Contexts
(clCreateContext properties devices) → _cl_context/c |
properties : (or/c #f (vectorof _cl_context_properties/c)) |
devices : (vectorof _cl_device_id/c) |
(clCreateContextFromType | | properties | | | | | | | device_type) | | → | | _cl_context/c |
|
properties : (or/c #f (vectorof _cl_context_properties/c)) |
device_type : _cl_device_type/c |
(clRetainContext ctxt) → void |
ctxt : _cl_context/c |
(clReleaseContext ctxt) → void |
ctxt : _cl_context/c |
A dummy Racket function that refers callers to the other clGetContextInfo-based functions which access the true C function.
(clGetContextInfo:length | | context | | | | | | | param_name) | | → | | _size_t/c |
|
context : _cl_context/c |
param_name : _cl_context_info/c |
Returns the size of param_name field of the argument(s). Calls clGetContextInfo with values for param_value_size and param_value such that param_value_size_ret is queried.
(clGetContextInfo:_cl_uint | | context | | | | | | | param_name) | | → | | _cl_uint/c |
|
context : _cl_context/c |
param_name : _cl_context_info/c |
Returns the value associated with
param_name for the argument(s). Implemented by
clGetContextInfo with
param_value_size set to
(ctype-sizeof _cl_uint) so that the value is queried. Valid
param_names are
'(CL_CONTEXT_REFERENCE_COUNT).
(clGetContextInfo:_cl_device_id* | | context | | | | param_name | | | | param_value_size) | |
|
→ _cl_device_id_vector/c |
context : _cl_context/c |
param_name : _cl_context_info/c |
param_value_size : _size_t/c |
Returns the value associated with param_name for the argument(s). Implemented by clGetContextInfo with param_value_size passed explicitly. Valid param_names are '(CL_CONTEXT_DEVICES).
(clGetContextInfo:_cl_context_properties* | | context | | | | param_name | | | | param_value_size) | |
|
→ _cl_context_properties_vector/c |
context : _cl_context/c |
param_name : _cl_context_info/c |
param_value_size : _size_t/c |
Returns the value associated with param_name for the argument(s). Implemented by clGetContextInfo with param_value_size passed explicitly. Valid param_names are '(CL_CONTEXT_PROPERTIES).
A contract for the return values of
clGetContextInfo:generic. Its definition is:
(or/c _cl_uint/c _cl_device_id_vector/c _cl_context_properties_vector/c).
(clGetContextInfo:generic | | context | | | | | | | param_name) | | → | | clGetContextInfo/c |
|
context : _cl_context/c |
param_name : _cl_context_info/c |
Returns the value associated with param_name for the argument(s). Selects the appropriate clGetContextInfo-based function to extract the appropriate value, automatically providing the right length for variable length functions.