pub struct KernelInfo<'a> {
pub op_name: &'a str,
pub library: &'a str,
pub stream_id: u64,
pub dtype: Option<&'a str>,
}Expand description
Per-launch metadata passed to every KernelTrace callback.
dtype is Option<&'static str> because some kernel actors do not
have a single-dtype identity (e.g. memcpy, NCCL group calls). When
Phase 0.1 lands a real atomr_accel::DType, this field will be
promoted to Option<atomr_accel::DType> without changing the trait
shape.
Fields§
§op_name: &'a strOp identifier (e.g. "sgemm", "conv2d_forward").
library: &'a strLibrary tag (e.g. "cublas", "cudnn", "nccl").
stream_id: u64Stream identity. The raw CUstream pointer cast to u64; opaque
to consumers but stable for the lifetime of the stream.
dtype: Option<&'a str>Element dtype, if the op is single-dtype. None otherwise.
Trait Implementations§
Source§impl<'a> Clone for KernelInfo<'a>
impl<'a> Clone for KernelInfo<'a>
Source§fn clone(&self) -> KernelInfo<'a>
fn clone(&self) -> KernelInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for KernelInfo<'a>
impl<'a> Debug for KernelInfo<'a>
impl<'a> Copy for KernelInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for KernelInfo<'a>
impl<'a> RefUnwindSafe for KernelInfo<'a>
impl<'a> Send for KernelInfo<'a>
impl<'a> Sync for KernelInfo<'a>
impl<'a> Unpin for KernelInfo<'a>
impl<'a> UnsafeUnpin for KernelInfo<'a>
impl<'a> UnwindSafe for KernelInfo<'a>
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