pub struct SystemMemoryInfo {
pub total_ram_bytes: u64,
pub gpu_memory_bytes: Option<u64>,
pub is_apple_silicon: bool,
pub has_nvidia_gpu: bool,
}Expand description
System memory information for model fit calculations.
Fields§
§total_ram_bytes: u64Total system RAM in bytes.
gpu_memory_bytes: Option<u64>GPU memory in bytes (VRAM for discrete GPUs, or unified memory portion for Apple Silicon). None if no GPU detected or memory couldn’t be determined.
is_apple_silicon: boolWhether the system has Apple Silicon with unified memory.
has_nvidia_gpu: boolWhether the system has an NVIDIA GPU.
Trait Implementations§
Source§impl Clone for SystemMemoryInfo
impl Clone for SystemMemoryInfo
Source§fn clone(&self) -> SystemMemoryInfo
fn clone(&self) -> SystemMemoryInfo
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 SystemMemoryInfo
impl Debug for SystemMemoryInfo
Source§impl<'de> Deserialize<'de> for SystemMemoryInfo
impl<'de> Deserialize<'de> for SystemMemoryInfo
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 SystemMemoryInfo
impl RefUnwindSafe for SystemMemoryInfo
impl Send for SystemMemoryInfo
impl Sync for SystemMemoryInfo
impl Unpin for SystemMemoryInfo
impl UnwindSafe for SystemMemoryInfo
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