pub enum DeviceServiceStage {
Upstream = 0,
Downstream = 1,
}Expand description
Pipeline stage a DeviceService runs on. Each stage gets its own runner thread per device,
allowing upstream work to overlap with downstream kernel dispatch.
Variants§
Upstream = 0
Produces work ahead of kernel dispatch (e.g. autodiff graph, fusion).
Downstream = 1
Consumes upstream work and streams kernels to the device.
Trait Implementations§
Source§impl Clone for DeviceServiceStage
impl Clone for DeviceServiceStage
Source§fn clone(&self) -> DeviceServiceStage
fn clone(&self) -> DeviceServiceStage
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 DeviceServiceStage
impl Debug for DeviceServiceStage
Source§impl Hash for DeviceServiceStage
impl Hash for DeviceServiceStage
Source§impl PartialEq for DeviceServiceStage
impl PartialEq for DeviceServiceStage
impl Copy for DeviceServiceStage
impl Eq for DeviceServiceStage
impl StructuralPartialEq for DeviceServiceStage
Auto Trait Implementations§
impl Freeze for DeviceServiceStage
impl RefUnwindSafe for DeviceServiceStage
impl Send for DeviceServiceStage
impl Sync for DeviceServiceStage
impl Unpin for DeviceServiceStage
impl UnsafeUnpin for DeviceServiceStage
impl UnwindSafe for DeviceServiceStage
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,
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
Compare self to
key and return true if they are equal.