pub struct PtxKernel { /* private fields */ }Expand description
One parsed kernel: its mangled entry name plus its register usage.
Implementations§
Source§impl PtxKernel
impl PtxKernel
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The kernel entry name exactly as it appears after .entry in the PTX.
Sourcepub fn usage(&self) -> PtxRegisterUsage
pub fn usage(&self) -> PtxRegisterUsage
The parsed register-file usage of this kernel.
Sourcepub fn registers_per_thread(&self) -> u32
pub fn registers_per_thread(&self) -> u32
Convenience accessor for PtxRegisterUsage::registers_per_thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtxKernel
impl RefUnwindSafe for PtxKernel
impl Send for PtxKernel
impl Sync for PtxKernel
impl Unpin for PtxKernel
impl UnsafeUnpin for PtxKernel
impl UnwindSafe for PtxKernel
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