pub struct KernelConfig {
pub grid_size: Dim3,
pub block_size: Dim3,
pub shared_mem_bytes: u32,
pub launch_mode: KernelLaunchMode,
}Fields§
§grid_size: Dim3§block_size: Dim3§launch_mode: KernelLaunchModeImplementations§
Source§impl KernelConfig
impl KernelConfig
pub fn new(grid_size: impl Into<Dim3>, block_size: impl Into<Dim3>) -> Self
pub fn with_launch_mode(self, mode: KernelLaunchMode) -> Self
pub fn validate(&self) -> TptrResult<()>
pub fn num_blocks(&self) -> u64
pub fn num_threads(&self) -> u64
Trait Implementations§
Source§impl Clone for KernelConfig
impl Clone 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