pub struct PtxRegisterUsage { /* private fields */ }Expand description
Register-file usage of a single PTX kernel, derived from its .reg
directives.
Implementations§
Source§impl PtxRegisterUsage
impl PtxRegisterUsage
Sourcepub fn registers_per_thread(&self) -> u32
pub fn registers_per_thread(&self) -> u32
Registers consumed per thread, as ptxas would report under the
no-coalescing (-O0) lower bound.
This is the value to pass to the CUDA occupancy model and to
cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags.
Sourcepub fn predicate_registers(&self) -> u32
pub fn predicate_registers(&self) -> u32
Number of predicate registers declared by the kernel.
Predicates are tracked separately because they do not draw from the general-purpose register file that bounds occupancy.
Sourcepub fn directive_count(&self) -> u32
pub fn directive_count(&self) -> u32
Number of .reg directives that contributed to this usage.
Trait Implementations§
Source§impl Clone for PtxRegisterUsage
impl Clone for PtxRegisterUsage
Source§fn clone(&self) -> PtxRegisterUsage
fn clone(&self) -> PtxRegisterUsage
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 moreimpl Copy for PtxRegisterUsage
Source§impl Debug for PtxRegisterUsage
impl Debug for PtxRegisterUsage
Source§impl Default for PtxRegisterUsage
impl Default for PtxRegisterUsage
Source§fn default() -> PtxRegisterUsage
fn default() -> PtxRegisterUsage
Returns the “default value” for a type. Read more
impl Eq for PtxRegisterUsage
Source§impl PartialEq for PtxRegisterUsage
impl PartialEq for PtxRegisterUsage
Source§fn eq(&self, other: &PtxRegisterUsage) -> bool
fn eq(&self, other: &PtxRegisterUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PtxRegisterUsage
Auto Trait Implementations§
impl Freeze for PtxRegisterUsage
impl RefUnwindSafe for PtxRegisterUsage
impl Send for PtxRegisterUsage
impl Sync for PtxRegisterUsage
impl Unpin for PtxRegisterUsage
impl UnsafeUnpin for PtxRegisterUsage
impl UnwindSafe for PtxRegisterUsage
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