pub struct BufferPool;Expand description
Facade over the GPU buffer pool.
§Phase 1 status: documented no-op
The plan’s hand-rolled slab/coalescing pool was deliberately replaced by
cubecl’s built-in allocator, which already does pooled slab allocation and
reuse (configured through burn::backend::wgpu::MemoryConfiguration).
burn 0.21 does not publicly expose cubecl 0.10’s
ComputeClient::memory_cleanup, and memory_persistent_allocations does
not exist in cubecl 0.10’s public API at all, so this facade currently does
nothing. It exists so that the runtime can call pool.cleanup() /
pool.pin_persistent() today and Phase 2 can back those calls with real
handles (persistent KV/weight arenas) without changing call sites.
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn pin_persistent(&self)
pub fn pin_persistent(&self)
Pin long-lived allocations (weights, KV arena) so the pool never releases them. No-op in Phase 1 — cubecl’s pooled allocator keeps freed blocks for reuse anyway.
Trait Implementations§
Source§impl Clone for BufferPool
impl Clone for BufferPool
Source§fn clone(&self) -> BufferPool
fn clone(&self) -> BufferPool
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more