pub struct GpuCdclWorkspace { /* private fields */ }Expand description
Pre-allocated solver arena for reuse across multiple CDCL solves.
Owns the 30 device buffers that launch_cdcl_with_decision_ranges_gated normally
allocates per call. Does NOT own CNF storage (clause_offsets/literals stay on GpuCnf).
Created via GpuCdclSolver::new_workspace. Passed as &mut to _ws solver methods.
reset_for_solve() is intentionally a no-op: the sat_cdcl_solve kernel initializes
mutable state at launch. The learned-import path preserves the learned/proof arenas
below out_learned_count[0] and initializes the remaining workspace buffers.
Implementations§
Source§impl GpuCdclWorkspace
impl GpuCdclWorkspace
Sourcepub fn assign_device_ptr(&self) -> CUdeviceptr
pub fn assign_device_ptr(&self) -> CUdeviceptr
Device pointer of the assignment buffer (for diagnostics / reuse verification).
Auto Trait Implementations§
impl Freeze for GpuCdclWorkspace
impl RefUnwindSafe for GpuCdclWorkspace
impl Send for GpuCdclWorkspace
impl Sync for GpuCdclWorkspace
impl Unpin for GpuCdclWorkspace
impl UnsafeUnpin for GpuCdclWorkspace
impl UnwindSafe for GpuCdclWorkspace
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