pub struct DeviceSubmissionExecutionSpan { /* private fields */ }Expand description
One physical device interval owner inside an exact submission.
Eager spans own one core command. Reusable executable spans own one contiguous command range, because a single CUDA graph launch cannot be truthfully duplicated across each logical command it contains.
Implementations§
Source§impl DeviceSubmissionExecutionSpan
impl DeviceSubmissionExecutionSpan
pub fn measured( start_command_index: u32, end_command_index: u32, kind: DeviceExecutionSpanKind, intervals: Vec<DeviceExecutionInterval>, ) -> Option<Self>
pub fn with_reusable_executable_fingerprint( self, fingerprint: String, ) -> Option<Self>
pub const fn start_command_index(&self) -> u32
pub const fn end_command_index(&self) -> u32
pub const fn command_count(&self) -> u32
pub const fn kind(&self) -> DeviceExecutionSpanKind
pub const fn measurement(&self) -> &DeviceExecutionSpanMeasurement
pub fn reusable_executable_fingerprint(&self) -> Option<&str>
pub const fn contains_command(&self, command_index: u32) -> bool
Trait Implementations§
Source§impl Clone for DeviceSubmissionExecutionSpan
impl Clone for DeviceSubmissionExecutionSpan
Source§fn clone(&self) -> DeviceSubmissionExecutionSpan
fn clone(&self) -> DeviceSubmissionExecutionSpan
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 Eq for DeviceSubmissionExecutionSpan
impl StructuralPartialEq for DeviceSubmissionExecutionSpan
Auto Trait Implementations§
impl Freeze for DeviceSubmissionExecutionSpan
impl RefUnwindSafe for DeviceSubmissionExecutionSpan
impl Send for DeviceSubmissionExecutionSpan
impl Sync for DeviceSubmissionExecutionSpan
impl Unpin for DeviceSubmissionExecutionSpan
impl UnsafeUnpin for DeviceSubmissionExecutionSpan
impl UnwindSafe for DeviceSubmissionExecutionSpan
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