pub struct AffinityStats {
pub threads_per_gpu: Vec<usize>,
pub total_threads: usize,
pub total_gpus: usize,
}Expand description
Affinity statistics
Fields§
§threads_per_gpu: Vec<usize>Number of threads per GPU
total_threads: usizeTotal number of pinned threads
total_gpus: usizeTotal number of GPUs
Implementations§
Source§impl AffinityStats
impl AffinityStats
Sourcepub fn avg_threads_per_gpu(&self) -> f64
pub fn avg_threads_per_gpu(&self) -> f64
Get average threads per GPU
Sourcepub fn load_balance_factor(&self) -> f64
pub fn load_balance_factor(&self) -> f64
Get load balance factor (0.0 = perfect balance, 1.0 = worst imbalance)
Trait Implementations§
Source§impl Clone for AffinityStats
impl Clone for AffinityStats
Source§fn clone(&self) -> AffinityStats
fn clone(&self) -> AffinityStats
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 moreAuto Trait Implementations§
impl Freeze for AffinityStats
impl RefUnwindSafe for AffinityStats
impl Send for AffinityStats
impl Sync for AffinityStats
impl Unpin for AffinityStats
impl UnsafeUnpin for AffinityStats
impl UnwindSafe for AffinityStats
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