1.3.4 Program Objects
(require opencl/c/5-4) | package: opencl |
procedure
(clCreateProgramWithSource ctxt source) → _cl_program/c
ctxt : _cl_context/c source : (vectorof bytes?)
procedure
(clCreateProgramWithBinary ctxt devices binaries) → _cl_program/c ctxt : _cl_context/c devices : (vectorof _cl_device_id/c) binaries : (vectorof bytes?)
procedure
(clRetainProgram program) → void
program : _cl_program/c
procedure
(clReleaseProgram program) → void
program : _cl_program/c
procedure
(clBuildProgram program devices options) → void
program : _cl_program/c devices : (vectorof _cl_device_id/c) options : bytes?
procedure
(clUnloadCompiler) → void
value
A dummy Racket function that refers callers to the other clGetProgramInfo-based functions which access the true C function.
procedure
(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.
procedure
(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).
procedure
(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).
procedure
(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).
procedure
(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).
procedure
(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).
value
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).
procedure
(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.
value
A dummy Racket function that refers callers to the other clGetProgramBuildInfo-based functions which access the true C function.
procedure
(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.
procedure
(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).
procedure
(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).
value
A contract for the return values of clGetProgramBuildInfo:generic. Its definition is: (or/c _cl_build_status/c bytes?).
procedure
(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.