pub enum WorkloadPhase {
DataLoading,
GpuCompute,
NcclCollective,
OptimizerStep,
Unknown,
}Expand description
The detected phase of an ML workload.
Variants§
DataLoading
High I/O, many threads, CPU-intensive preprocessing.
GpuCompute
CPU idle, waiting on GPU compute (cudaDeviceSynchronize).
NcclCollective
Network coordination for collective operations (NCCL).
OptimizerStep
Short CPU burst after GPU compute — optimizer step.
Unknown
Unknown phase — fall back to CFS-equivalent behavior.
Trait Implementations§
Source§impl Clone for WorkloadPhase
impl Clone for WorkloadPhase
Source§fn clone(&self) -> WorkloadPhase
fn clone(&self) -> WorkloadPhase
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 Debug for WorkloadPhase
impl Debug for WorkloadPhase
Source§impl Default for WorkloadPhase
impl Default for WorkloadPhase
Source§fn default() -> WorkloadPhase
fn default() -> WorkloadPhase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkloadPhase
impl<'de> Deserialize<'de> for WorkloadPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorkloadPhase
impl Display for WorkloadPhase
Source§impl Hash for WorkloadPhase
impl Hash for WorkloadPhase
Source§impl PartialEq for WorkloadPhase
impl PartialEq for WorkloadPhase
Source§impl Serialize for WorkloadPhase
impl Serialize for WorkloadPhase
impl Copy for WorkloadPhase
impl Eq for WorkloadPhase
impl StructuralPartialEq for WorkloadPhase
Auto Trait Implementations§
impl Freeze for WorkloadPhase
impl RefUnwindSafe for WorkloadPhase
impl Send for WorkloadPhase
impl Sync for WorkloadPhase
impl Unpin for WorkloadPhase
impl UnwindSafe for WorkloadPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.