pub struct PlaneRoleConfig {
pub plane_roles: PlaneRoles,
pub rule: RoleRuleConfig,
}
Expand description
Contains the number of plane in each role and the rule to distinguish planes based on their plane id
Fields§
§plane_roles: PlaneRoles
§rule: RoleRuleConfig
Implementations§
Source§impl PlaneRoleConfig
impl PlaneRoleConfig
Sourcepub fn new(
load_specialization_config: LoadSpecializationConfig,
loader_tasks: Option<MaxLoaderPlanes>,
num_main_flow_planes: u32,
) -> Result<PlaneRoleConfig, MatmulSetupError>
pub fn new( load_specialization_config: LoadSpecializationConfig, loader_tasks: Option<MaxLoaderPlanes>, num_main_flow_planes: u32, ) -> Result<PlaneRoleConfig, MatmulSetupError>
Make a new PlaneRoleConfig
Sourcepub fn main_flow_count(&self) -> u32
pub fn main_flow_count(&self) -> u32
Returns the number of planes participating in main flow
Sourcepub fn has_specialization(&self) -> bool
pub fn has_specialization(&self) -> bool
Whether the plane role config implies specialization
Trait Implementations§
Source§impl Clone for PlaneRoleConfig
impl Clone for PlaneRoleConfig
Source§fn clone(&self) -> PlaneRoleConfig
fn clone(&self) -> PlaneRoleConfig
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 PlaneRoleConfig
impl Debug for PlaneRoleConfig
Source§impl Hash for PlaneRoleConfig
impl Hash for PlaneRoleConfig
Source§impl PartialEq for PlaneRoleConfig
impl PartialEq for PlaneRoleConfig
impl Copy for PlaneRoleConfig
impl Eq for PlaneRoleConfig
impl StructuralPartialEq for PlaneRoleConfig
Auto Trait Implementations§
impl Freeze for PlaneRoleConfig
impl RefUnwindSafe for PlaneRoleConfig
impl Send for PlaneRoleConfig
impl Sync for PlaneRoleConfig
impl Unpin for PlaneRoleConfig
impl UnwindSafe for PlaneRoleConfig
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.