On this page:
cl Create Context
cl Create Context From Type
cl Retain Context
cl Release Context
cl Get Context Info
cl Get Context Info: length
cl Get Context Info: _ cl_ uint
cl Get Context Info: _ cl_ device_ id*
cl Get Context Info: _ cl_ context_ properties*
cl Get Context Info/ c
cl Get Context Info: generic
1.2.3 Contexts

 (require (planet jaymccarthy/opencl:3:1/c/4-3))
(clCreateContext devices)  _cl_context/c
  devices : (vectorof _cl_device_id/c)
(clCreateContextFromType device_type)  _cl_context/c
  device_type : _cl_device_type/c
(clRetainContext ctxt)  void
  ctxt : _cl_context/c
(clReleaseContext ctxt)  void
  ctxt : _cl_context/c
clGetContextInfo : procedure?
A dummy Scheme 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. Uses clGetContextInfo:length to find the maximum value. 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. Uses clGetContextInfo:length to find the maximum value. Valid param_names are '(CL_CONTEXT_PROPERTIES).
clGetContextInfo/c : contract?
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.