pub struct DeviceKey {
pub tier: Tier,
pub index: u32,
}Expand description
Which physical device memory comes from.
A Tier says how far away memory is; this says which device within that
tier. Two CUDA devices are the same tier and different allocators.
Fields§
§tier: Tier§index: u32Implementations§
Trait Implementations§
impl Copy for DeviceKey
impl Eq for DeviceKey
impl StructuralPartialEq for DeviceKey
Auto Trait Implementations§
impl Freeze for DeviceKey
impl RefUnwindSafe for DeviceKey
impl Send for DeviceKey
impl Sync for DeviceKey
impl Unpin for DeviceKey
impl UnsafeUnpin for DeviceKey
impl UnwindSafe for DeviceKey
Blanket Implementations§
impl<T> BindingResource for T
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