pub struct GpuDeviceInfo {
pub name: String,
pub device_type: String,
pub memory_bytes: u64,
pub max_buffer_size: u64,
pub compute_capability: Option<String>,
}
Expand description
GPU device information
Fields§
§name: String
Device name
device_type: String
Device type (Metal, CUDA, etc.)
memory_bytes: u64
Available memory in bytes
max_buffer_size: u64
Maximum buffer size
compute_capability: Option<String>
Compute capability
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
Source§impl<'de> Deserialize<'de> for GpuDeviceInfo
impl<'de> Deserialize<'de> for GpuDeviceInfo
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
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