[][src]Function fil_ocl_core::enqueue_kernel

pub unsafe 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>
) -> OclCoreResult<()>

Enqueues a command to execute a kernel on a device.

Safety

Running any kernel is an inherently unsafe process. The API call itself is safe but the kernel execution is not.

Stability

  • Work dimension/offset sizes may eventually be wrapped up in specialized types.

SDK Docs