Skip to main content

PlanStep

Enum PlanStep 

Source
pub enum PlanStep {
    KernelLaunch {
        nodes: Vec<NodeId>,
        function_name: String,
        config: KernelConfig,
        stream: StreamId,
    },
    Memcpy {
        node: NodeId,
        dir: MemcpyDir,
        size_bytes: usize,
        stream: StreamId,
    },
    Memset {
        node: NodeId,
        size_bytes: usize,
        value: u8,
        stream: StreamId,
    },
    EventRecord {
        event_id: usize,
        stream: StreamId,
    },
    EventWait {
        event_id: usize,
        stream: StreamId,
    },
    HostCallback {
        node: NodeId,
        label: String,
        stream: StreamId,
    },
    Barrier {
        node: NodeId,
        stream: StreamId,
    },
}
Expand description

A single step in the execution plan.

Variants§

§

KernelLaunch

Launch a (possibly fused) kernel.

Fields

§nodes: Vec<NodeId>

Node(s) contributing to this launch (singleton if not fused).

§function_name: String

Function name to look up in the loaded PTX module.

§config: KernelConfig

Launch configuration.

§stream: StreamId

Stream to submit on.

§

Memcpy

Transfer memory between host and device (or device to device).

Fields

§node: NodeId
§size_bytes: usize
§stream: StreamId
§

Memset

Fill a device buffer with a byte pattern.

Fields

§node: NodeId
§size_bytes: usize
§value: u8
§stream: StreamId
§

EventRecord

Record a CUDA event on stream to signal completion of preceding work.

Fields

§event_id: usize

Synthetic event ID (for matching with EventWait).

§stream: StreamId
§

EventWait

Wait for a previously recorded event before continuing on stream.

Fields

§event_id: usize
§stream: StreamId
§

HostCallback

Host-side callback inserted into the stream.

Fields

§node: NodeId
§label: String
§stream: StreamId
§

Barrier

No-op barrier (no device work, used for explicit synchronisation).

Fields

§node: NodeId
§stream: StreamId

Implementations§

Source§

impl PlanStep

Source

pub fn stream(&self) -> StreamId

Returns the stream this step executes on.

Source

pub fn tag(&self) -> &'static str

Returns a short tag string for display.

Source

pub fn is_compute(&self) -> bool

Returns true if this step represents GPU compute work.

Trait Implementations§

Source§

impl Clone for PlanStep

Source§

fn clone(&self) -> PlanStep

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlanStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PlanStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PlanStep

Source§

fn eq(&self, other: &PlanStep) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PlanStep

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more