# Function ocl_core::enqueue_kernel [−] [src]

    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

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)