#[non_exhaustive]pub struct GpuConfig {
pub device_ordinal: usize,
pub memory_bytes: u64,
pub decision_order_hint: bool,
}Expand description
GPU device selection and memory budget for probabilistic inference.
Use GpuConfig::default() and override individual fields as needed.
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.device_ordinal: usizeCUDA device ordinal (0-based).
memory_bytes: u64Device memory budget in bytes (clamped to available memory at runtime).
decision_order_hint: boolHost-side Decision-DNNF compiler decision-order hint: renumber leaf/choice variables by descending structural fanout in the provenance DAG before CNF encoding, steering the deterministic variable-id tie-breaks of the (unchanged) GPU-native Decision-DNNF branching heuristic. Query probabilities are unaffected; only compile-time search shape can differ.
Trait Implementations§
impl Copy for GpuConfig
Auto Trait Implementations§
impl Freeze for GpuConfig
impl RefUnwindSafe for GpuConfig
impl Send for GpuConfig
impl Sync for GpuConfig
impl Unpin for GpuConfig
impl UnsafeUnpin for GpuConfig
impl UnwindSafe for GpuConfig
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