pub struct LaunchBounds {
pub max_threads: u32,
pub min_blocks: Option<u32>,
}Expand description
Optional launch-bounds hint: __launch_bounds__(maxThreads[, minBlocks]).
Fields§
§max_threads: u32Maximum threads per block
min_blocks: Option<u32>Minimum blocks per multiprocessor (optional)
Implementations§
Source§impl LaunchBounds
impl LaunchBounds
Trait Implementations§
Source§impl Clone for LaunchBounds
impl Clone for LaunchBounds
Source§fn clone(&self) -> LaunchBounds
fn clone(&self) -> LaunchBounds
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 LaunchBounds
impl Debug for LaunchBounds
Source§impl PartialEq for LaunchBounds
impl PartialEq for LaunchBounds
impl StructuralPartialEq for LaunchBounds
Auto Trait Implementations§
impl Freeze for LaunchBounds
impl RefUnwindSafe for LaunchBounds
impl Send for LaunchBounds
impl Sync for LaunchBounds
impl Unpin for LaunchBounds
impl UnsafeUnpin for LaunchBounds
impl UnwindSafe for LaunchBounds
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