pub struct GPUDeviceInfo {
pub device_id: i32,
pub backend: GPUBackend,
pub device_name: String,
pub memory_total: usize,
pub memory_free: usize,
pub compute_capability: f32,
pub compute_units: usize,
pub max_threads_per_block: usize,
pub is_available: bool,
}
Expand description
Information about an available GPU device
Fields§
§device_id: i32
Device ID
backend: GPUBackend
Backend type
device_name: String
Device name/description
memory_total: usize
Available memory in bytes
memory_free: usize
Free memory in bytes
compute_capability: f32
Compute capability or equivalent
compute_units: usize
Number of compute units/SMs
max_threads_per_block: usize
Maximum threads per block
is_available: bool
Is this device currently available
Trait Implementations§
Source§impl Clone for GPUDeviceInfo
impl Clone for GPUDeviceInfo
Source§fn clone(&self) -> GPUDeviceInfo
fn clone(&self) -> GPUDeviceInfo
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 GPUDeviceInfo
impl Debug for GPUDeviceInfo
Auto Trait Implementations§
impl Freeze for GPUDeviceInfo
impl RefUnwindSafe for GPUDeviceInfo
impl Send for GPUDeviceInfo
impl Sync for GPUDeviceInfo
impl Unpin for GPUDeviceInfo
impl UnwindSafe for GPUDeviceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more