pub enum Gpu {
Cuda(Arc<CudaDevice>),
Hip(Arc<HipDevice>),
}Variants§
Implementations§
Trait Implementations§
Source§impl From<CudaDevice> for Gpu
impl From<CudaDevice> for Gpu
Source§fn from(device: CudaDevice) -> Self
fn from(device: CudaDevice) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Gpu
impl RefUnwindSafe for Gpu
impl !Send for Gpu
impl !Sync for Gpu
impl Unpin for Gpu
impl UnwindSafe for Gpu
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