pub trait StreamAllocator: Send + Sync {
// Required method
fn acquire(&self, hints: ActorHints) -> Arc<CudaStream>;
// Provided method
fn release(&self, _stream: Arc<CudaStream>) { ... }
}Expand description
Pluggable stream allocator (§5.7). Implemented by PerActorAllocator
(F1 default) and three stubs.
Required Methods§
Sourcefn acquire(&self, hints: ActorHints) -> Arc<CudaStream>
fn acquire(&self, hints: ActorHints) -> Arc<CudaStream>
Acquire a stream for a KernelActor that’s just starting.