Function opencl3::program::link_program[][src]

pub fn link_program(
    context: *mut c_void,
    devices: &[*mut c_void],
    options: &CStr,
    input_programs: &[*mut c_void],
    pfn_notify: Option<extern "C" fn(*mut c_void, *mut c_void)>,
    user_data: *mut c_void
) -> Result<*mut c_void, i32>
Expand description

Link a set of compiled program objects and libraries for the devices in the OpenCL context associated with the program.
Calls clLinkProgram to link an OpenCL program object.

  • context - a valid OpenCL context.
  • devices - a slice of devices that are in context.
  • options - the link options in a null-terminated string.
  • input_programs - a slice of programs that describe headers in the 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.