1.2.3 Contexts
(require opencl/c/4-3) | package: opencl |
procedure
(clCreateContext properties devices) → _cl_context/c
properties : (or/c #f (vectorof _cl_context_properties/c)) devices : (vectorof _cl_device_id/c)
procedure
(clCreateContextFromType properties device_type) → _cl_context/c properties : (or/c #f (vectorof _cl_context_properties/c)) device_type : _cl_device_type/c
procedure
(clRetainContext ctxt) → void
ctxt : _cl_context/c
procedure
(clReleaseContext ctxt) → void
ctxt : _cl_context/c
value
A dummy Racket function that refers callers to the other clGetContextInfo-based functions which access the true C function.
procedure
(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.
procedure
(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).
procedure
(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).
procedure
(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).
value
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).
procedure
(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.