pub struct OccupancyResult {
pub active_blocks_per_sm: u32,
pub active_warps_per_sm: u32,
pub max_warps_per_sm: u32,
pub occupancy: f64,
pub limiting_factor: LimitingFactor,
pub blocks_limited_by_threads: u32,
pub blocks_limited_by_registers: u32,
pub blocks_limited_by_smem: u32,
pub blocks_limited_by_max_blocks: u32,
}Expand description
Occupancy calculation result.
Fields§
§active_blocks_per_sm: u32Active blocks per SM.
active_warps_per_sm: u32Active warps per SM.
max_warps_per_sm: u32Max warps per SM (hardware limit).
occupancy: f64Occupancy as a fraction (0.0 to 1.0).
limiting_factor: LimitingFactorWhich resource is the bottleneck.
blocks_limited_by_threads: u32Blocks limited by thread count.
blocks_limited_by_registers: u32Blocks limited by registers.
blocks_limited_by_smem: u32Blocks limited by shared memory.
blocks_limited_by_max_blocks: u32Blocks limited by max-blocks-per-SM.
Trait Implementations§
Source§impl Clone for OccupancyResult
impl Clone for OccupancyResult
Source§fn clone(&self) -> OccupancyResult
fn clone(&self) -> OccupancyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OccupancyResult
impl Debug for OccupancyResult
Auto Trait Implementations§
impl Freeze for OccupancyResult
impl RefUnwindSafe for OccupancyResult
impl Send for OccupancyResult
impl Sync for OccupancyResult
impl Unpin for OccupancyResult
impl UnsafeUnpin for OccupancyResult
impl UnwindSafe for OccupancyResult
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