pub enum DeviceLocation {
Cpu,
Cuda {
gpu_id: usize,
},
Metal {
gpu_id: usize,
},
Vulkan {
gpu_id: usize,
},
}Expand description
Identifies a physical device location (CPU or a specific GPU).
§Example
use fuel_ir::DeviceLocation;
let loc = DeviceLocation::Cpu;
assert_eq!(loc, DeviceLocation::Cpu);Variants§
Cpu
The CPU.
Cuda
A CUDA GPU with the given ordinal.
Metal
A Metal GPU with the given ordinal.
Vulkan
A Vulkan GPU with the given ordinal.
Trait Implementations§
Source§impl Clone for DeviceLocation
impl Clone for DeviceLocation
impl Copy for DeviceLocation
Source§impl Debug for DeviceLocation
impl Debug for DeviceLocation
impl Eq for DeviceLocation
Source§impl Hash for DeviceLocation
impl Hash for DeviceLocation
Source§impl PartialEq for DeviceLocation
impl PartialEq for DeviceLocation
impl StructuralPartialEq for DeviceLocation
Auto Trait Implementations§
impl Freeze for DeviceLocation
impl RefUnwindSafe for DeviceLocation
impl Send for DeviceLocation
impl Sync for DeviceLocation
impl Unpin for DeviceLocation
impl UnsafeUnpin for DeviceLocation
impl UnwindSafe for DeviceLocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.