Skip to main content

CudaGraphStepStats

Type Alias CudaGraphStepStats 

Source
pub type CudaGraphStepStats = StepGraphStats;
Expand description

fandhe_ai_backend_cuda::graph::StepGraphStats の再公開(同上。 launch 固定費の診断用スナップショット)。

Aliased Type§

pub struct CudaGraphStepStats {
    pub mode: StepGraphMode,
    pub captured: u64,
    pub replayed: u64,
    pub graph_launches: u64,
    pub sgd_kernel_launches: u64,
}

Fields§

§mode: StepGraphMode§captured: u64

[SegmentRun::Captured] を返した回数(新規 capture の回数)。

§replayed: u64

[SegmentRun::Replayed] を返した回数(既存 graph の再生回数)。

§graph_launches: u64

CudaGraph::launch() が成功した回数(capture 直後の初回 launch +以後の replay launch の合計。captured + replayed と一致する)。

§sgd_kernel_launches: u64

SGD カーネル自体の launch 成功回数(record_sgd_kernel_launch 〈クレート内部限定〉参照。OFF では毎 step 1・ON では capture 時のみ増える)。