pub struct DeviceProperties {Show 21 fields
pub name: String,
pub total_global_memory_bytes: u64,
pub shared_memory_per_block_bytes: u64,
pub regs_per_block: i32,
pub warp_size: i32,
pub max_threads_per_block: i32,
pub max_block_dim: [i32; 3],
pub max_grid_dim: [i32; 3],
pub clock_rate_khz: i32,
pub memory_clock_rate_khz: i32,
pub memory_bus_width_bits: i32,
pub l2_cache_size_bytes: i32,
pub max_threads_per_sm: i32,
pub multiprocessor_count: i32,
pub compute_capability_major: i32,
pub compute_capability_minor: i32,
pub integrated: bool,
pub concurrent_kernels: bool,
pub pci_bus_id: i32,
pub pci_device_id: i32,
pub pci_domain_id: i32,
}Expand description
Subset of cudaDeviceProp fields most users care about. The full C
struct is ~1 KB with fields that are rarely accessed — we surface the
hot-path ones and keep a reserved _raw slot for the whole buffer so
advanced users can cast through.
Fields§
§name: String§total_global_memory_bytes: u64§regs_per_block: i32§warp_size: i32§max_threads_per_block: i32§max_block_dim: [i32; 3]§max_grid_dim: [i32; 3]§clock_rate_khz: i32§memory_clock_rate_khz: i32§memory_bus_width_bits: i32§l2_cache_size_bytes: i32§max_threads_per_sm: i32§multiprocessor_count: i32§compute_capability_major: i32§compute_capability_minor: i32§integrated: bool§concurrent_kernels: bool§pci_bus_id: i32§pci_device_id: i32§pci_domain_id: i32Trait Implementations§
Source§impl Clone for DeviceProperties
impl Clone for DeviceProperties
Source§fn clone(&self) -> DeviceProperties
fn clone(&self) -> DeviceProperties
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 moreAuto Trait Implementations§
impl Freeze for DeviceProperties
impl RefUnwindSafe for DeviceProperties
impl Send for DeviceProperties
impl Sync for DeviceProperties
impl Unpin for DeviceProperties
impl UnsafeUnpin for DeviceProperties
impl UnwindSafe for DeviceProperties
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