pub struct EpistemicGpuWorkspaceResetTrace {
pub candidate_assumption_bytes: usize,
pub world_view_bytes: usize,
pub model_membership_bytes: usize,
pub rejection_reason_bytes: usize,
pub device_zero_ops: u32,
pub host_write_ops: u32,
}Expand description
Trace proving an epistemic GPU workspace was initialized on device.
Fields§
§candidate_assumption_bytes: usizeCandidate-assumption bytes zeroed on device.
world_view_bytes: usizeWorld-view bytes zeroed on device.
model_membership_bytes: usizeModel-membership bytes zeroed on device.
rejection_reason_bytes: usizeRejection-reason bytes zeroed on device.
device_zero_ops: u32Device zeroing operations submitted by the reset path.
host_write_ops: u32Host writes used by the reset path. Accepted GPU execution requires zero.
Implementations§
Source§impl EpistemicGpuWorkspaceResetTrace
impl EpistemicGpuWorkspaceResetTrace
Sourcepub fn for_layout(layout: EpistemicGpuWorkspaceLayout) -> Self
pub fn for_layout(layout: EpistemicGpuWorkspaceLayout) -> Self
Build the reset trace implied by a workspace layout.
Sourcepub fn try_for_layout(layout: EpistemicGpuWorkspaceLayout) -> Result<Self>
pub fn try_for_layout(layout: EpistemicGpuWorkspaceLayout) -> Result<Self>
Build the reset trace implied by a workspace layout, failing closed on overflow.
Sourcepub fn total_zeroed_bytes(&self) -> usize
pub fn total_zeroed_bytes(&self) -> usize
Total bytes zeroed by the reset path.
Sourcepub fn try_total_zeroed_bytes(&self) -> Result<usize>
pub fn try_total_zeroed_bytes(&self) -> Result<usize>
Checked total bytes zeroed by the reset path.
Sourcepub fn require_matches_layout(
&self,
construct: &str,
layout: EpistemicGpuWorkspaceLayout,
) -> Result<()>
pub fn require_matches_layout( &self, construct: &str, layout: EpistemicGpuWorkspaceLayout, ) -> Result<()>
Require the retained reset trace to match the prepared workspace layout.
Trait Implementations§
Source§impl Clone for EpistemicGpuWorkspaceResetTrace
impl Clone for EpistemicGpuWorkspaceResetTrace
Source§fn clone(&self) -> EpistemicGpuWorkspaceResetTrace
fn clone(&self) -> EpistemicGpuWorkspaceResetTrace
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 PartialEq for EpistemicGpuWorkspaceResetTrace
impl PartialEq for EpistemicGpuWorkspaceResetTrace
Source§fn eq(&self, other: &EpistemicGpuWorkspaceResetTrace) -> bool
fn eq(&self, other: &EpistemicGpuWorkspaceResetTrace) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EpistemicGpuWorkspaceResetTrace
impl Eq for EpistemicGpuWorkspaceResetTrace
impl StructuralPartialEq for EpistemicGpuWorkspaceResetTrace
Auto Trait Implementations§
impl Freeze for EpistemicGpuWorkspaceResetTrace
impl RefUnwindSafe for EpistemicGpuWorkspaceResetTrace
impl Send for EpistemicGpuWorkspaceResetTrace
impl Sync for EpistemicGpuWorkspaceResetTrace
impl Unpin for EpistemicGpuWorkspaceResetTrace
impl UnsafeUnpin for EpistemicGpuWorkspaceResetTrace
impl UnwindSafe for EpistemicGpuWorkspaceResetTrace
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