Skip to main content

set_kernel_context

Function set_kernel_context 

Source
pub fn set_kernel_context(ctx: KernelContext)
Expand description

Set the kernel context for the current thread.

Subsequent calls to thread::index(), block::index(), block::dim(), and sync_threads() will read from this context.