pub struct OccupancyGrid;Expand description
Sweep block sizes to find the configuration that maximises occupancy.
Implementations§
Source§impl OccupancyGrid
impl OccupancyGrid
Sourcepub fn sweep(
calculator: &OccupancyCalculator,
registers_per_thread: u32,
shared_memory: u32,
) -> Vec<OccupancyPoint>
pub fn sweep( calculator: &OccupancyCalculator, registers_per_thread: u32, shared_memory: u32, ) -> Vec<OccupancyPoint>
Sweep block sizes from warp_size to max_threads_per_sm in
increments of warp_size and return occupancy at each step.
Sourcepub fn best_block_size(points: &[OccupancyPoint]) -> u32
pub fn best_block_size(points: &[OccupancyPoint]) -> u32
Pick the block size with the highest occupancy.
Ties are broken by choosing the smallest block size.
Returns 0 if the slice is empty.
Auto Trait Implementations§
impl Freeze for OccupancyGrid
impl RefUnwindSafe for OccupancyGrid
impl Send for OccupancyGrid
impl Sync for OccupancyGrid
impl Unpin for OccupancyGrid
impl UnsafeUnpin for OccupancyGrid
impl UnwindSafe for OccupancyGrid
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