Function opencl3::program::compile_program [−][src]
pub fn compile_program(
program: *mut c_void,
devices: &[*mut c_void],
options: &CStr,
input_headers: &[*mut c_void],
header_include_names: &[&CStr],
pfn_notify: Option<extern "C" fn(*mut c_void, *mut c_void)>,
user_data: *mut c_void
) -> Result<(), i32>
Expand description
Compile a program’s source for the devices the OpenCL context associated
with the program.
Calls clCompileProgram to compile an OpenCL program object.
program
- a valid OpenCL program.devices
- a slice of devices that are in context.options
- the compilation options in a null-terminated string.input_headers
- a slice of programs that describe headers in the input_headers.header_include_names
- an array that has a one to one correspondence with input_headers.pfn_notify
- an optional function pointer to a notification routine.user_data
- passed as an argument when pfn_notify is called, or ptr::null_mut().
returns a Result containing the new OpenCL program object or the error code from the OpenCL C API function.