pub struct SubtreePartitionConfig { /* private fields */ }Expand description
Configurable thresholds and device state governing SubtreePartitionPlanner.
Implementations§
Source§impl SubtreePartitionConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl SubtreePartitionConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_min_gpu_nodes(&self) -> usize
pub fn get_mut_min_gpu_nodes(&mut self) -> &mut usize
pub fn set_min_gpu_nodes(&mut self, val: usize) -> &mut Self
pub fn get_max_text_wrap_ratio(&self) -> f32
pub fn get_mut_max_text_wrap_ratio(&mut self) -> &mut f32
pub fn set_max_text_wrap_ratio(&mut self, val: f32) -> &mut Self
pub fn get_max_gpu_depth(&self) -> usize
pub fn get_mut_max_gpu_depth(&mut self) -> &mut usize
pub fn set_max_gpu_depth(&mut self, val: usize) -> &mut Self
pub fn get_hardware_compute_ready(&self) -> bool
pub fn get_mut_hardware_compute_ready(&mut self) -> &mut bool
pub fn set_hardware_compute_ready(&mut self, val: bool) -> &mut Self
pub fn get_thermal_throttled(&self) -> bool
pub fn get_mut_thermal_throttled(&mut self) -> &mut bool
pub fn set_thermal_throttled(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for SubtreePartitionConfig
impl Clone for SubtreePartitionConfig
impl Copy for SubtreePartitionConfig
Source§impl Debug for SubtreePartitionConfig
impl Debug for SubtreePartitionConfig
Source§impl Default for SubtreePartitionConfig
Default eligibility thresholds for mixed CPU+GPU subtree partitioning.
impl Default for SubtreePartitionConfig
Default eligibility thresholds for mixed CPU+GPU subtree partitioning.
Source§impl PartialEq for SubtreePartitionConfig
impl PartialEq for SubtreePartitionConfig
impl StructuralPartialEq for SubtreePartitionConfig
Auto Trait Implementations§
impl Forget for SubtreePartitionConfig
impl Freeze for SubtreePartitionConfig
impl Move for SubtreePartitionConfig
impl RefUnwindSafe for SubtreePartitionConfig
impl Send for SubtreePartitionConfig
impl Sync for SubtreePartitionConfig
impl Unpin for SubtreePartitionConfig
impl UnsafeUnpin for SubtreePartitionConfig
impl UnwindSafe for SubtreePartitionConfig
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