On this page:
cl Create Program With Source
cl Create Program With Binary
cl Retain Program
cl Release Program
cl Build Program
cl Unload Compiler
cl Get Program Info
cl Get Program Info: length
cl Get Program Info: _ cl_ uint
cl Get Program Info: _ cl_ context
cl Get Program Info: _ cl_ device_ id*
cl Get Program Info: _ char*
cl Get Program Info: _ size_ t*
cl Get Program Info/ c
cl Get Program Info: generic
cl Get Program Build Info
cl Get Program Build Info: length
cl Get Program Build Info: _ cl_ build_ status
cl Get Program Build Info: _ char*
cl Get Program Build Info/ c
cl Get Program Build Info: generic
1.3.4 Program Objects

 (require (planet jaymccarthy/opencl:1:=0/c/5-4))
(clCreateProgramWithSource ctxt source)  _cl_program/c
  ctxt : _cl_context/c
  source : (vectorof bytes?)
(clCreateProgramWithBinary ctxt    
  devices    
  binaries)  _cl_program/c
  ctxt : _cl_context/c
  devices : (vectorof _cl_device_id/c)
  binaries : (vectorof bytes?)
(clRetainProgram program)  void
  program : _cl_program/c
(clReleaseProgram program)  void
  program : _cl_program/c
(clBuildProgram program devices options)  void
  program : _cl_program/c
  devices : (vectorof _cl_device_id/c)
  options : bytes?
(clUnloadCompiler)  void
clGetProgramInfo : procedure?
A dummy Racket function that refers callers to the other clGetProgramInfo-based functions which access the true C function.
(clGetProgramInfo:length program    
  param_name)  _size_t/c
  program : _cl_program/c
  param_name : _cl_program_info/c
Returns the size of param_name field of the argument(s). Calls clGetProgramInfo with values for param_value_size and param_value such that param_value_size_ret is queried.
(clGetProgramInfo:_cl_uint program    
  param_name)  _cl_uint/c
  program : _cl_program/c
  param_name : _cl_program_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramInfo with param_value_size set to (ctype-sizeof _cl_uint) so that the value is queried. Valid param_names are '(CL_PROGRAM_REFERENCE_COUNT CL_PROGRAM_NUM_DEVICES).
(clGetProgramInfo:_cl_context program    
  param_name)  _cl_context/c
  program : _cl_program/c
  param_name : _cl_program_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramInfo with param_value_size set to (ctype-sizeof _cl_context) so that the value is queried. Valid param_names are '(CL_PROGRAM_CONTEXT).
(clGetProgramInfo:_cl_device_id* program 
  param_name 
  param_value_size) 
  _cl_device_id_vector/c
  program : _cl_program/c
  param_name : _cl_program_info/c
  param_value_size : _size_t/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramInfo with param_value_size passed explicitly. Valid param_names are '(CL_PROGRAM_DEVICES).
(clGetProgramInfo:_char* program    
  param_name    
  param_value_size)  bytes?
  program : _cl_program/c
  param_name : _cl_program_info/c
  param_value_size : _size_t/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramInfo with param_value_size passed explicitly. Valid param_names are '(CL_PROGRAM_SOURCE).
(clGetProgramInfo:_size_t* program    
  param_name    
  param_value_size)  _size_t_vector/c
  program : _cl_program/c
  param_name : _cl_program_info/c
  param_value_size : _size_t/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramInfo with param_value_size passed explicitly. Valid param_names are '(CL_PROGRAM_BINARY_SIZES).
clGetProgramInfo/c : contract?
A contract for the return values of clGetProgramInfo:generic. Its definition is: (or/c _cl_uint/c _cl_context/c _cl_device_id_vector/c bytes? _size_t_vector/c).
(clGetProgramInfo:generic program    
  param_name)  clGetProgramInfo/c
  program : _cl_program/c
  param_name : _cl_program_info/c
Returns the value associated with param_name for the argument(s). Selects the appropriate clGetProgramInfo-based function to extract the appropriate value, automatically providing the right length for variable length functions.
clGetProgramBuildInfo : procedure?
A dummy Racket function that refers callers to the other clGetProgramBuildInfo-based functions which access the true C function.
(clGetProgramBuildInfo:length program    
  device    
  param_name)  _size_t/c
  program : _cl_program/c
  device : _cl_device_id/c
  param_name : _cl_program_build_info/c
Returns the size of param_name field of the argument(s). Calls clGetProgramBuildInfo with values for param_value_size and param_value such that param_value_size_ret is queried.
(clGetProgramBuildInfo:_cl_build_status program 
  device 
  param_name) 
  _cl_build_status/c
  program : _cl_program/c
  device : _cl_device_id/c
  param_name : _cl_program_build_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramBuildInfo with param_value_size set to (ctype-sizeof _cl_build_status) so that the value is queried. Valid param_names are '(CL_PROGRAM_BUILD_STATUS).
(clGetProgramBuildInfo:_char* program    
  device    
  param_name    
  param_value_size)  bytes?
  program : _cl_program/c
  device : _cl_device_id/c
  param_name : _cl_program_build_info/c
  param_value_size : _size_t/c
Returns the value associated with param_name for the argument(s). Implemented by clGetProgramBuildInfo with param_value_size passed explicitly. Valid param_names are '(CL_PROGRAM_BUILD_OPTIONS CL_PROGRAM_BUILD_LOG).
clGetProgramBuildInfo/c : contract?
A contract for the return values of clGetProgramBuildInfo:generic. Its definition is: (or/c _cl_build_status/c bytes?).
(clGetProgramBuildInfo:generic program 
  device 
  param_name) 
  clGetProgramBuildInfo/c
  program : _cl_program/c
  device : _cl_device_id/c
  param_name : _cl_program_build_info/c
Returns the value associated with param_name for the argument(s). Selects the appropriate clGetProgramBuildInfo-based function to extract the appropriate value, automatically providing the right length for variable length functions.