#[non_exhaustive]pub struct GpuCircuitCacheConfig {
pub num_slots: u32,
pub table_size: u32,
pub node_cap: u32,
pub edge_cap: u32,
pub level_cap: u32,
pub var_cap: u32,
}Expand description
Configuration for the GPU-resident circuit cache.
Controls the number of cached XGCF circuit slots and the per-slot capacity
limits for nodes, edges, levels, and variables. Production callers should
use [crate::exact::default_cache_config] which sizes caps from the CNF
and compile config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.num_slots: u32Number of circuit slots kept resident on the GPU.
table_size: u32Hash table size for the circuit lookup (should be >= 2 * num_slots).
node_cap: u32Maximum nodes per cached circuit.
edge_cap: u32Maximum edges per cached circuit.
level_cap: u32Maximum levels (BFS depth) per cached circuit.
var_cap: u32Maximum CNF variable id (1-based, DIMACS) across all cached circuits.
Trait Implementations§
Source§impl Clone for GpuCircuitCacheConfig
impl Clone for GpuCircuitCacheConfig
Source§fn clone(&self) -> GpuCircuitCacheConfig
fn clone(&self) -> GpuCircuitCacheConfig
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 GpuCircuitCacheConfig
impl Debug for GpuCircuitCacheConfig
Source§impl Default for GpuCircuitCacheConfig
impl Default for GpuCircuitCacheConfig
impl Copy for GpuCircuitCacheConfig
Auto Trait Implementations§
impl Freeze for GpuCircuitCacheConfig
impl RefUnwindSafe for GpuCircuitCacheConfig
impl Send for GpuCircuitCacheConfig
impl Sync for GpuCircuitCacheConfig
impl Unpin for GpuCircuitCacheConfig
impl UnsafeUnpin for GpuCircuitCacheConfig
impl UnwindSafe for GpuCircuitCacheConfig
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