[][src]Function opencl3::program::build_program

pub fn build_program(
    program: *mut c_void,
    devices: &[*mut c_void],
    options: &CStr,
    pfn_notify: Option<extern "C" fn(*mut c_void, *mut c_void)>,
    user_data: *mut c_void
) -> Result<(), i32>

Build (compile & link) a program executable.
Calls clBuildProgram to build an OpenCL program object.

  • program - a valid OpenCL program.
  • devices - a slice of devices that are in context.
  • options - the build options in a null-terminated string.
  • 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.