Function ocl_core::enqueue_kernel [] [src]

pub fn enqueue_kernel<En: ClNullEventPtr, Ewl: ClWaitListPtr>(
    command_queue: &CommandQueue,
    kernel: &Kernel,
    work_dims: u32,
    global_work_offset: Option<[usize; 3]>,
    global_work_dims: &[usize; 3],
    local_work_dims: Option<[usize; 3]>,
    wait_list: Option<Ewl>,
    new_event: Option<En>
) -> OclResult<()>

Enqueues a command to execute a kernel on a device.

Safety

Running any kernel is an inherently unsafe process. As an API call this function is safe. The kernel code it may run must always be considered unsafe.

Stability

  • Work dimension/offset sizes may eventually be wrapped up in specialized types.
  • This function may (and probably should) be marked unsafe to reflect the inherent of kernel code.

SDK Docs