pub struct EpistemicGpuWorkspaceLayout {
pub candidate_assumption_bytes: usize,
pub world_view_bytes: usize,
pub model_membership_bytes: usize,
pub rejection_reason_slots: usize,
}Expand description
Concrete device-buffer layout for an epistemic GPU workspace.
Fields§
§candidate_assumption_bytes: usizeCandidate-assumption buffer size in bytes.
world_view_bytes: usizeWorld-view buffer size in bytes.
model_membership_bytes: usizeModel-membership buffer size in bytes.
rejection_reason_slots: usizeRejection-reason slot count.
Implementations§
Source§impl EpistemicGpuWorkspaceLayout
impl EpistemicGpuWorkspaceLayout
Sourcepub fn for_plan(
plan: &EpistemicGpuPlan,
capacities: EpistemicGpuWorkspaceCapacities,
) -> Result<Self>
pub fn for_plan( plan: &EpistemicGpuPlan, capacities: EpistemicGpuWorkspaceCapacities, ) -> Result<Self>
Build a workspace layout from an epistemic GPU plan and capacity limits.
Sourcepub fn total_bytes(&self) -> usize
pub fn total_bytes(&self) -> usize
Total workspace byte size across every device buffer category.
Sourcepub fn try_total_bytes(&self) -> Result<usize>
pub fn try_total_bytes(&self) -> Result<usize>
Checked total workspace byte size across every device buffer category.
Trait Implementations§
Source§impl Clone for EpistemicGpuWorkspaceLayout
impl Clone for EpistemicGpuWorkspaceLayout
Source§fn clone(&self) -> EpistemicGpuWorkspaceLayout
fn clone(&self) -> EpistemicGpuWorkspaceLayout
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 EpistemicGpuWorkspaceLayout
impl Debug for EpistemicGpuWorkspaceLayout
impl Copy for EpistemicGpuWorkspaceLayout
impl Eq for EpistemicGpuWorkspaceLayout
impl StructuralPartialEq for EpistemicGpuWorkspaceLayout
Auto Trait Implementations§
impl Freeze for EpistemicGpuWorkspaceLayout
impl RefUnwindSafe for EpistemicGpuWorkspaceLayout
impl Send for EpistemicGpuWorkspaceLayout
impl Sync for EpistemicGpuWorkspaceLayout
impl Unpin for EpistemicGpuWorkspaceLayout
impl UnsafeUnpin for EpistemicGpuWorkspaceLayout
impl UnwindSafe for EpistemicGpuWorkspaceLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more