pub struct KernelConfig {
pub grid_size: [u32; 3],
pub block_size: [u32; 3],
pub shared_mem_bytes: u32,
pub synchronous: bool,
}Expand description
Kernel configuration for launch parameters
Fields§
§grid_size: [u32; 3]§block_size: [u32; 3]§synchronous: boolImplementations§
Source§impl KernelConfig
impl KernelConfig
pub fn new(grid_size: [u32; 3], block_size: [u32; 3]) -> Self
pub fn with_synchronous(self, sync: bool) -> Self
pub fn num_blocks(&self) -> u64
pub fn threads_per_block(&self) -> u64
pub fn num_threads(&self) -> u64
Trait Implementations§
Source§impl Clone for KernelConfig
impl Clone for KernelConfig
Source§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 UnsafeUnpin 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