pub struct ProgramValidationCaps {
pub backend_id: &'static str,
pub supports_subgroup_ops: bool,
pub supports_f16: bool,
pub supports_bf16: bool,
pub supports_indirect_dispatch: bool,
pub supports_distributed_collectives: bool,
pub supports_trap_propagation: bool,
pub max_workgroup_size: [u32; 3],
}Expand description
Concrete backend capability values needed for shared program validation.
Fields§
§backend_id: &'static strStable backend identifier used in diagnostics and validation stamps.
supports_subgroup_ops: boolNative subgroup operations are available and lowered.
supports_f16: boolIEEE binary16 buffers/operations are lowered.
supports_bf16: boolBfloat16 buffers/operations are lowered.
supports_indirect_dispatch: boolIndirect dispatch is lowered.
supports_distributed_collectives: boolDistributed collective communication nodes are lowered.
supports_trap_propagation: boolNode::Trap is lowered with backend-visible trap semantics.
max_workgroup_size: [u32; 3]Maximum supported workgroup dimensions.
Implementations§
Source§impl ProgramValidationCaps
impl ProgramValidationCaps
Sourcepub fn from_backend(backend: &dyn VyreBackend) -> Self
pub fn from_backend(backend: &dyn VyreBackend) -> Self
Snapshot capability values from a VyreBackend trait object.
Trait Implementations§
Source§impl Clone for ProgramValidationCaps
impl Clone for ProgramValidationCaps
Source§fn clone(&self) -> ProgramValidationCaps
fn clone(&self) -> ProgramValidationCaps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgramValidationCaps
Source§impl Debug for ProgramValidationCaps
impl Debug for ProgramValidationCaps
impl Eq for ProgramValidationCaps
Source§impl PartialEq for ProgramValidationCaps
impl PartialEq for ProgramValidationCaps
Source§fn eq(&self, other: &ProgramValidationCaps) -> bool
fn eq(&self, other: &ProgramValidationCaps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgramValidationCaps
Auto Trait Implementations§
impl Freeze for ProgramValidationCaps
impl RefUnwindSafe for ProgramValidationCaps
impl Send for ProgramValidationCaps
impl Sync for ProgramValidationCaps
impl Unpin for ProgramValidationCaps
impl UnsafeUnpin for ProgramValidationCaps
impl UnwindSafe for ProgramValidationCaps
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.