pub enum PersistentMemory {
Enabled,
Disabled,
Enforced,
}Expand description
Configuration options for persistent memory pools in CubeCL runtimes.
Variants§
Enabled
Persistent memory is enabled but used only when explicitly specified.
Disabled
Persistent memory is disabled, allowing dynamic allocations.
Enforced
Persistent memory is enforced, preventing dynamic allocations.
§Warning
Enforcing persistent memory may cause out-of-memory errors if tensors of varying sizes are used.
Trait Implementations§
Source§impl Clone for PersistentMemory
impl Clone for PersistentMemory
Source§fn clone(&self) -> PersistentMemory
fn clone(&self) -> PersistentMemory
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 PersistentMemory
impl Debug for PersistentMemory
Source§impl Default for PersistentMemory
impl Default for PersistentMemory
Source§fn default() -> PersistentMemory
fn default() -> PersistentMemory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistentMemory
impl<'de> Deserialize<'de> for PersistentMemory
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 PersistentMemory
impl RefUnwindSafe for PersistentMemory
impl Send for PersistentMemory
impl Sync for PersistentMemory
impl Unpin for PersistentMemory
impl UnwindSafe for PersistentMemory
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