1.3.4 Program Objects
| (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 |
A dummy Scheme 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. Uses clGetProgramInfo:length to find the maximum value. 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. Uses clGetProgramInfo:length to find the maximum value. 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. Uses clGetProgramInfo:length to find the maximum value. 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.
A dummy Scheme 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. Uses clGetProgramBuildInfo:length to find the maximum value. 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.