pub struct CudaDeviceInfo {
pub index: u32,
pub name: String,
pub total_memory: u64,
}Expand description
CUDA device information from native driver API
Provides accurate device information including:
- Device name (e.g., “NVIDIA GeForce RTX 4090”)
- Total VRAM in bytes
- Device ordinal
Fields§
§index: u32Device ordinal (0-based index)
name: StringDevice name from cuDeviceGetName
total_memory: u64Total VRAM in bytes from cuDeviceTotalMem
Implementations§
Source§impl CudaDeviceInfo
impl CudaDeviceInfo
Trait Implementations§
Source§impl Clone for CudaDeviceInfo
impl Clone for CudaDeviceInfo
Source§fn clone(&self) -> CudaDeviceInfo
fn clone(&self) -> CudaDeviceInfo
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 CudaDeviceInfo
impl Debug for CudaDeviceInfo
Auto Trait Implementations§
impl Freeze for CudaDeviceInfo
impl RefUnwindSafe for CudaDeviceInfo
impl Send for CudaDeviceInfo
impl Sync for CudaDeviceInfo
impl Unpin for CudaDeviceInfo
impl UnsafeUnpin for CudaDeviceInfo
impl UnwindSafe for CudaDeviceInfo
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