pub struct LaunchExBuilder<'s> { /* private fields */ }Expand description
Builder for cudaLaunchKernelEx — accepts up to ~14 attribute kinds.
Implementations§
Source§impl<'s> LaunchExBuilder<'s>
impl<'s> LaunchExBuilder<'s>
pub fn new( stream: &'s Stream, grid: impl Into<Dim3>, block: impl Into<Dim3>, ) -> Self
Sourcepub fn cluster_dim(self, dims: impl Into<Dim3>) -> Self
pub fn cluster_dim(self, dims: impl Into<Dim3>) -> Self
Hopper cluster dimension (x, y, z) in blocks.
Sourcepub fn cooperative(self, enable: bool) -> Self
pub fn cooperative(self, enable: bool) -> Self
Enable a cooperative launch.
Sourcepub fn priority(self, prio: i32) -> Self
pub fn priority(self, prio: i32) -> Self
Assign a priority to this launch (overrides stream priority for this kernel).
Sourcepub fn raw_attr(self, id: i32, val: cudaLaunchAttributeValue) -> Self
pub fn raw_attr(self, id: i32, val: cudaLaunchAttributeValue) -> Self
Push a raw attribute slot — escape hatch for IDs this builder doesn’t expose typed.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for LaunchExBuilder<'s>
impl<'s> RefUnwindSafe for LaunchExBuilder<'s>
impl<'s> !Send for LaunchExBuilder<'s>
impl<'s> !Sync for LaunchExBuilder<'s>
impl<'s> Unpin for LaunchExBuilder<'s>
impl<'s> UnsafeUnpin for LaunchExBuilder<'s>
impl<'s> UnwindSafe for LaunchExBuilder<'s>
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