pub struct KernelConfig {
pub block_size: (u32, u32, u32),
pub grid_size: Option<(u32, u32, u32)>,
pub shared_memory_bytes: u32,
pub is_persistent: bool,
pub mode: KernelMode,
}Expand description
Kernel configuration.
Fields§
§block_size: (u32, u32, u32)Block size (threads per block).
grid_size: Option<(u32, u32, u32)>Grid size (blocks per grid), if static.
Shared memory size in bytes.
is_persistent: boolWhether this is a persistent kernel.
mode: KernelModeKernel mode.
Trait Implementations§
Source§impl Clone for KernelConfig
impl Clone for KernelConfig
Source§fn clone(&self) -> KernelConfig
fn clone(&self) -> KernelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelConfig
impl Debug for KernelConfig
Auto Trait Implementations§
impl Freeze for KernelConfig
impl RefUnwindSafe for KernelConfig
impl Send for KernelConfig
impl Sync for KernelConfig
impl Unpin for KernelConfig
impl UnwindSafe for KernelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more