pub struct CudaDeviceInfo {
pub ordinal: u32,
pub name: String,
pub total_mem_bytes: u64,
pub compute_capability: (u32, u32),
pub multiprocessor_count: u32,
pub max_threads_per_block: u32,
pub warp_size: u32,
pub supports_unified_memory: bool,
pub supports_f64: bool,
pub driver_version: String,
}Expand description
Information about the selected CUDA device.
Fields§
§ordinal: u32CUDA device ordinal (0-indexed).
name: StringDevice name from cuDeviceGetName.
total_mem_bytes: u64Total global memory in bytes (cuDeviceTotalMem).
compute_capability: (u32, u32)Compute capability as (major, minor).
multiprocessor_count: u32Number of CUDA streaming multiprocessors.
max_threads_per_block: u32Maximum threads per block.
warp_size: u32Warp size (always 32 on current NVIDIA hardware).
supports_unified_memory: boolWhether the device supports unified memory (Compute Capability ≥ 3.0).
supports_f64: boolWhether the device supports FP64 (cuDeviceGetAttribute CUDA_DEVICE_ATTRIBUTE_DOUBLE).
driver_version: StringCUDA driver version string.
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 (const: unstable) · 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
Source§impl Default for CudaDeviceInfo
impl Default for CudaDeviceInfo
Source§fn default() -> CudaDeviceInfo
fn default() -> CudaDeviceInfo
Returns the “default value” for a type. Read more
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
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