pub struct GraphLaunchParams {
pub grid: (u32, u32, u32),
pub block: (u32, u32, u32),
pub info: Vec<u64>,
pub info_is_grid_constant: bool,
pub ptrs: Vec<u64>,
pub dyn_offset: usize,
pub has_staging: bool,
pub name: String,
}Expand description
What one captured launch was recorded with.
info is cubecl’s packed argument blob – scalars first, sorted by type,
then static metadata, then dynamic metadata – exactly as the launch
presented it. ptrs are the device addresses the launch bound, in binding
order. Both are the values baked into the graph node, which is why reading
them back is the only sound way to locate a value inside them.
Fields§
§grid: (u32, u32, u32)The cube count the launch was recorded with.
block: (u32, u32, u32)The cube dim the launch was recorded with.
info: Vec<u64>The packed scalar and metadata blob, as captured.
info_is_grid_constant: boolWhether info reached the kernel as a by-value grid constant. When it
did not, it lives in a device buffer instead and no parameter rewrite
can move it.
ptrs: Vec<u64>The device address of every buffer the launch bound, in binding order.
dyn_offset: usizeWhere the DYNAMIC half of info starts.
info[..dyn_offset] is the scalars and the static metadata and reaches
the kernel BY VALUE, so a parameter rewrite moves it.
info[dyn_offset..] is every bound tensor’s shape and stride list; it
is variable-length, so it cannot be a fixed-size kernel parameter and
is uploaded by a memcpy node instead. A word that moved between two
captures is patchable or staged according to which side of this it
falls on, and reporting the two as one number says neither.
has_staging: boolWhether the launch has a pinned staging buffer the graph owns, i.e. whether its dynamic half can be rewritten at all.
name: StringThe kernel, named. Populated only for launches recorded by a capture.
Trait Implementations§
Source§impl Clone for GraphLaunchParams
impl Clone for GraphLaunchParams
Source§impl Debug for GraphLaunchParams
impl Debug for GraphLaunchParams
impl Eq for GraphLaunchParams
Source§impl PartialEq for GraphLaunchParams
impl PartialEq for GraphLaunchParams
impl StructuralPartialEq for GraphLaunchParams
Auto Trait Implementations§
impl Freeze for GraphLaunchParams
impl RefUnwindSafe for GraphLaunchParams
impl Send for GraphLaunchParams
impl Sync for GraphLaunchParams
impl Unpin for GraphLaunchParams
impl UnsafeUnpin for GraphLaunchParams
impl UnwindSafe for GraphLaunchParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.