pub enum DeviceTarget {
Cuda(u32),
Rocm(u32),
Any,
}Expand description
Target device for GPU memory allocation.
Variants§
Trait Implementations§
Source§impl Clone for DeviceTarget
impl Clone for DeviceTarget
Source§fn clone(&self) -> DeviceTarget
fn clone(&self) -> DeviceTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceTarget
Source§impl Debug for DeviceTarget
impl Debug for DeviceTarget
Source§impl<'de> Deserialize<'de> for DeviceTarget
impl<'de> Deserialize<'de> for DeviceTarget
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
impl Eq for DeviceTarget
Source§impl Hash for DeviceTarget
impl Hash for DeviceTarget
Source§impl PartialEq for DeviceTarget
impl PartialEq for DeviceTarget
Source§fn eq(&self, other: &DeviceTarget) -> bool
fn eq(&self, other: &DeviceTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceTarget
impl Serialize for DeviceTarget
impl StructuralPartialEq for DeviceTarget
Auto Trait Implementations§
impl Freeze for DeviceTarget
impl RefUnwindSafe for DeviceTarget
impl Send for DeviceTarget
impl Sync for DeviceTarget
impl Unpin for DeviceTarget
impl UnsafeUnpin for DeviceTarget
impl UnwindSafe for DeviceTarget
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