pub struct NumaConfig {
pub enabled: bool,
pub gpu_affinity: bool,
pub memory_affinity: bool,
}Fields§
§enabled: boolEnable NUMA-aware CPU selection for ML tasks.
gpu_affinity: boolPrefer CPUs on the same NUMA node as the task’s GPU.
memory_affinity: boolPrefer CPUs on the same NUMA node as the task’s memory.
Trait Implementations§
Source§impl Clone for NumaConfig
impl Clone for NumaConfig
Source§fn clone(&self) -> NumaConfig
fn clone(&self) -> NumaConfig
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 NumaConfig
impl Debug for NumaConfig
Source§impl Default for NumaConfig
impl Default for NumaConfig
Source§impl<'de> Deserialize<'de> for NumaConfigwhere
NumaConfig: Default,
impl<'de> Deserialize<'de> for NumaConfigwhere
NumaConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NumaConfig
impl RefUnwindSafe for NumaConfig
impl Send for NumaConfig
impl Sync for NumaConfig
impl Unpin for NumaConfig
impl UnwindSafe for NumaConfig
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