Skip to main content

Module device

Module device 

Source
Expand description

DeviceActor (outer tier) + ContextActor (inner tier) — §5.11.

Re-exports§

pub use device_actor::DeviceActor;
pub use device_actor::DeviceConfig;
pub use device_actor::DeviceMsg;
pub use device_actor::EnabledLibraries;
pub use device_actor::KernelChildren;
pub use device_actor::SgemmRequest;
pub use device_actor::WorkRequest;

Modules§

device_actor
DeviceActor — the outer tier of the §5.11 two-tier supervision tree.

Structs§

AllocReq
Concrete typed allocation request. Held inside a Box<dyn AllocDispatch> while in flight.
ContextActor
CopyFromHostReq
CopyToHostReq
DeviceLoad
Per-device load snapshot returned by [DeviceMsg::Stats]. Used by the F5 crate::placement::PlacementActor for least-loaded scheduling.
DeviceState

Enums§

ContextMsg
HostBuf
Host-side buffer surface. Owned Vec<T> for low-volume convenience; PinnedBuf<T> for async-overlappable transfers sourced from a crate::host::PinnedBufferPool.

Traits§

AllocDispatch
Trait object the DeviceActor stashes inside a single crate::device::DeviceMsg::Alloc variant. The actual T is erased at the box boundary; the receiving ContextActor calls AllocDispatch::run which downcasts back into the concrete AllocReq<T> and performs a typed stream.alloc_zeros::<T>(len).
CopyFromHostDispatch
Trait object behind crate::device::DeviceMsg::CopyFromHost.
CopyToHostDispatch
Trait object behind crate::device::DeviceMsg::CopyToHost. Carries the typed source GpuRef<T> plus host destination buffer.